[TYPO3] Sitemap question

Heiner Lamprecht heiner at heiner-lamprecht.net
Sat Apr 22 21:49:05 CEST 2006


On Saturday 22 April 2006 19:54, Derek Harkness wrote:
> Okay this is a really dumb question but how do I generate a
> sitemap for my site?
>
> I tried adding a sitemap element to a new page and setting the
> Start Page to the root of my tree and I get an empty sitemap.  Am
> I missing something?

You have to define the layout of the sitemap.  It's similar to what 
you do for menus.

Example:

lib.sitemap = COA
lib.sitemap {
  stdWrap.prefixComment = 2 | lib.sitemap
  wrap = <div class="sitemap">|</div>
  10 = HMENU
  10.special = directory
  10.special.value.field = pages
  10.1 = TMENU
  10.1 {
    wrap = <ul class="level_1">|</ul>
    noBlur = 1
    expAll = 1
    NO {
      wrapItemAndSub = <li>|</li>
      ATagTitle.field = description // title
    }
  }
  10.2 < .10.1
  10.2.wrap = <ul class="level_2">|</ul>

  10.3 < .10.1
  10.3.wrap = <ul class="level_3">|</ul>
}

-- 
    heiner at heiner-lamprecht dot net    GnuPG - Key: 9859E373
  Fingerprint:  3770 7947 F917 94EF 8717 BADB 0139 7554 9859 E373



More information about the TYPO3-english mailing list