Hallo Yves,

Am 26.11.2011 12:19, schrieb Yves Chassein (Goolemail):
Hey,
ich habe eine kleine Frage, ich hätte gerne auf jeder Seite im Footer eine
kleine Sitemap. Bisher wird dies wie folgt gelöst:

SITE_MAP = COA
      SITE_MAP {
        10 = CONTENT
        10 {
          table = pages
          select{
             pidInList =
             where = doktype NOT IN (254,255,199,6,5) AND nav_hide = 0
             }
          renderObj=COA
          renderObj {
             wrap =<div class="site_map">|</div>

             5 = TEXT
             5.field = nav_title // title
             5.wrap =<h4>|</h4>

             10 = HMENU
             10 {
                 special = directory
                 special.value.field = uid

                 1 = TMENU
                 1.wrap =<ul>|</ul>
                 1.expAll=1
                 1.noBlur=1
                 1.NO.wrapItemAndSub =<li>|</li>
                 1.NO.ATagTitle.field = description // title
                 1.NO.ATagTitle.wrap = |..


Ein Inhaltselement vom Typ "Sitemap" reicht hierfür doch aus, oder?

SITE_MAP < tt_content.menu.20.1
SITE_MAP {
  special.value.field >
  special.value = [StartUid]
  1.NO.doNotLinkIt = 1
  ...
  2 < .1
  2.NO.doNotLinkIt = 0
  ...
  3 < .2
  4 < .2
  ...
}

Deine wraps etc. habe ich hier mal weggelassen der Einfachheit halber...
Das doNotLinkIt aus der 1. Ebene muss Du in den folgenden Ebenen wieder auf 0 setzen, sonst ist die ganze sitemap nicht verlinkt...

Gruß,
Markus
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an