[TYPO3] Recently modified (HOWTO?)
Andreas Balzer
typo3 at andreas-balzer.de
Sat Apr 7 21:26:18 CEST 2007
Peter Klein schrieb:
> Hi Andreas. I don't think that's possible using Typoscript. (But you could
> always write a small PHP userfunction to do the job)
>
> From TSRef, the chapter about CONTENT element:
>
> "Also, if the "pidInList" feature is used, any page in the pid-list that is
> not visible for the user of the website IS REMOVED from the pidlist. Thereby
> no records from hidden, timed or access-protected pages are selected! Nor
> records from recyclers."
>
> BTW: Then you might want to get rid of this line:
>
> renderObj.stdWrap.crop = 16 | ...
>
> As all it's gonna do, if f*uck up yor results. (You are cropping a list of
> comma seperated IDs, and adding "..." at the end ?!?)
>
> --
> Peter Klein / Umloud Untd.
>
> "Andreas Balzer" <typo3 at andreas-balzer.de> wrote in message
> news:mailman.1.1175795898.26347.typo3-english at lists.netfielders.de...
>> Hi!
>> I'm using the following code to show a list with recently changed pages.
>> The problem: The code ignores the setting "Do not show in menu". What do I
>> have to modifiy, in order to not show pages with this setting activated?
>>
>>
>> temp.new = COA
>> temp.new {
>> 10 = LOAD_REGISTER
>> 10{
>> lvl1uids.cObject = CONTENT
>> lvl1uids.cObject {
>> table=pages
>> select.pidInList.data = leveluid:0
>> renderObj = TEXT
>> renderObj.field = uid
>> renderObj.wrap = |,
>> renderObj.stdWrap.crop = 16 | ...
>> }
>> lvl2uids < .lvl1uids
>> lvl2uids.cObject.select.pidInList.data= register:lvl1uids
>> lvl3uids < .lvl1uids
>> lvl3uids.cObject.select.pidInList.data= register:lvl2uids
>> lvl4uids < .lvl1uids
>> lvl4uids.cObject.select.pidInList.data= register:lvl3uids
>> lvl5uids < .lvl1uids
>> lvl5uids.cObject.select.pidInList.data= register:lvl4uids
>> alluids.cObject = COA
>> alluids.cObject {
>> 10=TEXT
>> 10.data = register:lvl1uids
>> 20=TEXT
>> 20.data = register:lvl2uids
>> 30=TEXT
>> 30.data = register:lvl3uids
>> 40=TEXT
>> 40.data = register:lvl4uids
>> 50=TEXT
>> 50.data = register:lvl5uids
>> 60=TEXT
>> 60.data = leveluid:0 }
>>
>> }
>> 20 = CONTENT
>> 20 {
>> table = pages
>> select {
>> pidInList.data = register:alluids
>> orderBy = tstamp DESC
>> max = 5
>> }
>> renderObj = COA
>> renderObj {
>> 10 = TEXT
>> 10.field = title
>> 10.typolink.parameter.field=uid
>> 10.wrap = <li>|</li>
>> 10.crop = 16 | ...
>> }
>> }
>> wrap=<div class="SpalteBorderKastenBox"><div
>> class="SpalteBorderKastenHeadline"> Was gibtŽs
>> Neues?</div><div class="SpalteBorderKastenContent"><ul
>> class="lastchangesmenu">|</ul></div></div>
>> }
>
>
Hi!
Well I have no knowledge about php userfuncs at the moment. Can you help me?
I use the crop setting, because I display the result in a tiny box and
this setting is cropping the title (and nothing else ;) ). IT has to be
done, so that the results fit.
Someone meant this could be done through a simple sitemap with type
updated, but I don't know how exactly this has to be done..
As there are so many code snippets and most of them are not working, I
think I really need help.. :-(
Andreas
More information about the TYPO3-english
mailing list