[TYPO3] [typo3]add keywords to page and according to keywords automatically give a linklist

Francois Suter fsuter at cobweb.ch
Sun May 4 16:59:49 CEST 2008


Hi,

> I want a page which have two sections. One is the links list of pages which have A and the other is the list of pages which have B. Two different lists are in the same page. by this way type sitemap doesnot work. How can i improve it? 

It is possible, but you have to modify the rendering of the "Related
pages" menu. Here's an example:

tt_content.menu.20.6 >
tt_content.menu.20.6 = TEXT
tt_content.menu.20.6 {
    data = page:keywords
    split {
        token = ,
        cObjNum = 1
        1 {
            10 = TEXT
            10.current = 1
            10.wrap = <h2>|</h2>
            20 = HMENU
            20 {
                special = keywords
                special.setKeywords.current = 1
                1 = TMENU
                1 {
                    NO.allWrap = <li>|</li>
                    wrap = <ul>|</ul>
                }
            }
        }
    }
}

Note that the 10 = TEXT object is not absolutely necessary, it just
displays each keyword wrapped in a <h2> tag.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-english mailing list