[Typo3] Best way to configure my right navigation
JoH
info at cybercraft.de
Tue May 17 02:55:56 CEST 2005
> I am now exremely frustrated, this is only one of two things I need to
> finish and I am not getting it. For some reason it is now working at
> all for me, this is the TS I have entered for it:
>
> #Right Navigation
> lib.rightnav = CONTENT
> lib.rightnav {
> table = tt_content
> select.orderBy = sorting
> select.where = colPos=0
> select.where = pid=51
> }
>
> lib.rightnav.10 < styles.content.get
>
> The page is right here: www.stratcommandcenter.com/redesign
>
> As you can see, nothing is in my right column.
This is what I would expect looking at your code.
First you declare lib.rightnav to be CONTENT object.
Then you copy styles.content.get to part 10 of lib.rightnav.
But this part 10 simply can not exist since CONTENT objects don't have parts
like PAGE or COA.
"where = pid=51" can't be working since select has a property pidInList
which defaults to "this".
So the resulting select would be
SELECT from 'tt_content' WHERE pid=this AND pid=51
which can only return some content when you are on page 51.
Try this instead:
lib.rightnav.10 < styles.content.get
lib.rightnav {
select.pidInList = 51
select.orderBy = sorting
}
No need to insert colPos since this defaults to 0 with styles.content.get.
BTW: Are you sure it's colPos = 0 (normal column) and not another column?
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.openbc.com/go/invuid/Jo_Hasenau
More information about the TYPO3-english
mailing list