Webmaster Scr Posted January 12, 2022 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). 😕
Jim M Posted January 12, 2022 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.
Webmaster Scr Posted January 12, 2022 Author Posted January 12, 2022 Oh, sorry. I thought I posted in the community section. My bad.
Patreon Lukazuki Posted January 12, 2022 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 ❤ SeNioR- and Webmaster Scr 2
Daniel F Posted January 13, 2022 Posted January 13, 2022 {{if \IPS\Dispatcher::i()->application->directory == 'nexus'}} Your code to show only inside commerce {{endif}} AlexWebsites, TAMAN, SeNioR- and 1 other 2 1 1
rastafari Posted February 14, 2023 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 ??
Daniel F Posted February 14, 2023 Posted February 14, 2023 {{if \IPS\Dispatcher::i()->application->directory != 'nexus'}} Your code to show everywhere except in commerce {{endif}} ArashDev 1
Recommended Posts