Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Brian A. Posted June 28, 2016 Posted June 28, 2016 Want to display some content on globalTemplate, but I am currently stuck on how can I get the page ID. I know this code is for displaying to pages only, but I need to know how can I get the page ID to only show on that page that I specify. {{if $location['app'] == 'cms' and $location['module'] == 'pages' and $location['controller'] == 'page'}} Content here {{endif}} If anyone knows how to do this, please reply below.
Brian A. Posted June 29, 2016 Author Posted June 29, 2016 Never mind, I did some searching on the community. In case someone else trying to solve this, add this piece of code at the end of my code: \IPS\Request::i()->path == 'LOCATION HERE' Where it says "location here", you will put your location path of where you want the code to be at.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.