Automatically applies Topic (if Subtopic is tagged)
Automatically applies Area (via Topic, as before)
Here's the updated blueprint:
Step 1: Update Topics DB with Self-Relation (Topic → Subtopic)
In Topics DB, add two new properties:
1. Parent Topic (Property type: Relation to Topics DB itself)
* This creates a self-referential relation: A Topic can be the parent of another Topic (now acting as a Subtopic).
* Disable "Allow multiple parents" (a Subtopic belongs to one Topic).
* Label it clearly, e.g., "Parent Topic" or "Belongs to Topic".
2. Subtopics (Property type: Relation to Topics DB itself, inverse of Parent Topic)
* Notion will auto-create this inverse relation. It shows all Subtopics under a Topic.
* Enable "Allow multiple subtopics" (a Topic can have many Subtopics).
Now, your Topics DB looks like this:
Topic
Parent Topic
Subtopics
SEO
[empty]
Keyword Research, On-Page Optimization
Keyword Research
SEO
[empty]
On-Page Optimization
SEO
[empty]
Content Strategy
[empty]
Blog Writing, Social Media Planning
Blog Writing
Content Strategy
[empty]
Visual tip: Use a Tree View (Notion's /tree command) in Topics DB to see the hierarchy:
code
- SEO
- Keyword Research
- On-Page Optimization
- Content Strategy
- Blog Writing
- Social Media Planning
Step 2: Retain Area Relation in Topics DB
Ensure the Area Relation property (from before) remains in Topics DB. This links Topics (and thus Subtopics indirectly) to Areas.
Topic
Parent Topic
Area Relation
SEO
[empty]
Marketing
Keyword Research
SEO
[empty] (inherited from SEO)
On-Page Optimization
SEO
[empty] (inherited from SEO)
Content Strategy
[empty]
Marketing
Blog Writing
Content Strategy
[empty] (inherited from Content Strategy)
Don't worry that Subtopics don't directly have an Area Relation. We'll propagate it via Formula.
Step 3: Formula to Propagate Area to Subtopics
In Topics DB, create a new Formula property:
Inherited Area (Property type: Formula)
plaintext
if(
not empty(prop("Area Relation")),
prop("Area Relation"),
if(
not empty(prop("Parent Topic")),
prop("Parent Topic").relation("Area Relation").first(),
""
)
)
Logic:
If the entry (Topic or Subtopic) has an explicit Area Relation, use that.
Otherwise, if it's a Subtopic (Parent Topic is not empty), fetch the Area Relation from its Parent Topic.
If neither condition matches (new Topic without Area), return empty ("").
Now, Subtopics inherit the Area from their Parent Topics automatically:
Topic
Parent Topic
Area Relation
Inherited Area
SEO
[empty]
Marketing
Marketing
Keyword Research
SEO
[empty]
Marketing
On-Page Optimization
SEO
[empty]
Marketing
Content Strategy
[empty]
Marketing
Marketing
Blog Writing
Content Strategy
[empty]
Marketing
Step 4: Update Pages DB to Handle Topics & Subtopics
In Pages DB, assume you have:
Topic (Relation to Topics DB, as before)
Manual Area (Relation to Areas DB, as before)
Auto Area via Topic (Formula, as before)
Now, add:
4. Auto Topic from Subtopic (Property type: Formula)
plaintext
if(
not empty(prop("Topic")),
prop("Topic"),
if(
not empty(prop("Topic").relation("Parent Topic").first()),
prop("Topic").relation("Parent Topic").first(),
""
)
)
What it does:
If a Topic is directly selected, use that.
If a Subtopic is selected (detected by checking Parent Topic relation), replace it with the Parent Topic.
Otherwise, leave it empty.
5. Update Auto Area via Topic Formula
Replace the old Auto Area via Topic Formula with:
plaintext
if(
not empty(prop("Topic")),
prop("Topic").relation("Inherited Area").first(),
""
)
Change:
Instead of looking at Area Relation directly, it now uses Inherited Area (our propagated Area logic).
6. Consolidated Area Property (unchanged)
Retain the final Area Formula (from before):
plaintext
if(
not empty(prop("Manual Area")),
prop("Manual Area"),
prop("Auto Area via Topic")
)
Final Flow in Pages DB:
You tag either a Topic or a Subtopic in the Topic property.
Auto Topic from Subtopic Formula:
If Subtopic → resolves to Parent Topic.
If Topic → keeps the Topic.
Auto Area via Topic Formula uses the resolved Topic (or Subtopic's Parent Topic) to fetch the Inherited Area.
Area consolidates: Manual Area (if set) or Auto Area via Topic (if not).
Example Outcome in Pages DB:
Topic
Auto Topic from Subtopic
Auto Area via Topic
Area
Keyword Research
SEO
Marketing
Marketing
Content Strategy
Content Strategy
Marketing
Marketing
Blog Writing
Content Strategy
Marketing
Marketing
[empty]
[empty]
[empty]
[empty]
Now:
Tag a Subtopic (e.g., "Keyword Research") → Auto Topic from Subtopic changes it to "SEO" → Area auto-fills as "Marketing".
Tag a Topic directly (e.g., "Content Strategy") → Area still auto-fills as "Marketing".
Manually set an Area in Manual Area, and it overrides the automation.
Hierarchy Recap:
Areas DB: Top-level categories.
Topics DB:
Topics (e.g., "SEO") relate to Areas.
Subtopics (e.g., "Keyword Research") relate to Topics (inherit Area indirectly).
Pages DB:
Tag Topics or Subtopics.
Formulas resolve Subtopics → Topics → Areas automatically.
Manual override always takes precedence.
You're now managing a Topic Hierarchy with automatic Area propagation in Notion!