Index: /home/abrenk/workspaces/3rdparty/magnolia-2.1.3/src/main/info/magnolia/cms/taglibs/util/Breadcrumb.java =================================================================== --- /home/abrenk/workspaces/3rdparty/magnolia-2.1.3/src/main/info/magnolia/cms/taglibs/util/Breadcrumb.java (Revision 1716) +++ /home/abrenk/workspaces/3rdparty/magnolia-2.1.3/src/main/info/magnolia/cms/taglibs/util/Breadcrumb.java (Arbeitskopie) @@ -62,6 +62,11 @@ private boolean excludeCurrent; /** + * Output as link. (default: true) + */ + private boolean link = true; + + /** * Setter for the delimeter tag attribute. * @param delimiter delimeter between links */ @@ -89,6 +94,14 @@ } /** + * Setter for link. + * @param link if true all pages are linked to. + */ + public void setLink(boolean link) { + this.link = link; + } + + /** * @see javax.servlet.jsp.tagext.Tag#doStartTag() */ public int doStartTag() throws JspException { @@ -108,12 +121,16 @@ if (i != this.startLevel) { out.print(StringUtils.defaultString(this.delimiter, " > ")); //$NON-NLS-1$ } - out.print(""); //$NON-NLS-1$ + if(this.link) { + out.print(""); //$NON-NLS-1$ + } out.print(actpage.getAncestor(i).getTitle()); - out.print(""); //$NON-NLS-1$ + if(this.link) { + out.print(""); //$NON-NLS-1$ + } } } catch (RepositoryException e) { @@ -133,6 +150,7 @@ this.startLevel = 1; this.delimiter = null; this.excludeCurrent = false; + this.link = true; super.release(); }