[TYPO3-dev] Data from extension in breadcrumb
Chris Müller
mueller at cyperfection.de
Tue Jan 18 11:02:34 CET 2011
Hi Morten,
typolink and stdWrap are your friends ;-)
http://typo3.org/documentation/document-library/core-documentation/doc_core_tsref/4.3.2/view/
Just add the following lines:
lib.breadcrumb.10.stdWrap {
typolink.parameter.data = page : uid
typolink.additionalParams.wrap = &tx_rtmur_pi1[uid]=|
typolink.additionalParams.data = GPvar:tx_rtmur_pi1|uid
typolink.additionalParams.intval = 1
}
Regards,
Chris.
Am 18.01.2011 10:29, schrieb Morten Hagh:
> Hi again,
>
> I did something wrong.
>
> I changed GPvar:tx_rtmur_pi1|tx_rtmur_bricks to GPvar:tx_rtmur_pi1|uid
>
> and it worked right away. Sorry about that.
>
> But I now have one more question.
>
> When it is outputted to my pathbar it is non-clickable.
>
> But I want the rtnumber to contain a link to
> /produkter/facadesten/vis-facadesten/sten/425/
>
> Is that possible ?
>
>
> Regards,
> Morten
>
>
> -----Oprindelig meddelelse-----
> Fra: typo3-dev-bounces at lists.typo3.org
> [mailto:typo3-dev-bounces at lists.typo3.org] På vegne af Morten Hagh
> Sendt: 18. januar 2011 09:27
> Til: 'List for Core-/Extension development'
> Emne: Re: [TYPO3-dev] Data from extension in breadcrumb
>
> 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
>
> _______________________________________________
> 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