组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
L C
Link to Page instead of URL
2013年1月16日 下午12:44
答复

L C

等级: New Member

帖子: 19

加入日期: 2012年3月15日

最近的帖子

Hey all,

using 6.1.1 ce with tomcat

I'd like to create links to the page rather than view the URL in the content editor?

ex.
currently - http://<server>/level1/level2/page2 or /level1/level2/page2

instead - page2

is there a way to do that?
Parikshit Sharma
RE: Link to Page instead of URL
2013年1月17日 上午2:03
答复

Parikshit Sharma

等级: New Member

帖子: 21

加入日期: 2013年1月16日

最近的帖子

L C:
Hey all,

using 6.1.1 ce with tomcat

I'd like to create links to the page rather than view the URL in the content editor?

ex.
currently - http://<server>/level1/level2/page2 or /level1/level2/page2

instead - page2

is there a way to do that?


Hi,
didn't understand it completely ,but I think you can use structure template and create a fields pageLink in structure and in velocity template using friendlyURL we can create a proper page link
L C
RE: Link to Page instead of URL
2013年1月17日 上午10:42
答复

L C

等级: New Member

帖子: 19

加入日期: 2012年3月15日

最近的帖子

Is there a way to do it through the interface instead of coding functionality?
Milen Dyankov
RE: Link to Page instead of URL
2013年1月17日 下午12:37
答复

Milen Dyankov

LIFERAY STAFF

等级: Expert

帖子: 278

加入日期: 2012年10月30日

最近的帖子

By saying "in the content editor" do you mean in the default WYSIWYG editor? Or do you want to provide an additional/custom fields where you can provide page names and links will be generated once you display the content?
Rahul Sharma
RE: Link to Page instead of URL
2013年1月25日 上午7:08
答复

Rahul Sharma

等级: Junior Member

帖子: 60

加入日期: 2012年1月10日

最近的帖子

You have to change the friendly URL of the page and that can be done by going to Manage Page and do the desired settings.

Hope this helps!

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!