I have a homepage that would need to have the navigation with:
Code: Select all
screenposition="top,center";
top="offset=197";
Code: Select all
screenposition="top,center";
top="offset=15";
I have solved it by just creating a new menu_data-index.js and loading that for my index.php with the different variables for the top offset. But now if I want to change anything in my navigation I have to change two files all the time. Is there a workaround for this in PHP or javascript? Like
Code: Select all
if filename is index.php {set top="offset=197"}; else {set top="offset=15"};
Index.php
Subpage with different positioning
Thanks
Andy