[TYPO3-dev] Data from extension in breadcrumb

Chris Müller mueller at cyperfection.de
Mon Jan 17 16:55:20 CET 2011


Hi Morten,

you can use something like that (example with tt_news):

lib.breadcrumb {
   10 = RECORDS
   10 {
     source.data = GPvar:tx_ttnews|tt_news
     source.intval = 1
     tables = tt_news
     conf.tt_news = TEXT
     conf.tt_news.field = title
     stdWrap {
       required = 1
       htmlSpecialChars = 1
       wrap = <li>|</li>
     }
   }
}

The typoscript code fetches the tt_news id and "converts" it into the title.

Regards,
Chris.


Am 17.01.2011 16:04, schrieb Morten Hagh:
> Hi list,
>
>
>
> I've made a bricks and rooftiles extension with the list and singleview etc.
>
> The bricks are ordered with a unique RT number.
>
> Is it possible somehow to include this RT number in the breadcrump?
>
> My breadcrumb as now is like this:
>
> Frontpage>  Product>  Bricks>  Show brick>  Details about the brick
>
>
>
> "Show brick" is a intro page for the selected brick and "Details about the
> brick" show some detailed info about the bricks.
>
> These are regular pages where I have inserted my plugin as a content
> element.
>
>
>
> Can I somehow make the breadcrump to show the path like this:
>
>
>
> Frontpage>  Product>  Bricks>  RT 201>  Details about RT 201
>
>
>
> And make the link useable so that when I click "RT 201" it will show me the
> intro page for RT 201
>
> As it is now it will return a custom error because the link doesn't have a
> UID find the brick.
>
> /product/brick/showbrick/
>
> But I want it to be like this
>
>
>
> /product/brick/showbrick/sten/201/
>
>
>
> (I am using RealURL)
>
>
>
> ext prefix is: tx_rtmur_pi1
> and extkey is rtmur
>
>
>
> and the field I want is "rtnummer"
>
>
>
>
>
> /Morten Hagh
>
>
>





More information about the TYPO3-dev mailing list