[TYPO3-english] Re: breadcrumbs typoscript for tt_products
radu ro
radu.istoc at finea.ro
Fri Feb 6 13:00:59 CET 2015
I came up with this solution:
lib.breadcrumbs=COA
lib.breadcrumbs{
10 = HMENU
10 {
special = rootline
special.range = 0|-1
# "not in menu pages" should show up in the breadcrumbs menu
includeNotInMenu = 1
1 = TMENU
# no unneccessary scripting.
1.noBlur = 1
# Current item should be unlinked
1.CUR = 1
1.target = _self
1.wrap = |
1.NO {
stdWrap.field = title
ATagTitle.field = nav_title // title
linkWrap = ||*| > |*|
}
# Current menu item is unlinked
1.CUR {
stdWrap.field = title
linkWrap = ||*| > |*|
doNotLinkIt = 1
}
}
}
[globalVar = GP:tt_products|cat > 0]
lib.breadcrumbs.10.special.range = 0|-1
lib.breadcrumbs.20 = RECORDS
lib.breadcrumbs.20 {
dontCheckPid = 1
tables = tt_products_cat
source.data = GP:tt_products|cat
conf.tt_products_cat = COA
conf.tt_products_cat.20 = TEXT
conf.tt_products_cat.20.field = title
conf.tt_products_cat.20.wrap = > |
}
lib.breadcrumbs.30 = RECORDS
lib.breadcrumbs.30 {
dontCheckPid = 1
tables = tt_products
source.data = GP:tt_products|product
conf.tt_products = COA
conf.tt_products.20 = TEXT
conf.tt_products.20.field = title
conf.tt_products.20.wrap = > |
}
[end]
More information about the TYPO3-english
mailing list