Add the Page Name Dynamically To Your Layout

One of the features that is nice to include within your layout is to show the page name and/or description dynamically. That way someone can manage the info from the page layout and not within any blocks or code.

To do that, make sure to include the following code (or your variation of it) within your page layout.

<div class="breadcrumb">
<a href="${current_page.getURLSuffix()}.do">${current_page.getName()}</a>
<!– You can also include the page description in the same manor by using the code below –>
<j:if test="${current_page.getDescription.getDisplayValue()!=''}">
<p class="page_description">${current_page.getDescription()}</p>

Leave a Reply