Webmaster Scr Posted January 12, 2022 Share Posted January 12, 2022 Hi, I would like to display some custom icons (available payments) in my community footer but only when the Commerce app is displayed. Which variable should I test in global/footer to do that, please? Something like {{if ( $app ) == 'nexus'}} or should I try to find '/store/' in {expression="request.url()"}? (and I don't know how to do that too, by the way). 😕 Link to comment Share on other sites More sharing options...
Jim M Posted January 12, 2022 Share Posted January 12, 2022 Thanks for posting! Unfortunately, this issue is beyond the scope of our technical support. 👩💻 Our technical support is happy to help you with the Invision Community platform, but we're unable to help with things like server management, theme questions and modifications. I've moved this to our Community Support area where other Invision Community owners will see it and help where they can. Link to comment Share on other sites More sharing options...
Webmaster Scr Posted January 12, 2022 Author Share Posted January 12, 2022 Oh, sorry. I thought I posted in the community section. My bad. Link to comment Share on other sites More sharing options...
Patreon Lukazuki Posted January 12, 2022 Share Posted January 12, 2022 (edited) you can do that by CSS /* everywhere hidden */ .someclassName { display:none; } /* visible only on store */ body[data-pageapp="nexus"] .someclassName { display:block; } Edited January 13, 2022 by Lukazuki ❤ Webmaster Scr and SeNioR- 2 Link to comment Share on other sites More sharing options...
Daniel F Posted January 13, 2022 Share Posted January 13, 2022 {{if \IPS\Dispatcher::i()->application->directory == 'nexus'}} Your code to show only inside commerce {{endif}} TAMAN, AlexWebsites, Webmaster Scr and 1 other 2 1 1 Link to comment Share on other sites More sharing options...
Webmaster Scr Posted January 13, 2022 Author Share Posted January 13, 2022 Wonderful! Thanks a lot Daniel. Link to comment Share on other sites More sharing options...
Daniel F Posted January 13, 2022 Share Posted January 13, 2022 Link to comment Share on other sites More sharing options...
rastafari Posted February 14, 2023 Share Posted February 14, 2023 On 1/13/2022 at 4:13 AM, Daniel F said: {{if \IPS\Dispatcher::i()->application->directory == 'nexus'}} Your code to show only inside commerce {{endif}} and . . . how can I exclude an app ?? Link to comment Share on other sites More sharing options...
Daniel F Posted February 14, 2023 Share Posted February 14, 2023 {{if \IPS\Dispatcher::i()->application->directory != 'nexus'}} Your code to show everywhere except in commerce {{endif}} ArashDev 1 Link to comment Share on other sites More sharing options...
rastafari Posted February 14, 2023 Share Posted February 14, 2023 Special thanks !!! Link to comment Share on other sites More sharing options...
Recommended Posts