[TYPO3-dev] Data from extension in breadcrumb

Morten Hagh morten at hagh.dk
Tue Jan 18 09:26:34 CET 2011


Hi Chris,

thanks for that example

I've used it this way

lib.breadcrumb {
   10 = RECORDS
   10 {
     source.data = GPvar:tx_rtmur_pi1|tx_rtmur_bricks     
     source.intval = 1
     tables = tx_rtmur_bricks
     conf.tx_rtmur_bricks = TEXT
     conf.tx_rtmur_bricks.field = rtnumber     
     stdWrap {
       required = 1
       htmlSpecialChars = 0
       wrap = <li>|</li>
     }
   }
}

but that doesn't seem to work, so I must have done it completely wrong.

Regards,
Morten Hagh

-----Oprindelig meddelelse-----
Fra: typo3-dev-bounces at lists.typo3.org
[mailto:typo3-dev-bounces at lists.typo3.org] På vegne af Chris Müller
Sendt: 17. januar 2011 16:55
Til: typo3-dev at lists.typo3.org
Emne: Re: [TYPO3-dev] Data from extension in breadcrumb

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
>
>
>

_______________________________________________
TYPO3-dev mailing list
TYPO3-dev at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev





More information about the TYPO3-dev mailing list