Thomas P Posted February 27, 2018 Share Posted February 27, 2018 Hi mates, how can I insert code, which should only show on topic pages? I have to insert code to the footer of the topic pages... Thanks in advance, Thomas Link to comment Share on other sites More sharing options...
Adriano Faria Posted February 27, 2018 Share Posted February 27, 2018 Topic pages? You mean articles? Link to comment Share on other sites More sharing options...
Thomas P Posted February 27, 2018 Author Share Posted February 27, 2018 Sorry, I mean forum topics... Link to comment Share on other sites More sharing options...
Adriano Faria Posted February 27, 2018 Share Posted February 27, 2018 Something like: {{if \IPS\Request::i()->app == 'forums' and \IPS\Request::i()->module == 'forums' and \IPS\Request::i()->controller == 'topic'}} Show your stuff {{endif}} Link to comment Share on other sites More sharing options...
Thomas P Posted February 27, 2018 Author Share Posted February 27, 2018 Thanks, Adriano - that works. Could you please tell me, if this works, too? {{if \IPS\Request::i()->app == 'forums' and \IPS\Request::i()->controller == 'topic'}} mystuff {{endif}} Link to comment Share on other sites More sharing options...
Adriano Faria Posted February 27, 2018 Share Posted February 27, 2018 Yes, it works but if it has another controller called topic in a module different than forums, it will show too. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.