Results 1 to 5 of 5

Thread: Removing 'go back' from articles

  1. #1
    New user
    Join Date
    07-05-09.
    Posts
    27

    Default Removing 'go back' from articles

    hello

    I'm trying to remove the 'go back' link from the bottom of articles but with no luck

    I tried to create a custom template but I don't see how I can assign it to an article (or possibly set it as default template for every article)

    any hints?

  2. #2
    User FloB's Avatar
    Join Date
    06-21-09.
    Posts
    157

    Default Re: Removing 'go back' from articles

    It's automatically added in the preview mode. You can't remove it, but it will not be shown on the life page.

  3. #3
    New user
    Join Date
    07-05-09.
    Posts
    27

    Default Re: Removing 'go back' from articles

    the go back link is actually shown on live articles

  4. #4
    User
    Join Date
    06-19-09.
    Posts
    106

    Default Re: Removing 'go back' from articles

    Hi FloB,

    In the backend, go to Templates > New Nempate, then choose mod_article.tpl and click Create template.

    Click on the Edit template icon, and remove these lines:

    Code:
    <?php if ($this->backlink): ?>
    
    <p class="back">back; ?>"><?php echo $this->back; ?></p>
    <?php endif; ?>
    TL will use this as the article template automatically if you don't rename it.

    Hope this helps.

  5. #5
    New user
    Join Date
    07-05-09.
    Posts
    27

    Default Re: Removing 'go back' from articles

    wow
    overriding templates in typolight is so obvious that I didn't even think about it...

    thank you!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •