Re: [TYPO3] Getting title of parent item in a menu

2007-08-19 Thread Loek Hilgersom
Hi Joey, Getting rid of the currentpagetitle.cObject is a good idea, it's lot cleaner like that. And the stdWrap works fine now, I thought I had tried that option but must have made some other mistake then. Nice sunday puzzle, other people solve crosswords :-) All set, thanks again! Loek Jo

Re: [TYPO3] Getting title of parent item in a menu

2007-08-19 Thread JoH asenau
> 2 = TMENU > 2.NO { > allStdWrap { > # Show only if current-page-id and menu-item-parent_id match > if { > value.data = TSFE:id > equals.field = pid > } > } > stdWrap { > # Put the register content before the linktext > da

Re: [TYPO3] Getting title of parent item in a menu

2007-08-19 Thread JoH asenau
> I needed the allStdWrap to be able to hide the unwanted items > entirely, but because of that now only the words downloads/info/wiki > are linked, not the entire line including {register:level1Title}. I > tried to achieve that but didn't succeed. Anyway, it's acceptable > like it is now. 2 = TME

Re: [TYPO3] Getting title of parent item in a menu

2007-08-19 Thread Loek Hilgersom
Thanks Joey, it wasn't exactly what I need, but it was a useful trick that is part of the solution below. The problem was that I also needed to show only certain subpages, e.g. only those with downloads, or only those with the wiki. But since those pages all have the same name I solved this with

Re: [TYPO3] Getting title of parent item in a menu

2007-08-17 Thread JoH asenau
> What I'm trying to achieve is this: > > The page tree looks like this: > >> --Page1 >>|--downloads >>|--info >>\--wiki >> >> --Page2 >>|--downloads >>|--info >>\--wiki >> > > etc. > > Now I want to show a menu with only pages from the 2nd level but > where the link texts a

Re: [TYPO3] Getting title of parent item in a menu

2007-08-17 Thread JoH asenau
> This is a hard one. Perhaps you can have a look at the 'browse' part > of MENU. It's not that hard but I have to admit it's a bit tricky, but browse won't do the trick at all. Joey -- Wenn man keine Ahnung hat: Einfach mal Fresse halten! (If you have no clues: simply shut your gob sometimes!)

Re: [TYPO3] Getting title of parent item in a menu

2007-08-17 Thread JoH asenau
> Without any fancy fun here is a solution: > > lib.menu = COA > lib.menu.10 = TEXT > lib.menu.10.data = leveltitle:-2 > lib.menu.20 = HMENU > lib.menu.20.1 = TMENU > lib.menu.20.1.NO.linkWrap = | Unfortunately not in this case, since leveltitle works with focus on the current page and not the pag

Re: [TYPO3] Getting title of parent item in a menu

2007-08-17 Thread Daniel Doesburg
Hi Loek, Without any fancy fun here is a solution: lib.menu = COA lib.menu.10 = TEXT lib.menu.10.data = leveltitle:-2 lib.menu.20 = HMENU lib.menu.20.1 = TMENU lib.menu.20.1.NO.linkWrap = | Lots of succes! Daniel ___ TYPO3-english mailing list TYPO3-e

Re: [TYPO3] Getting title of parent item in a menu

2007-08-17 Thread Rik Willems - Actiview
lutions > > W: http://www.actiview.nl > > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Loek > Hilgersom > Sent: 17 August 2007 11:44 > To: typo3-english@lists.netfielders.de > Subject: Re: [TYPO3] Getting titl

Re: [TYPO3] Getting title of parent item in a menu

2007-08-17 Thread Loek Hilgersom
ew.nl > > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Loek > Hilgersom > Sent: 17 August 2007 11:44 > To: typo3-english@lists.netfielders.de > Subject: Re: [TYPO3] Getting title of parent item in a menu > &g

Re: [TYPO3] Getting title of parent item in a menu

2007-08-17 Thread Rik Willems - Actiview
m: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Loek Hilgersom Sent: 17 August 2007 11:44 To: typo3-english@lists.netfielders.de Subject: Re: [TYPO3] Getting title of parent item in a menu Katja, Thanks for the suggestion, but that also takes the title of the parent of the current

Re: [TYPO3] Getting title of parent item in a menu

2007-08-17 Thread Loek Hilgersom
Katja, Thanks for the suggestion, but that also takes the title of the parent of the current page (the page that is shown now), not of the menu-item. And I can't add a marker for every menu-item, that would be less flexible than just adding a content element with all the menu links by hand (th

Re: [TYPO3] Getting title of parent item in a menu

2007-08-16 Thread Katja Lampela
Hi Loek, One way to go is to have a separate marker for the header item of the menu ###headeritem### ###menu### marks.headeritem = TEXT marks.headeritem.data = leveltitle:1 - Katja "Loek Hilgersom" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] > Hi, > > I'm trying to create a m

[TYPO3] Getting title of parent item in a menu

2007-08-16 Thread Loek Hilgersom
Hi, I'm trying to create a menu of pages where I want to add the title of the parent page to the text of every item (the items are from different parent pages, of course). I tried with leveltitle:-2, but this only gives back the title of the parent of the current page, not of the menu-item.