Great! You want to nest Subtopics inside Topics and have Notion automatically apply both the Topic and its associated Area, based on which Subtopic is selected.
This is totally doable using a layered relational structure in Notion. Here's how we'll set it up:
✅ Goal Recap
You want:
- A Subtopic (e.g., "On-Page SEO") tagged → Automatically assign:
- Its parent Topic (e.g., "SEO")
- The related Area of that Topic (e.g., "Marketing")
Also, you want to retain the ability to manually override either the Topic or Area if needed.
🧱 Databases Involved
- Areas DB
- Topics DB
- Subtopics DB (new)
- Pages DB – where content gets tagged with topics/subtopics
🔗 Step-by-Step Setup
1. Set up Relations between databases
In Subtopics DB:
- Add a Relation property:
Topic (Relation to Topics DB)
In Topics DB:
- Already has:
Area Relation (Relation to Areas DB) — from your previous setup
- Optional Rollup:
Area via Relation
2. In Pages DB – Add Properties
Let’s create these properties in Pages DB, where you’ll tag Subtopics and get automatic Topic + Area assignment.
A. Manual Area
- Type: Relation to Areas DB
- For manual override
B. Manual Topic
- Type: Relation to Topics DB
- For manual override
C. Subtopic
- Type: Relation to Subtopics DB
- This is where you'll select a subtopic like "On-Page SEO"
D. Auto Topic via Subtopic
if(not empty(prop("Subtopic")),
prop("Subtopic").relation("Topic").map(topic).first(),
"")
Pulls the parent Topic from the selected Subtopic.
E. Auto Area via Topic
if(not empty(prop("Auto Topic via Subtopic")),
prop("Auto Topic via Subtopic").relation("Area Relation").map(area).first(),
"")
Gets the Area from the auto-assigned Topic.
F. Final Topic
if(not empty(prop("Manual Topic")),
prop("Manual Topic"),
prop("Auto Topic via Subtopic"))
Uses Manual Topic if present; otherwise uses Topic from Subtopic.
G. Final Area
if(not empty(prop("Manual Area")),
prop("Manual Area"),
prop("Auto Area via Topic"))
Uses Manual Area if present; otherwise uses Area from Topic.
📊 Final View in Pages DB
| Subtopic | Manual Topic | Manual Area | Auto Topic via Subtopic | Auto Area via Topic | Final Topic | Final Area |
|---|
| On-Page SEO | [empty] | [empty] | SEO | Marketing | SEO | Marketing |
| Content Audit | [empty] | Sales | Content Strategy | Marketing | Content Strategy | Sales |
In the second row, even though the auto Area was "Marketing", the user manually chose "Sales" — so it overrides.
💡 Tips & Variations
🔄 Summary Flow
Tagging a Subtopic triggers:
- Auto-populate Parent Topic
- Auto-populate Area from Topic
- Final Topic/Area are derived from either Manual input or Auto logic
This gives you a flexible, nested tagging system with fallbacks.
Let me know if you'd like a ready-to-import template or example page structure!