Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted May 18, 20187 yr 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!
May 19, 20187 yr 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}}
Archived
This topic is now archived and is closed to further replies.