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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Tutorial 4:Site Map question


Go to End


5 Posts   2093 Views

Avatar
speedooo

Community Member, 11 Posts

6 April 2009 at 10:58am

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
bummzack

Community Member, 904 Posts

6 April 2009 at 6:15pm

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

Community Member, 11 Posts

7 April 2009 at 8:32am

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
bummzack

Community Member, 904 Posts

7 April 2009 at 10:07am

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

Community Member, 11 Posts

7 April 2009 at 11:52am

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

But this time is working.thanks