21309 Posts in 5738 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1099 Views |
-
Tutorial 4:Site Map question

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.ssI got my Site Map page but nothing in that page.
What i am missing?
please help?thanks
kevin
-
Re: Tutorial 4:Site Map question

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?
-
Re: Tutorial 4:Site Map question

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
-
Re: Tutorial 4:Site Map question

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 -
Re: Tutorial 4:Site Map question

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
| 1099 Views | ||
|
Page:
1
|
Go to Top |


