Not sure if you can use this, but you might...

<skin:breadcrumb separator=" | " includeSelf="#incself#"> |

<!--- get and show the related categories in breadcrumb --->
<cfif listlen(stobj.linknavigation) gt 1>

<cfloop index="i" list="#stobj.linknavigation#">

<!--- get current linknavigation label to use as category name --->
<cfset obj =
createObject('component',application.stcoapi.dmnavigation.packagepath) /
>
  <cfset linknavigationdata = obj.getdata(objectid="#i#") />

  <!--- exclude the home category as it is already included in
breadcrumb --->
  <cfif linknavigationdata.label neq "Home">
<skin:buildLink
objectid="#linknavigationdata.objectid#">#linknavigationdata.label#</
skin:buildLink> |
</cfif>

</cfloop>

<cfelse>

<!--- get current linknavigation label to use as category name --->
<cfset obj =
createObject('component',application.stcoapi.dmnavigation.packagepath) /
>
  <cfset linknavigationdata =
obj.getdata(objectid="#stobj.linknavigation#") />

<skin:buildLink
objectid="#linknavigationdata.objectid#">#linknavigationdata.label#</
skin:buildLink>

</cfif>


On Apr 21, 9:20 pm, Tomek Kott <[email protected]> wrote:
> Hi folks,
>
> Couldn't find anything searching through the google groups, so here goes.
> Has anyone done an automatic related item finding using categories? Or for
> that matter, a category display page which would list (say in
> datetimelastupdated order) all objects that have that category?
>
> Basically, I'm going to implement something that says, "Posted in: (bla),
> (bla2)" with links for the categories where you could find pages, news
> posts, events, etc. This would be mostly used for news items and events, but
> I could imagine going further.
>
> If so, would anyone be willing to share their code or displayBody templates
> for those?
>
> Thanks,
>
> Tomek
>
> --
> You received this message cos you are subscribed to "farcry-dev" Google group.
> To post, email: [email protected]
> To unsubscribe, email: [email protected]
> For more options:http://groups.google.com/group/farcry-dev
> --------------------------------
> Follow us on Twitter:http://twitter.com/farcry

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to