[Typo3] menu wrap and realurl
Matyi Gábor
gmatyi at freemail.hu
Wed Dec 14 22:24:27 CET 2005
Hi,
I'm learning the typo3, but I'm newbee yet. What I'd like to make is a website
based on template made with dreamweawer. I always have trouble with the menu
items. I read many archive message, f.e. this mail, but the whole menu
wrapping theme is hardly compehensive for me.
I read this document,
http://typo3.org/documentation/document-library/doc_tut_templselect/Creating_the_menu/
but is is not enough in order to undersand this solution.
Could anybody tell me, what did this scripts, and how I should wrap the menu
to the dremweawer template?
Thanks.
Gabor Matyi
2005. október 10. 17.34 dátummal Bing Du ezt írta:
> Bing wrote:
> > Hello everyone,
> >
> > Our main menu was constructed this way before realurl was implemented.
> > It worked fine.
> >
> > ==========
> > temp.nav.1 = TMENU
> > temp.nav.1 {
> > expAll = 1
> > wrap = <ul>|</ul>
> >
> > NO.doNotLinkIt = 1
> > NO.before.data = field:uid
> > NO.beforeWrap = <li><a href="index.php?id=|" onfocus="blurLink(this);"
> > onclick="return toggleSubmenu(this);">
> >
> > NO.stdWrap.field = title
> > NO.stdWrap.wrap = |</a>
> > NO.after.field = uid
> > NO.afterWrap = <ul style="display: none;" id="page|">
> > NO.allWrap = |
> > NO.wrapItemAndSub = |<li style="display: none;"></li></ul></li>
> >
> > ACT = 1
> > ACT.doNotLinkIt = 1
> > ACT.before.data = field:uid
> > ACT.beforeWrap = <li><a href="index.php?id=|" onfocus="blurLink(this);"
> > onclick="return toggleSubmenu(this);" class="selected">
> >
> > ACT.stdWrap.field = title
> > ACT.stdWrap.wrap = |</a>
> > ACT.after.field = uid
> > ACT.afterWrap = <ul id="page|">
> > ACT.allWrap = |
> > ACT.wrapItemAndSub = |<li style="display: none;"></li></ul></li>
> > }
> > ===========
> >
> > After realurl was installed and configured, I changed the above code to
> > the following to let virtual URLs be generated by removing <a
> > href="index.php?id=|"> from the above typoscript.
> >
> > =======
> > temp.nav.1 = TMENU
> > temp.nav.1 {
> > expAll = 1
> > wrap = <ul>|</ul>
> >
> > NO.doNotLinkIt = 1
> >
> > NO.before.data = field:title // field:uid
> > NO.beforeWrap = <li>
> > ATagParams = onfocus="blurLink(this);" onclick="return
> > toggleSubmenu(this);"
> >
> > NO.stdWrap.field = title
> > NO.stdWrap.wrap = |</a>
> > NO.after.field = uid
> > NO.afterWrap = <ul style="display: none;" id="page|">
> > NO.allWrap = |
> > NO.wrapItemAndSub = |<li style="display: none;"></li></ul></li>
> >
> > ACT = 1
> > ACT.doNotLinkIt = 1
> >
> > ACT.before.data = field:title // field:uid
> > ACT.beforeWrap = <li>
> > ATagParams = onfocus="blurLink(this);" onclick="return
> > toggleSubmenu(this);" class="selected"
> >
> > ACT.stdWrap.field = title
> > ACT.stdWrap.wrap = |</a>
> > ACT.after.field = uid
> > ACT.afterWrap = <ul id="page|">
> > ACT.allWrap = |
> > ACT.wrapItemAndSub = |<li style="display: none;"></li></ul></li>
> > }
> > =======
> >
> > The menu was just screwed up. What did I do wrong?
> >
> > Another question, how and when does tx_realurl_pathsegment field in pages
> > table get filled in? Mine is empty for all the pages. Is that right?
> >
> > I'd appreciate any help.
> >
> > Bing
>
> Figured it out.
>
> =======
> temp.nav = HMENU
> temp.nav.special = directory
> temp.nav.special.value = 581
>
> temp.nav.wrap = <ul>|</ul>
>
> temp.nav.1 = TMENU
> temp.nav.1 {
> expAll = 0
> collapse = 1
>
> NO {
> doNotLinkIt = 0
> allWrap = <li>|<ul>
> linkWrap = |
> wrapItemAndSub = |</ul></li>
> ATagParams = onfocus="blurLink(this);" onclick="return
> toggleSubmenu(this);"
> }
>
> ACT = 1
> ACT.doNotLinkIt = 0
> ACT.allWrap = <li>|<ul>
> ACT.linkWrap = |
> ACT.wrapItemAndSub = |</ul></li>
> ACT.ATagParams = onfocus="blurLink(this);" onclick="return
> toggleSubmenu(this);" class="selected"
> }
>
> temp.nav.2 < .temp.nav.1
> temp.nav.3 < .temp.nav.1
> temp.nav.4 < .temp.nav.1
> ========
>
> Bing
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list