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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   1770 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