u2albacete Posted August 20, 2018 Share Posted August 20, 2018 Hola buenas tardes he modificado page.tpl para que me aparezca un hook, me gustaria que solo se mostrase para la pagina que yo quiera. en este caso la pagina tiene id=8 el codigo que tengo es el siguiente: {extends file='page.tpl'} {block name='page_title'} {$cms.meta_title} {/block} {block name='page_content_container'} <section id="content" class="page-content page-cms page-cms-{$cms.id}"> {$cms.content nofilter} {hook h='displayCMSDisputeInformation'} {hook h='displayManufacturerSlider'} {hook h='displayCMSPrintButton'} </section> {/block} El que quiero que aparezca para la pagina id=8 es el que aparece en verde. Muchas gracias. Link to comment Share on other sites More sharing options...
UniArt Posted December 7, 2022 Share Posted December 7, 2022 Más vale tarde que nunca. para cms: {if $cms.id =="8"} {hook h='displayManufacturerSlider'} {/if} para una categoría: {if $category.id_category =="8"} {hook h='displayManufacturerSlider'} {/if} Y de así adelante... 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now