Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
java
BreadcrumbsTag.java 5.8 kB 1 09-Aug-2004 05:35 FosterSchucker

This page (revision-18) was last changed on 18-May-2012 14:56 by 213.122.174.85  

This page was created on 30-May-2003 21:16 by JanneJalkanen

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 16 added 3 lines
%%warning
maxpages doesn't appear to be honored.
/%
At line 22 added 4 lines
%%warning
trailtype doesn't appear to be implemented in the code.
/%
At line 62 changed one line
cd
This tag allows you insert a "trace" of the user's most recently visited pages on the Wiki.
At line 64 changed one line
--1001������, 22-Oct-2007
It requires cookies to function correctly. If the user has disabled cookies, no trail is generated.
This tag has been contributed by Ken Liu (ken at kenliu.net).
----
!Usage
<wiki:Breadcrumbs maxpages="<integer>" separator="<string>" />
!Parameters
;__maxpages__: How many pages should we track? Default is 10 most recent pages.
;__separator__: HTML snippet for what should be between the listed pages. Default is " | ".
;__trailtype__=''(visit|breadcrumb)'': what kind of trail should be left. The default is ''breadcrumb'', this shows all the pages, in order that they were displayed. If you display a page twice, there will be two entries in the breadcrumb. Using ''visit'' as the parameter shows the trail as all the pages that were visited. If you visit a page more than once, it is only shown once in the list.
!Example
{{{
Your trail: <wiki:Breadcrumbs />
}}}
!Known bugs
<wiki:Breadcrumbs />
Separator does not clean the HTML it is given - it is thus a security hazard.
----
8 August 2004\\
New version uploaded - change was the trailtype support. Tested against the 2.0.54 release, change the log statements to have it work with 2.1.103. -- [Foster Schucker]
----
About a year later, with vers. 2.2.28 I tried to use the trailtype attribute, but receive
{{{"javax.servlet.ServletException: /templates/default/ViewTemplate.jsp(19,35)
Attribute trailtype invalid for tag Breadcrumbs according to TLD"}}}\\
Could it be that the uploaded update has not been integrated into the distribution? Please someone check this!
Thanks!
-- Gregor Hagedorn, 24 Aug. 2005
----
Regarding the FIXMEs in this code. How about something like this (tried in 2.1.106):
{{{out.print(engine.textToHTML(m_wikiContext, "[" + curPage + "]"));}}}
Instead of:
{{{out.print("<a class=\"" + linkclass + "\" href=\"" +
engine.getViewURL(curPage)+ "\">" + curPage + "</a>");}}}
Are the square brackets defined somewhere?
I haven't tested extensively to see what it breaks. It'd potentially allow non existant pages and attachments to show up in bread crumbs with their usual styles.
----
[CategoryOfficialDocumentation]
--AnonymousCoward, 08-Sep-2009 15:30
Version Date Modified Size Author Changes ... Change note
18 18-May-2012 14:56 4.768 kB 213.122.174.85 to previous
17 18-May-2012 14:56 4.77 kB 213.122.174.85 to previous | to last
16 02-Feb-2010 13:39 4.768 kB 78.105.105.106 to previous | to last
15 02-Feb-2010 13:34 4.711 kB 78.105.105.106 to previous | to last
14 08-Sep-2009 15:30 4.638 kB AnonymousCoward to previous | to last ddd
13 22-Oct-2007 18:32 2.292 kB JanneJalkanen to previous | to last
12 22-Oct-2007 17:02 2.337 kB 1001������ to previous | to last Comment by 1001������
11 24-Aug-2005 11:46 2.292 kB JanneJalkanen to previous | to last
10 07-Oct-2004 09:33 12.906 kB 221.196.142.68 to previous | to last
9 10-Aug-2004 09:48 1.876 kB BradHarvey to previous | to last
8 09-Aug-2004 13:43 1.347 kB RayDrew to previous | to last
7 09-Aug-2004 05:36 1.346 kB FosterSchucker to previous | to last
6 09-Aug-2004 05:34 1.234 kB FosterSchucker to previous | to last
5 09-Aug-2004 05:33 1.153 kB FosterSchucker to previous | to last
4 08-May-2004 20:51 0.752 kB 139.18.184.72 to previous | to last
3 22-Aug-2003 13:17 0.732 kB 141.24.45.122 to previous | to last
2 21-Aug-2003 15:10 0.754 kB 194.221.116.65 to previous | to last
1 30-May-2003 21:16 0.732 kB JanneJalkanen to last
« This page (revision-18) was last changed on 18-May-2012 14:56 by 213.122.174.85