Announcement

Collapse
No announcement yet.

Pagination Page Title

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Pagination Page Title

    Hi everyone,
    Can anybody tell me if there is a way to removed the Page 1, Page 2, Page 3 suffix on the titles of paginated pages or at least the first page if possible.

    Any help or assistance is as always greatly appreciated.
    Regards.

    Lee Jackson
    Creative Director

    Centurius Design & Marketing
    Centurius Website
    Portfolio of Work

    #2
    To remove all Page <n> try this:

    In your overall layout, replace:
    Code:
    <title><actinic:variable name="PageTitle" ></title>
    With:
    Code:
    <title>
        <actinic:block php="true">
            echo preg_replace('/ Page \d+$/', '', '<actinic:variable name="PageTitle" encoding="perl" selectable="false">');
        </actinic:block>
    </title>
    To remove only Page 1, use:
    Code:
    <title>
        <actinic:block php="true">
            echo preg_replace('/ Page 1$/', '', '<actinic:variable name="PageTitle" encoding="perl" selectable="false">');
        </actinic:block>
    </title>
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Norman, I just wanted to say thank you for your reply. As always your suggestion did the trick. Much appreciated.
      Regards.

      Lee Jackson
      Creative Director

      Centurius Design & Marketing
      Centurius Website
      Portfolio of Work

      Comment

      Working...
      X