留言板
Regarding Breadcrum
Hi
I want to add H1 tag to the last page in the breadcrum every time .How can i achieve it.Also i when i am navigating through the pages ,i want parent pages of that page should get the hyperlink in the breadcrum but not to the page in which i am present.Any help is really appreciated.
Thanks & Regards
K.Vasudha
I want to add H1 tag to the last page in the breadcrum every time .How can i achieve it.Also i when i am navigating through the pages ,i want parent pages of that page should get the hyperlink in the breadcrum but not to the page in which i am present.Any help is really appreciated.
Thanks & Regards
K.Vasudha
Hi vasudha,
For this better go with breadcrumb hook
I created breadcrumb hook under display_style_2.jsp file I modified.
and check breadcrumb configaration.
Thanks
Jaid.Shaik
For this better go with breadcrumb hook
I created breadcrumb hook under display_style_2.jsp file I modified.
and check breadcrumb configaration.
Thanks
Jaid.Shaik
hi jaid
could u please elaborate the reply and what exact modifications that i need to do?
Thanks & Regards
K vasudha
could u please elaborate the reply and what exact modifications that i need to do?
Thanks & Regards
K vasudha
hi jaid
i dint find this display_style_1.jsp file in my liferay6.1.0. but i found display_style_horizontal.jsp,display_style_vertical.jsp these two jsp files in the following path \ROOT\html\taglib\ui\breadcrumb.so Which jsp i need to override and what modifications i need to do in that file.Your help is really appreciated
Thanks & Regards
Vasudha
i dint find this display_style_1.jsp file in my liferay6.1.0. but i found display_style_horizontal.jsp,display_style_vertical.jsp these two jsp files in the following path \ROOT\html\taglib\ui\breadcrumb.so Which jsp i need to override and what modifications i need to do in that file.Your help is really appreciated
Thanks & Regards
Vasudha
Hi Vasudha,
You need to modify init.jsp of breadcrumb taglib.
Please find attached modified html\taglib\ui\breadcrumb\init.jsp. And below are the modification(bolded) in _buildLayoutBreadcrumb method.
So just create one hook and add attached modified init.jsp and deploy it. you are done !!!
Note: As there are some issues if we put <h1> tag for last breadcrumb entry. Somehow its not visible in breadcrumb so you can change in font-size same as h1 has. I've done the same thing in my code
Hope this is what you are looking for.
Thanks,
TK
You need to modify init.jsp of breadcrumb taglib.
Please find attached modified html\taglib\ui\breadcrumb\init.jsp. And below are the modification(bolded) in _buildLayoutBreadcrumb method.
So just create one hook and add attached modified init.jsp and deploy it. you are done !!!
if (selLayout.isTypeControlPanel()) {
layoutURL = HttpUtil.removeParameter(layoutURL, "controlPanelCategory");
}
[b]breadcrumbSB.append("<li>");
if(selLayout == themeDisplay.getLayout())
{
breadcrumbSB.append("<span style="font-size:1.8em">");
breadcrumbSB.append(HtmlUtil.escape(selLayout.getName(themeDisplay.getLocale())));
breadcrumbSB.append("</span>");
} else
{
breadcrumbSB.append("<span><a href="\"");" breadcrumbsb.append(layouturl); breadcrumbsb.append("\" "); if (sellayout.istypecontrolpanel()) { breadcrumbsb.append(" target="\"_top\"");" } else breadcrumbsb.append(target);>");
breadcrumbSB.append(HtmlUtil.escape(selLayout.getName(themeDisplay.getLocale())));
breadcrumbSB.append("</a></span>");
}
breadcrumbSB.append("</li>");[/b]
Layout layoutParent = null;
Note: As there are some issues if we put <h1> tag for last breadcrumb entry. Somehow its not visible in breadcrumb so you can change in font-size same as h1 has. I've done the same thing in my code
Hope this is what you are looking for.
Thanks,
TK
附件: