Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
How to make these Links under Breadcrumbs..?? Zeeshan Khan January 23, 2012 10:36 PM
RE: How to make these Links under Breadcrumbs..?? Rojalin Patri January 24, 2012 1:19 AM
RE: How to make these Links under Breadcrumbs..?? Zeeshan Khan January 24, 2012 2:25 AM
RE: How to make these Links under Breadcrumbs..?? Rojalin Patri January 24, 2012 3:01 AM
RE: How to make these Links under Breadcrumbs..?? Zeeshan Khan January 24, 2012 3:12 AM
RE: How to make these Links under Breadcrumbs..?? Rojalin Patri January 24, 2012 3:14 AM
RE: How to make these Links under Breadcrumbs..?? Zeeshan Khan January 24, 2012 3:19 AM
RE: How to make these Links under Breadcrumbs..?? Rojalin Patri January 24, 2012 3:24 AM
RE: How to make these Links under Breadcrumbs..?? Rojalin Patri January 24, 2012 3:28 AM
RE: How to make these Links under Breadcrumbs..?? Zeeshan Khan January 24, 2012 3:35 AM
RE: How to make these Links under Breadcrumbs..?? Rojalin Patri January 24, 2012 3:43 AM
RE: How to make these Links under Breadcrumbs..?? Zeeshan Khan January 24, 2012 4:00 AM
RE: How to make these Links under Breadcrumbs..?? Zeeshan Khan January 24, 2012 4:03 AM
RE: How to make these Links under Breadcrumbs..?? Rojalin Patri January 24, 2012 4:05 AM
RE: How to make these Links under Breadcrumbs..?? Rojalin Patri January 24, 2012 4:07 AM
RE: How to make these Links under Breadcrumbs..?? Zeeshan Khan January 24, 2012 4:19 AM
RE: How to make these Links under Breadcrumbs..?? Rojalin Patri January 24, 2012 5:03 AM
RE: How to make these Links under Breadcrumbs..?? Zeeshan Khan January 24, 2012 5:13 AM
RE: How to make these Links under Breadcrumbs..?? Zeeshan Khan January 24, 2012 5:24 AM
RE: How to make these Links under Breadcrumbs..?? Zeeshan Khan January 24, 2012 6:17 AM
RE: How to make these Links under Breadcrumbs..?? Olaf Kock January 24, 2012 10:24 AM
RE: How to make these Links under Breadcrumbs..?? Rojalin Patri January 24, 2012 7:59 PM
RE: How to make these Links under Breadcrumbs..?? Zeeshan Khan January 24, 2012 10:16 PM
RE: How to make these Links under Breadcrumbs..?? Manikandan S January 25, 2012 2:34 AM
RE: How to make these Links under Breadcrumbs..?? Zeeshan Khan January 25, 2012 2:40 AM
RE: How to make these Links under Breadcrumbs..?? Manikandan S January 25, 2012 3:12 AM
Zeeshan Khan
How to make these Links under Breadcrumbs..??
January 23, 2012 10:36 PM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

Hi All !!

Attached is the screenshot......what if i want to make these links under the Breadcrumbs.....??
Attachment

Attachments: scr1.jpg (157.7k)
Rojalin Patri
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 1:19 AM
Answer

Rojalin Patri

Rank: Expert

Posts: 287

Join Date: March 22, 2011

Recent Posts

Hi Zeeshan,
what exactly is the requirement???are these "Home insurance","life insurance" and "motor insurance" separate links to the pages?????if so you can just add the links to the init.jsp page in webapps/ROOT/html/taglib/ui/breadcrumb path using
sb.append("<a href="xxx.com");
sb.append("\">");
sb.append("Life Insurance");
Hope this helps...
Regards
Rojalin
Zeeshan Khan
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 2:25 AM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

Rojalin Patri:
Hi Zeeshan,
what exactly is the requirement???are these "Home insurance","life insurance" and "motor insurance" separate links to the pages?????if so you can just add the links to the init.jsp page in webapps/ROOT/html/taglib/ui/breadcrumb path using
sb.append("<a href="xxx.com");
sb.append("\">");
sb.append("Life Insurance");
Hope this helps...
Regards
Rojalin


yeah Rojalin these are separate links to the pages....but what to write here--->> sb.append("<a href="xxx.com"); ??

is this the address of the page that appears in the URL...???

thnx !!
Rojalin Patri
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 3:01 AM
Answer

Rojalin Patri

Rank: Expert

Posts: 287

Join Date: March 22, 2011

Recent Posts

here is a simple example in init.jsp
sb.append("<li><span><a href=\"http://www.google.com");
sb.append("\">");
sb.append("You are in google");
sb.append("</a></span></li>");
so likewise you can give the url of the page or site in your init.jsp of breadcrumps.
Zeeshan Khan
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 3:12 AM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

Rojalin Patri:
here is a simple example in init.jsp
sb.append("<li><span><a href=\"http://www.google.com");
sb.append("\">");
sb.append("You are in google");
sb.append("</a></span></li>");
so likewise you can give the url of the page or site in your init.jsp of breadcrumps.


thnx for the reply Rojalin......so in the place of sb.append("<li><span><a href=\"http://www.google.com"); , i can write my page's address.....??
like this---> sb.append("<li><span><a href=\"http://localhost:9999/web/guest/xxxxx?p_p_id=StrutsPortal_WAR_StrutsPortalportlet&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_pos=1&p_p_col_count=2&_StrutsPortal_WAR_StrutsPortalportlet__spageview=%2Fportlet_action%2Fsample_struts_portlet%2Fwebservice%2Frender");

??
Rojalin Patri
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 3:14 AM
Answer

Rojalin Patri

Rank: Expert

Posts: 287

Join Date: March 22, 2011

Recent Posts

Don't you have a friendly url for the page?????anyway you can just give it a try with the full page address.
Zeeshan Khan
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 3:19 AM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

one more thing Rojalin.....in which method of init.jsp i should add these lines.....??
Rojalin Patri
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 3:24 AM
Answer

Rojalin Patri

Rank: Expert

Posts: 287

Join Date: March 22, 2011

Recent Posts

if (group.getPublicLayoutsPageCount() > 0) { } method...
Rojalin Patri
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 3:28 AM
Answer

Rojalin Patri

Rank: Expert

Posts: 287

Join Date: March 22, 2011

Recent Posts

this is exactly what you need to do..
if (group.getPublicLayoutsPageCount() > 0) {
LayoutSet layoutSet = LayoutSetLocalServiceUtil.getLayoutSet(group.getGroupId(), false);

String layoutSetFriendlyURL = PortalUtil.getLayoutSetFriendlyURL(layoutSet, themeDisplay);

sb.append("<li><span><a href=\"http://localhost:8080/web/guest/test");//give your full page address here.
sb.append("\">");
sb.append("Motor Insurance");
sb.append("</a></span></li>");
}
Zeeshan Khan
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 3:35 AM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

Its not reflecting Rojalin.....i wrote this...


sb.append("<li><span><a href=\"http://localhost:9999/web/guest/xxxxx?p_p_id=StrutsPortal_WAR_StrutsPortalportlet&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_pos=1&p_p_col_count=2&_StrutsPortal_WAR_StrutsPortalportlet__spageview=%2Fportlet_action%2Fsample_struts_portlet%2Fwebservice%2Frender");
sb.append("\">");
sb.append("You are in google");
sb.append("</a></span></li>");
Rojalin Patri
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 3:43 AM
Answer

Rojalin Patri

Rank: Expert

Posts: 287

Join Date: March 22, 2011

Recent Posts

not reflecting means it's not going to the respective page or in breadcrump "you are in google" hyperlink is not coming?
Zeeshan Khan
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 4:00 AM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

yeah Rojalin, its not coming.....
Zeeshan Khan
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 4:03 AM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

its going to the respective page but under breadcrumb its not coming like "You are in google" or "Motor Insurance".......PFA.....
Attachment

Attachments: scr2.png (134.4k)
Rojalin Patri
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 4:05 AM
Answer

Rojalin Patri

Rank: Expert

Posts: 287

Join Date: March 22, 2011

Recent Posts

after doing the changes refresh the browser or restart the server.if it's still not coming then probably u have not placed the code in proper place.can you please tell me the error in the log.
Rojalin Patri
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 4:07 AM
Answer

Rojalin Patri

Rank: Expert

Posts: 287

Join Date: March 22, 2011

Recent Posts

or just attachhere your init.jsp.
Zeeshan Khan
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 4:19 AM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

PFA
Attachments: init.jsp (5.0k)
Rojalin Patri
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 5:03 AM
Answer

Rojalin Patri

Rank: Expert

Posts: 287

Join Date: March 22, 2011

Recent Posts

try it out with the attached init.jsp.
Attachments: init.jsp (4.9k)
Zeeshan Khan
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 5:13 AM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

Rojalin Patri:
try it out with the attached init.jsp.


i really appreciate your effort Rojalin but still not working.......
Zeeshan Khan
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 5:24 AM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

Zeeshan Khan:
Rojalin Patri:
try it out with the attached init.jsp.


i really appreciate your effort Rojalin but still not working.......


Hi Rojalin !!

thnx very much its working now....actually it was my fault...in portal_normal.vm file i had given this --> <nav class="site-breadcrumbs" id="breadcrumbs">
<h1>
<span>#language("breadcrumbs")</span>
</h1>

#breadcrumbs("control_panel")
</nav>



instead of---> <nav class="site-breadcrumbs" id="breadcrumbs">
<h1>
<span>#language("breadcrumbs")</span>
</h1>

#breadcrumbs()
</nav>

i removed the "control panel"...its working....but what if i want like this.....i mean its optional....>> Claculate Premium -->Get Quote -->Proceed to Buy -->Asset Details -->Review&Confirm -->Pay Online -->Issue Policy
Zeeshan Khan
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 6:17 AM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

Hi Rojalin !!

sorry for again disturbing u....but the "Motor Insurance" is coming under breadcrumb even when i am not on that page...why this so....???.and HOME is coming under "Motor Insurance"....please have a look at the attached document.......PFA
Attachment

Attachments: scrr.png (154.8k)
Olaf Kock
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 10:24 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 3428

Join Date: September 23, 2008

Recent Posts

There's a more generic blog post by Jorge and another blog post by Alexey Kakunin that I found giving instructions on how to work with the global breadcrumb.
Rojalin Patri
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 7:59 PM
Answer

Rojalin Patri

Rank: Expert

Posts: 287

Join Date: March 22, 2011

Recent Posts

yeh,it's really a nice suggestion given by Olaf .you can either follow up that or you can just make your breadcrump only visible to signed in users just like "Dockbar" in portal_normal.vm.
Zeeshan Khan
RE: How to make these Links under Breadcrumbs..??
January 24, 2012 10:16 PM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

thnx Olaf and Rojalin !! i will give it a try and let u know guys....

thnx !!
Manikandan S
RE: How to make these Links under Breadcrumbs..??
January 25, 2012 2:34 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

You can use this file as breadcrumb.
Attachments: breadcrumb.jsp (2.3k)
Zeeshan Khan
RE: How to make these Links under Breadcrumbs..??
January 25, 2012 2:40 AM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

Mani kandan:
You can use this file as breadcrumb.


Hi Mani !!

where shall i put this...??
Manikandan S
RE: How to make these Links under Breadcrumbs..??
January 25, 2012 3:12 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

in your jsp file