O'Reilly logo

CMS Made Simple 1.6 by Sofia Hauschildt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action—displaying tags in dependence of the page

We are going to hide the {last_modified_by} tag on the page Contact Us. However, it has to be still displayed on all other pages.

  1. Open the template Business World for editing (Layout | Templates).
  2. Add the Smarty IF code around the {last_modified_by...} tag, as shown in the following code snippet:
    <!DOCTYPE html>
    <html>
    <head>
    <title>{title} - {sitename}</title>
    {stylesheet}
    {metadata}
    <meta name="description" content="" />
    </head>
    <body>
    <div id="container">
    <div id="header">
    businessWorld
    </div>
    <div id="top-navi">
    {menu number_of_levels="1" template="minimal_menu.tpl"}
    </div>
    <div id="content">
    <h1>{title}</h1>
    {content}
    {if $page_alias neq "contact-us"} <p>Last modified by {last_modified_by ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required