Download  |  Search  |  Log in  |  FAQ  |  Memberlist  |  Online  |  TYPO3.org Developer Resource
Home » Mailing lists » English
Post new topic   Reply to topic Page 1 of 1 [2 Posts] [TYPO3] adding to "rootline"
Author Message
Cate & Peter
Guest





PostPosted: 29 Aug 2007 - 10:30 pm    Post subject:  [TYPO3] adding to "rootline" Reply with quote

Hi all



I have code working for breadcrumbs on my site.



Now, I want to see if I can add wikipage keywords (unlinked) as the last
parameter of my breadcrumbs.



The breadcrumb code is



#breadcrumbs nav

lib.breadcrumbs= HMENU

lib.breadcrumbs.special = rootline

lib.breadcrumbs.special.range = 1|-1

lib.breadcrumbs.1 = TMENU

lib.breadcrumbs.1.wrap = <span class ="breadcrumbs"> | </span>

lib.breadcrumbs.1.NO {

linkWrap = |*| | >&nbsp; |*| |

doNotLinkIt = |*| |*| 1

}



I have used the wikipage keywords in another menu like this.



# Nav

lib. nav = CONTENT

lib. nav{

table = tx_drwiki_pages

select {

pidInList = this

selectFields = pid, keyword



}

renderObj = TEXT

renderObj {

required=1



# Displays the keyword inside the <li/> tags

field = keyword



# Inner wrap around individual rows

wrap=<li class="leftnav">|</li>



# Wraps the keyword with a link to the correct page

typolink {

# Links to the page that the wiki keyword is found on

parameter.data = field:pid



# Adds the keyword to the query string

additionalParams.wrap = &tx_drwiki_pi1[keyword]=|

additionalParams.data = field:keyword

}

}



# Outer wrap around all rows

wrap = <ul class="leftnav"> | </ul>

}



So I have an idea of how it works, but I can't figure out how I would add
the keyword onto the rootline.



I guess I would drop the last line of the breadcrumbs code (doNotLinkIt =
|*| |*| 1) off . as I want all of the rootline linked . and I need to select
the table and fields, and render the keyword . but in what order? I have
tried a multitude of configurations, and haven't got it right yet.



Any hints gratefully accepted :-)



Thanks

Cate
Back to top
Tolleiv Nietsch
Guest





PostPosted: 30 Aug 2007 - 5:31 am    Post subject: Re: [TYPO3] adding to "rootline" Reply with quote

Hi - maybe COA is your friend -
something linke that:

lib.finalcrumbs = COA
lib.finalcrumbs {
10 < lib.breadcrumbs
20 < lib.nav
}


I think the linkWrap of the breadcrumb needs to be reassigned but that
should do the job.

Regards
Tolleiv

Cate & Peter schrieb:
Quote:
Hi all



I have code working for breadcrumbs on my site.



Now, I want to see if I can add wikipage keywords (unlinked) as the last
parameter of my breadcrumbs.



The breadcrumb code is



#breadcrumbs nav

lib.breadcrumbs= HMENU

lib.breadcrumbs.special = rootline

lib.breadcrumbs.special.range = 1|-1

lib.breadcrumbs.1 = TMENU

lib.breadcrumbs.1.wrap = <span class ="breadcrumbs"> | </span

lib.breadcrumbs.1.NO {

linkWrap = |*| | >&nbsp; |*| |

doNotLinkIt = |*| |*| 1

}



I have used the wikipage keywords in another menu like this.



# Nav

lib. nav = CONTENT

lib. nav{

table = tx_drwiki_pages

select {

pidInList = this

selectFields = pid, keyword



}

renderObj = TEXT

renderObj {

required=1



# Displays the keyword inside the <li/> tags

field = keyword



# Inner wrap around individual rows

wrap=<li class="leftnav">|</li



# Wraps the keyword with a link to the correct page

typolink {

# Links to the page that the wiki keyword is found on

parameter.data = field:pid



# Adds the keyword to the query string

additionalParams.wrap = &tx_drwiki_pi1[keyword]=|

additionalParams.data = field:keyword

}

}



# Outer wrap around all rows

wrap = <ul class="leftnav"> | </ul

}



So I have an idea of how it works, but I can't figure out how I would add
the keyword onto the rootline.



I guess I would drop the last line of the breadcrumbs code (doNotLinkIt =
|*| |*| 1) off . as I want all of the rootline linked . and I need to select
the table and fields, and render the keyword . but in what order? I have
tried a multitude of configurations, and haven't got it right yet.



Any hints gratefully accepted :-)



Thanks

Cate
Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Home » Mailing lists » English
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum