1

I have a module named 'video gallery'. I want it to set for a cms page "video" only . The cms page id is '12' . I have tried {if $cms->id == 12} in video_gallery.tpl doesnt work. Someone please help me thank you!

Mario Radomanana
  • 1,698
  • 1
  • 21
  • 31
user1708597
  • 101
  • 5
  • 10

3 Answers3

1

Go to cms.tpl located in your theme folder and use this there :

{if $cms->id == 12}
    {$HOOK_WHERE_YOUR_VIDEO_MODULE_IS_ASSIGNED_TO}
{/if}

BR's

user2831723
  • 832
  • 12
  • 25
0

i think the way to access the id is like this:

{if $cms.id_cms == 12 } content here {/if}

you could use the 'debug popup'/ smarty debug window to see what the 'cms id' variable is.

faiz
  • 123
  • 5
  • 16
0

Try this one instead it works perfectly for me :

{if $smarty.get.id_cms == 12 }
 {$HOOK_WHERE_YOUR_VIDEO_MODULE_IS_ASSIGNED_TO}
{/if}
Amine Faiz
  • 93
  • 1
  • 2