Commits

Dimitris Zenios committed df8c0bf

More wiki

  • Participants
  • Parent commits b0e5efd

Comments (0)

Files changed (1)

 If there is no event handler and no message then the logical page name will be user as breadcrumb title
 
 == BreadCrumbs trail component
+Breadcrumbs trail component, is the component responsible for renderind the list of breadCrubs.Main features of the component are
+*Add block before each brad crumb
+*Add block after each breadcrumb
+*Override the default breadCrumb block
+
+{{{
+#!java
+public class testPage {
+	@Property
+	private BreadCrumbElement breadCrumb
+	
+	@Property
+	private  int index;
+
+	public String getCrumbClass() {
+		return getTitle() + "-class";
+	}
+
+	public String getTitle() {
+		return breadCrumb.getLogicalPageName()
+	}
+}
+}}}
+
+{{{
+<t:zcrumb.BreadCrumbsTrail t:value="breadCrumb" t:index="index" t:class="literal:testclass" t:crumbClass="crumbClass">
+	<p:before>
+		${index} 	
+	</p:before>
+	<p:after>
+		${index}
+	</p:after>
+	<p:inside>
+		${title}
+	</p:inside>
+</t:zcrumb.BreadCrumbsTrail>	
+}}}
+
+//**Have in mind that by overriding the default breadCrumb block the methods for getting breadcrumb title mentioned above will not be used.You
+will be responsible for the rendering of the actual breadcrumb.//
+
+
+
+