miercuri, 21 aprilie 2010

Create a sitemap in Typo3 with images

I needed a sitemap with images. I looked for a solution and I found a nice tutorial. With some minor changes I managed to create the desired sitemap. The images are uploaded in the media section of each page.
So:

1. Edit the TScongfig of the RootPage adding the following lines (this will add a new menu type in the sitemap content element):
TCEFORM.tt_content.menu_type {
addItems {
99 = Page with abstract and image
}
}

2. Add the following lines at the bottom of the TypoScript Template
tt_content.menu.20 = CASE
tt_content.menu.20.key.field = menu_type
tt_content.menu.20.99 < temp.PageWithImage

3. Finally, create a HMENU as follows

3 comentarii:

Andreas spunea...

foarte cool :),
pacat ca posturile astea tehniciste au asa de putine comentarii. De aceea unul lung de la mine... lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum

Larisa Gligor spunea...

Hai tu Laura, nu mai scrii nimic despre tine? :(

Dudu Vasile spunea...

http://efreedom.com/Question/1-2682740/Typo3-Sitemap-Images
congrats ;))