Page title

Hi,


I’m thinking about using a menu_normal design area to populate our page titles. We’re using pages instead of matrix site assets for our sites therefore we cannot use the %site_name% in our designs. The only way we can find out what the page name that we are using for the site is to use the menu_area below:


    Griffith University | %asset_short_name% - 
    
    
       
       
          
       
    
    
    

This outputs what we need, however thinking if any future updates may change how this works. Are there any concerns over using menu_normal in the title?

[quote]This outputs what we need, however thinking if any future updates may change how this works.  Are there any concerns over using menu_normal in the title?
[right][post=“14560”]<{POST_SNAPBACK}>[/post][/right][/quote]



I usually do this with an asset_lineage instead – it has the same effect, but is faster, because we calculate asset lineages anyway. Future updates should not change current behaviour.

[quote]I usually do this with an asset_lineage instead – it has the same effect, but is faster, because we calculate asset lineages anyway. Future updates should not change current behaviour.
[right][post=“14561”]<{POST_SNAPBACK}>[/post][/right][/quote]



I thought about using reverse linage from the current asset, however the parent of a page will not always be the root of the site. (not matrix site)



I tried normal linage, however there are type1 page assets above the site (really a page asset - not matrix site) in the tree which we don’t want displayed.



We want our output to be current page short name + site name. (not matrix site)



If future updates will not affect this I’ll cascade this into all our designs.

Why aren't you using Site assets anyway? You can nest them… :slight_smile:

[quote]Why aren’t you using Site assets anyway? You can nest them… :slight_smile:
[right][post=“14566”]<{POST_SNAPBACK}>[/post][/right][/quote]



Nested sites can’t reference their parent site.

[quote]Nested sites can’t reference their parent site.
[right][post=“14567”]<{POST_SNAPBACK}>[/post][/right][/quote]



True. If you do use the menu design area, I would strongly recommend adding a cache parameter and turning on Matrix’s cache manager, i.e.:


    


This will be much better for performance.