Jump to:

23001 Posts in 11702 Topics by 2827 members

General Questions

SilverStripe Forums » General Questions » Tutorial 4:Site Map question

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1248 Views
  • speedooo
    Avatar
    Community Member
    11 Posts

    Tutorial 4:Site Map question Link to this post

    HI,
    in "Step 4: Create the template for the site map", what details for SIteMap.ss.
    I created SiteMap.ss with empty file.
    I included $SiteMap in my Page.ss

    I got my Site Map page but nothing in that page.

    What i am missing?
    please help?

    thanks

    kevin

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Tutorial 4:Site Map question Link to this post

    Well.. Do you have:
    SiteMap.ss in your templates/Layout directory? It should contain the code listed in the Tutorial (not an empty file).
    You don't need to put $SiteMap in Page.ss as long as you use the Layout file (must have $Layout in your Page.ss)
    You should have a SiteMap.php file in your code directory.
    DB must be rebuilt.
    In the CMS you'll have to create a new Page with type "SiteMap"

    Maybe you should read through the tutorial once more and check if you missed something?

  • speedooo
    Avatar
    Community Member
    11 Posts

    Re: Tutorial 4:Site Map question Link to this post

    I did what what you said, but just could not find source code for SiteMap.ss.

    Could you point me where is it?

    thanks

    keivn

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Tutorial 4:Site Map question Link to this post

    The code code for the SiteMap.ss Layout can be found here:
    http://doc.silverstripe.com/doku.php?id=tutorial:site-map
    @ Step 4: Create the template for the site map

  • speedooo
    Avatar
    Community Member
    11 Posts

    Re: Tutorial 4:Site Map question Link to this post

    I did copy that code at the first time and did not work.

    But this time is working.thanks

    1248 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.