Keyword replacement - page name of parent


(David Herrington) #1

Hi all. I'm a bit of a novice so i'll try and explain the best I can.

 

Is there a way to build a keyword replacement to automatically pull in the name of the parent?

 

I have a multipage asset with 4 x children and my standard design uses the keyword replacement %globals_asset_name% for the H1 of each page. However, on a multipage, I want the name of the page to be the same as the parent and then use %current_page_name% for the multi page.

 

An example of where this works well is on https://www.gov.uk/flexible-working/overview

 

Any ideas?


(Nick Papadatos) #2

Try  %asset_assetid^as_asset:asset_name%

 

More on keywords can be found here: http://manuals.matrix.squizsuite.net/keyword-replacements/chapters/keyword-modifiers

 

You'll have to turn off/hide the H1 Heading in your parsefile, i.e some custom css for the Multipage only,  example: h1.pagename {display:none}

 

Hope this helps

Nick


(David Herrington) #3

Thanks Nick, seems to be working as described.