掲示板

List of pages in code

8年前 に Deepika V によって更新されました。

List of pages in code

Junior Member 投稿: 33 参加年月日: 15/06/16 最新の投稿
Hi,

i dont want to use default navigation bar and breadcrum.

I m wirting the customized navigation bar.

i have public and private pages in my site.like below..

Page1
|
page1.1
Page1.2
|
Page 1.2.1
Page 1.2.2
Page2
|
page2.1
page2.2
|
Page 2.1.1
|
Page 2.1.1.1
How to get these pages and subpages names in template ?? And also how to check which page is clicked in navigation bar?

For breadcrum , how to get which page we have clicked in template?

ex: Page1>Page1.1>page1.1.1
8年前 に Sharad Sinha によって更新されました。

RE: List of pages in code

Junior Member 投稿: 44 参加年月日: 13/03/08 最新の投稿
Hi Deepika,

Are you creating any custom theme?
You can have a look into navigation.vm file.
thumbnail
8年前 に Samuel Kong によって更新されました。

RE: List of pages in code

Liferay Legend 投稿: 1902 参加年月日: 08/03/10 最新の投稿
For the navigation bar in your theme, take a look at navigation.vm in the classic theme. It has all the code you'll need.

For breadcrum , how to get which page we have clicked in template?

This is handled automatically by Liferay Portal.
8年前 に Deepika V によって更新されました。

RE: List of pages in code

Junior Member 投稿: 33 参加年月日: 15/06/16 最新の投稿
I dont find navigation.vm file in my theme folder. Is it same as navigation.ftl.

if yes, there are some many variables in that. Is there any tag lib link so that i can refer what are all the tags/tag lib is there in liferay?
8年前 に Sharad Sinha によって更新されました。

RE: List of pages in code

Junior Member 投稿: 44 参加年月日: 13/03/08 最新の投稿
Hi Deepika,

You can refer navigation.vm file of liferay default theme. you can find this file at location <LIFERAY_HOME>/html/themes/classic/templates/navigation.vm

Are you using Liferay IDE for creating Theme? If yes, you can find navigation.vm file in your templates folder.
thumbnail
8年前 に Himanshu Bhandari によって更新されました。

RE: List of pages in code

Regular Member 投稿: 148 参加年月日: 14/05/09 最新の投稿
Hi
I m wirting the customized navigation bar.

For this all you need is "LayoutLocalServiceUtil". This class has all the methods just go through Javadocs and build your own navigation.

Thanks
8年前 に akaram siddiqui によって更新されました。

RE: List of pages in code

Junior Member 投稿: 56 参加年月日: 13/05/16 最新の投稿
Hi Deepika V
Are you using site Template or page template? if you are using site template you can create above page directly in site template.
8年前 に Deepika V によって更新されました。

RE: List of pages in code

Junior Member 投稿: 33 参加年月日: 15/06/16 最新の投稿
Thanks for reply.

I m planning to use Page template because most of the pages doesnot require navigation bar.

Can you please let me know how i can create page directly in site template?

and also can i get the pages url in the jsp template/file if yes please let me know how??