I am trying to link a random section( not related e.g parent/child etc) called "Section-Random.html" from my current section using a link called "My_Link".
I can do an <a href="Section_Random.html">My_link<a/> and that works fine live but not on preview due to the "P_" prefix on preview.
One way to work around this is to put the prefix "P_" with a block if checking whether the site is displayed live or on preview.
So basically I define a variable the holds the URL of the target section and then place a block if condition for the live or preview modes...something like: <a href="P_<actinic:variable name="TargetSection" />
Is it how you go about doing this ?
I can do an <a href="Section_Random.html">My_link<a/> and that works fine live but not on preview due to the "P_" prefix on preview.
One way to work around this is to put the prefix "P_" with a block if checking whether the site is displayed live or on preview.
So basically I define a variable the holds the URL of the target section and then place a block if condition for the live or preview modes...something like: <a href="P_<actinic:variable name="TargetSection" />
Is it how you go about doing this ?