Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » tracking pages..

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1465 Views
  • Rube_25
    Avatar
    Community Member
    36 Posts

    tracking pages.. Link to this post

    hi everybody

       
    my query is as follows:
       
    I would like to know how to do, that the pages that I visit has a tracking pages..

       
    as have several pages
       
    I show them this picture page.png

    again, sorry for my bad English

    rube

  • banal
    Avatar
    Community Member
    901 Posts

    Re: tracking pages.. Link to this post

    This looks a lot like a breadcrumb navigation.
    You can do this easily with the built in page-control ($Breadcrumbs): http://doc.silverstripe.com/doku.php?id=built-in-page-controls#site_navigation_-_breadcrumbs

    If you really want some sort of history, you'll probably have to implement something on your own using the Session Object or similar.

  • Rube_25
    Avatar
    Community Member
    36 Posts

    Re: tracking pages.. Link to this post

    thanks

    in the "templates \ Includes"
       
    I made a new file called: Breadcrumbs.ss

    <% if Level(2) %>
    <div class="breadcrumbs">
    $Breadcrumbs
    </div>
    <% end_if %>

       
    and in the folder:
    templates\Layout

    I put in my file Page.ss as follows:

    <div class="typography">
       <% if Level(2) %>
           <% include BreadCrumbs %>
       
       <% end_if %>
          $Content
    <% include GalleryPageContent %>
          $Form
          $PageComments
          
    </div>

       
    Anything I am doing wrong?
    Because I do not have the result..

    Thanks
    Rube

  • vstrazz
    Avatar
    Community Member
    63 Posts

    Re: tracking pages.. Link to this post

    Make sure you are calling the file with the right case.

    example. you have function BreadCrumbs(){ ...

    and you call $breadcrumbs on your page. you will get nothing. it has to match.

    This would be Correct in this instance, $BreadCrumbs

    1465 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.