Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3] Dynamic Menu within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; I'm reposting this question: I am trying to create a menu, based on the pid passed in a URL ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
I'm reposting this question:
I am trying to create a menu, based on the pid passed in a URL variable. The menu should be generated starting from that pid. I've tried various variations of the code below, but it is always generating a menu from the page pid, not the value of the variable. Here is the code: marks.BREADCRUMBS.special = rootline marks.BREADCRUMBS.special.value.data = GP: tx_ttnews|backPid marks.BREADCRUMBS.special.range = 0 marks.BREADCRUMBS.1 = TMENU marks.BREADCRUMBS.1 { # Do stuff } The value of tx_ttnews[backPid] is completely ignored... Can someone point me to a mistake? -- Dan Osipov Calkins Media http://danosipov.com/blog/ _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Hi,
Dan Osipov wrote: > I'm reposting this question: > > I am trying to create a menu, based on the pid passed in a URL variable. > The menu should be generated starting from that pid. I've tried various > variations of the code below, but it is always generating a menu from > the page pid, not the value of the variable. > > Here is the code: > marks.BREADCRUMBS.special = rootline > marks.BREADCRUMBS.special.value.data = GP: tx_ttnews|backPid > marks.BREADCRUMBS.special.range = 0 > marks.BREADCRUMBS.1 = TMENU > marks.BREADCRUMBS.1 { > # Do stuff > } > > The value of tx_ttnews[backPid] is completely ignored... > Can someone point me to a mistake? I do not completly get what you acutally want to achieve but I had to do a rootline latly that added the product name of a tt_products element. I did it with RECORDS because a simple TMENU cannot give something from a different table. The second rootline = COA #main config #special if on a tt_products page [globalVar = GP:tx_ttproducts_pi1|product > 0] rootline.10.1.NO.linkWrap = |» rootline.10.special.range = 0|-2 rootline.20 = RECORDS rootline.20 { dontCheckPid = 1 tables = tt_products source.data = GPvar:tx_ttproducts_pi1|product conf.tt_products = COA conf.tt_products = TEXT conf.tt_products.field = title conf.tt_products.crop = 60 | ... conf.tt_products.wrap = <strong>|</strong> } [global] Hope that helps Regards Lars _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
Hi!
Dan Osipov wrote: > I am trying to create a menu, based on the pid passed in a URL variable. > The menu should be generated starting from that pid. I've tried various > variations of the code below, but it is always generating a menu from > the page pid, not the value of the variable. This is because you use rootline: > marks.BREADCRUMBS.special = rootline Rootline always uses current pid. -- Dmitry Dulepov TYPO3 Core team My TYPO3 book: http://www.packtpub.com/typo3-extens...velopment/book In the blog: http://typo3bloke.net/pages/book-rev...garr-reynolds/ _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#4
|
|||
|
|||
|
I tried to remove that line - it doesn't work either...
How can I get the same behavior as the rootline, but starting from a different PID? Dan Osipov Calkins Media http://danosipov.com/blog/ Dmitry Dulepov [typo3] wrote: > Hi! > > Dan Osipov wrote: >> I am trying to create a menu, based on the pid passed in a URL >> variable. The menu should be generated starting from that pid. I've >> tried various variations of the code below, but it is always >> generating a menu from the page pid, not the value of the variable. > > This is because you use rootline: > >> marks.BREADCRUMBS.special = rootline > > Rootline always uses current pid. > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#5
|
|||
|
|||
|
Hi,
> I tried to remove that line - it doesn't work either... > > How can I get the same behavior as the rootline, but starting from a > different PID? Read this article: http://xavier.perseguers.ch/en/tutor...ted-pages.html -- Xavier Perseguers http://xavier.perseguers.ch/en _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] Dynamic Flexform | Xavier Perseguers | typo3-english@lists.netfielders.de | 2 | 13.06.2008 14:32 |
| [TYPO3] Dynamic TCA (dynamic fields in content-edit) | Frank | typo3-english@lists.netfielders.de | 1 | 22.10.2007 14:49 |
| [TYPO3] dynamic JSMENU | Leon White | typo3-english@lists.netfielders.de | 0 | 18.10.2007 13:17 |
| [TYPO3] GMenu dynamic height for menu item | Brian Bendtsen | typo3-english@lists.netfielders.de | 0 | 03.09.2007 14:28 |
| [TYPO3] Dynamic TS? | Bill Stoltz | typo3-english@lists.netfielders.de | 1 | 06.08.2007 09:31 |