Jump to content

How to echo page title in my cms.tpl template?


Recommended Posts

the smarty that aI tried :

 

 

<div class="rte{if $content_only} content_only{/if}">

 

<h1>{$meta_title|escape:'htmlall':'UTF-8'}</h1>

{$cms->content}

</div>

 

outputs:

 

My awesome cms page title | My website name

 

some content here...

 

 

However, I don't need my website name to output. I would like to have:

 

 

My awesome cms page title

 

some content here...

 

 

How can this be done using smarty or row php?

 

Thanks for any advice.

Link to comment
Share on other sites

Ok, I tak it back. the replace smarty function si working now ;).

 

Anyway, i still do not understand the absence of the title in CMS pages. I mean in Drupal, Joomla, Wordpress etc. this is a required field, but in Prestashop you have this field presented like meta tag title or something like that.

 

It is confusing and not very good programming approach.

Link to comment
Share on other sites

  • 2 years later...
  • 2 months later...
×
×
  • Create New...