[Silva-general] breadcrumb alterations

Tuomas Tonteri tuomas.tonteri at kansanmedia.fi
Sun Aug 5 13:06:33 CEST 2007


The solution is a hack by overriding the table of contents slot in
content.html:

<div metal:fill-slot="table_of_contents" tal:omit-tag="">
  <!-- table of Contents slot -->
<span class="breadcrumb" style="display:block;">
<a href="/">Front page</a>
&middot;
<a tal:attributes="href string:${here/absolute_url}">News item</a>
</span>
</div>

Now all news items a show up like "Front page - News Item" in the
breadcrumb.

You need to have all news items make use of this content.html by
placing in in the root folder of all those items.

This is how infrae.org also does it. I had the same problem when I
started using Silva News.

A proper solution? Your idea of 'hide from TOC' sounds good to me.

-- 
Tuoma Tonteri

> Hi all,
> 
> The breadcrumbs currently shows up News Publications which have
> 'object is not viewable'.  We'd like to be able to remove these
> references from the breadcrumb.  Also as we are very heavy users of
> the News product we have to organise or news articles into sub
> folders and these also show up in the breadcrumb and again we would
> like to remove these.  My colleague suggested a 'hide from
> breadcrumb' option like the 'hide from TOC'.  Has anyone come up with
> any solutions for this?



More information about the silva-general mailing list