[TYPO3-english] Get page UID from HMENU

Xavier Perseguers xavier at typo3.org
Wed Oct 17 13:22:32 CEST 2012


Hi,

> HI guys,
> I have  a listing of recent items on a subdirectory on a page.
> 
> lib.blogList = HMENU
> lib.blogList {
>   special = updated
>   special.value = 96
>   special{
>     mode = tstamp
>     maxAge = 3600*24*3
>     limit = 5
>   }
>   1 = TMENU
>   1 {
>     wrap = <div class="results-container"><h1>Blog List</h1><ul class=
> "results">|</ul></div>
>     NO.allWrap = <li class="result clearfix"><h2> | </h2></li>
>     ACT = 1
>     ACT.allWrap = <li class="selected"> | </li>
>   }
> }
> 
> Now I want to get additional info about each page such as post title, date
> etc. I think I could do this if I can get the pageID out of this.
> How can I get the pageID of each item in the listing, which is now just the
> title? How could I proceed.

It's in French but code should be straightforward:

http://xavier.perseguers.ch/en/tutorials/typo3/articles/typoscript/updated-pages.html

HTH
Xavier

-- 
Xavier Perseguers
Release Manager TYPO3 4.6

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org



More information about the TYPO3-english mailing list