<MySource_AREA id_name="logo" design_area="show_if">
<MySource_SET name="condition" value="asset_assetid" />
<MySource_SET name="condition_status" value="XXXXX" />
<MySource_THEN>Homepage. No need link</MySource_THEN>
<MySource_ELSE>NOT home. Make link to homepage</MySource_ELSE>
</MySource_AREA>
The problem is that I am in a nested content of a header. So it returns the id of that nested (header) asset, but I need the root page id.
Comparing urls is not good for me, because links are flexible.
Is your homepage quite complex and important e.g. a main part of your marketing/comms strategy? If so, might be better to divide and conquer, have a design file and templating system just for the home page. That way if there are significant changes for new campaigns they are isolated to the one design/page.
Can you explain a bit more about the problem you are trying to fix? Are you simply just not wanting to print a link to the homepage around the logo image if the user is currently on the homepage?
<MySource_AREAid_name="logo"design_area="show_if"><MySource_SETname="condition"value="globals_asset_assetid"/> <MySource_SETname="condition_status"value="XXXXX"/> <MySource_THEN>Homepage. No need link</MySource_THEN> <MySource_ELSE>NOT home. Make link to homepage</MySource_ELSE> </MySource_AREA>
?
But I don't think you can conditionally print the menu items like you are intending. You might be able to do something with modifiers on the menu print though, something like this?