Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Heosforo Posted May 18, 2018 Posted May 18, 2018 Hello guys I'm really bad with codes, and I've been searching but I get nothing yet. I'm trying to add content in different pages (Pages APP) through globalTemplate. Something like this: {{if \IPS\cms\Pages\Page->id == 1, 2, 3}} content {{endif}} How could I implement this? ?Appreciate any help. Cheers!
TAMAN Posted May 19, 2018 Posted May 19, 2018 Just now, Heosforo said: Hello guys I'm really bad with codes, and I've been searching but I get nothing yet. I'm trying to add content in different pages (Pages APP) through globalTemplate. Something like this: {{if \IPS\cms\Pages\Page->id == 1, 2, 3}} content {{endif}} How could I implement this? ?Appreciate any help. Cheers! {{if in_array(\IPS\cms\Pages\Page::$currentPage->id, array(1,2,3)) }} content {{endif}}
Recommended Posts
Archived
This topic is now archived and is closed to further replies.