Jump to content

Edit History

@rthur

@rthur

Hi,

I'm trying to display a cms content before my footer. This content must only display if the category page is 10 or 25.

I'm not sure the proper way to do it.

I tried this :

{if $category.id == 10 OR $category.id == 25}
  {assign var=cms_content value=CMS::getCMSContent(16, true, true)}
     <div class="contentCms">
       {$cms_content.content}
     </div>
{/if}

The issue is that it displays the raw html content (see attached). How can I display the code in html format?

Thanks

Prestashop 1.7.4.3

Capture d’écran 2020-12-23 à 12.09.28.png

@rthur

@rthur

Hi,

I'm trying to display a cms content before my footer. This content must only display if the category page is 10.

I'm not sure the proper way to do it.

I tried this :

{if $category.id == 10 OR $category.id == 25}
  {assign var=cms_content value=CMS::getCMSContent(16, true, true)}
     <div class="contentCms">
       {$cms_content.content}
     </div>
{/if}

The issue is that it displays the raw html content (see attached). How can I display the code in html format?

Thanks

Prestashop 1.7.4.3

Capture d’écran 2020-12-23 à 12.09.28.png

@rthur

@rthur

Hi,

I'm trying to display a block before my footer. This block must only display if the category page is 10.

I'm not sure the proper way to do it.

I tried this :

{if $category.id == 10 OR $category.id == 25}
  {assign var=cms_content value=CMS::getCMSContent(16, true, true)}
     <div class="contentCms">
       {$cms_content.content}
     </div>
{/if}

The issue is that it displays the raw html content (see attached). How can I display the code in html format?

Thanks

Prestashop 1.7.4.3

Capture d’écran 2020-12-23 à 12.09.28.png

@rthur

@rthur

Hi,

I'm trying to display a block before my footer. This block must only display if the category page is 10.

I'm not sure the proper way to do it.

I tried this :

{if $category.id == 10 OR $category.id == 25}
  {assign var=cms_content value=CMS::getCMSContent(16, true, true)}
     <div class="contentCms">
       {$cms_content.content}
     </div>
{/if}

The issue is that it displays the raw html content (see attached). How can I display the code in html format?

Thanks

Prestashop 1.7.4.3

×
×
  • Create New...