[TYPO3] CONTENT table = pages does not work
Markus Kolb
markus-052007 at tower-net.de
Wed May 30 13:27:35 CEST 2007
Peter Russ wrote on 30.05.2007 08:34:
> Markus Kolb schrieb:
>> Peter Russ wrote on 29.05.2007 15:25:
>>> Markus Kolb schrieb:
[...]
>>>> This is the related part of the TS:
>>>>
>>>> temp.menu.1 = TMENU
>>>> temp.menu.1 {
>>>> NO {
>>>> before.cObject = COA
>>>> before.cObject {
>>>> 5 = TEXT
>>>> 5.value = <img src=
>>>> 10 = CONTENT
>>>> 10 {
>>>> table = pages
>>>> select {
>>>> selectFields = title,alias
>>>> uidInList.field=uid
>>>> max = 1
>>>> where = hidden=0
>>>> }
>>>> renderObj = COA
>>>> renderObj {
>>>> 10 = TEXT
>>>> 10.field = alias
>>>> 10.wrap = "fileadmin/templates/images/|.gif"
>>>> }
>>>> wrap = |
>>>> }
[...]
>>>> 20 = TEXT
>>>> 20 {
>>>> field = alias // nav_title // title
>>>> case = lower
>>>> wrap = name="|" />
>>>> }
>>>> }
>>>> allWrap = <li>|</li>
>>>> }
>>>> }
>>> You should try to use register as due to your TS the object [10] is
>>> closed before you access it at [20].
>>
>> ???
>> This is a COA and the problem is not the 20 TEXT object. I could remove
>> 20 at all.
>> The problem is that the
>>
>> 10.field = alias // title
>> 10.wrap = "fileadmin/templates/images/|.gif"
>>
>> always wraps to NULL.
>>
>> So something must be wrong with my CONTENT MySQL SELECT.
>>
>> Markus
>
> Check TSref for the select element. uidInList has no stdWrap properties.
> I've no idea what you are trying, but IMHO you try the 2nd best solution.
I want to wrap alias in
<img src="fileadmin/templates/images/|.gif" name="|" />
It won't work for unpublished pages like in
20 {
field = alias // nav_title // title
case = lower
wrap = name="|" />
}
Because alias is not availbale in unpublished state.
So I want to get it with an additional SQL-Select via CONTENT.
But I don't get CONTENT to work. I've tested some possibilities and the
wrap never worked. It is always empty, so that I get
<img src= name="nav_title" />
I've also tried to replace uidInList with a andWhere wrap uid=|.
Same result.
So maybe someone shows me how I can get the CONTENT stuff to work.
Thanks
Markus
More information about the TYPO3-english
mailing list