Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

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

Tutorial 4:Site Map question


Reply

5 Posts   1311 Views

Avatar
speedooo

6 April 2009 at 10:58am Community Member, 11 Posts

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

Avatar
banal

6 April 2009 at 6:15pm Community Member, 901 Posts

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?

Avatar
speedooo

7 April 2009 at 8:32am Community Member, 11 Posts

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

Avatar
banal

7 April 2009 at 10:07am Community Member, 901 Posts

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

Avatar
speedooo

7 April 2009 at 11:52am Community Member, 11 Posts

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

But this time is working.thanks