TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] Dynamic Menu

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 ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 21.08.2008, 18:07
Dan Osipov
Gast
 
Beiträge: n/a
Standard [TYPO3] Dynamic Menu

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 22.08.2008, 09:45
Lars Haendler
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Dynamic Menu

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 = |&raquo
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 = &nbsp;<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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 22.08.2008, 11:43
Dmitry Dulepov [typo3]
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Dynamic Menu

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 22.08.2008, 15:06
Dan Osipov
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Dynamic Menu

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 23.08.2008, 10:49
Xavier Perseguers
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Dynamic Menu

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:23 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39