组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Bella fernandis
Adding .html extenstion to the blog post pages
2013年2月14日 上午1:28
答复

Bella fernandis

等级: New Member

帖子: 15

加入日期: 2012年11月5日

最近的帖子

My problem is i want to add '.html' extension to my every blog post. For example right now i have a blog post url 'http://www.indu.com/blog/-/blogs/creating-a-custom-portlet-in-liferay' and what i want is 'http://www.indu.com/blog/-/blogs/creating-a-custom-portlet-in-liferay.html'

I would be grateful if any one can help?
Kowbathullah Gnaniyar
RE: Adding .html extenstion to the blog post pages
2013年2月14日 上午3:13
答复

Kowbathullah Gnaniyar

等级: Liferay Master

帖子: 608

加入日期: 2007年12月19日

最近的帖子

You cannot access the portal like .jsp or .html pages. Portal will be accessed by Portal pages only.

Here in your scenario, you can change custom url for blogs using Friendly URL concept.

- Gnaniyar Zubair
Bella fernandis
RE: Adding .html extenstion to the blog post pages
2013年2月14日 上午5:06
答复

Bella fernandis

等级: New Member

帖子: 15

加入日期: 2012年11月5日

最近的帖子

I have created a theme in which i am using blog portlet. So cant i access the inner pages of blogs with .html extension?? If not can you please guide me how to apply friendly url for this?
Kowbathullah Gnaniyar
RE: Adding .html extenstion to the blog post pages
2013年2月14日 上午5:28
答复

Kowbathullah Gnaniyar

等级: Liferay Master

帖子: 608

加入日期: 2007年12月19日

最近的帖子

//I have created a theme in which i am using blog portlet.//

Blog portlet inside the Theme..? Sorry I got confused.

Did you mean to say that you have included the blog portlet inside the portal_normal.vm of your theme?

Also you cannot access any inner pages .jsp / .html like servlet application, here all the request is going through Portlet URLs which is controlled by portlet container.

Which blog page do you want to access..?
Hitoshi Ozawa
RE: Adding .html extenstion to the blog post pages
2013年2月14日 下午1:39
答复

Hitoshi Ozawa

等级: Liferay Legend

帖子: 7949

加入日期: 2010年3月23日

最近的帖子

My problem is i want to add '.html' extension to my every blog post. For example right now i have a blog post url 'http://www.indu.com/blog/-/blogs/creating-a-custom-portlet-in-liferay' and what i want is 'http://www.indu.com/blog/-/blogs/creating-a-custom-portlet-in-liferay.html'


If you setup a http server in front of your liferay, you can just strip off the ".html" when redirecting to liferay pages. This will allow users to use .html extensions to access liferay pages.
Bella fernandis
RE: Adding .html extenstion to the blog post pages
2013年2月15日 下午9:23
答复

Bella fernandis

等级: New Member

帖子: 15

加入日期: 2012年11月5日

最近的帖子

Sorry for the inconvenience caused. But i have created a site have implemented the theme for the same. In the site i am using the blog portlet in the "blog" page. Now i have 4 blog entries in the blog. So now my question comes when i click on any of the blog post the url shows like this "localhost:8080/blog/-/blogs/creating-a-custom-portlet-in-liferay" but i want that to be displayed as "localhost:8080/blog/-/blogs/creating-a-custom-portlet-in-liferay.html". So want to add .html in the inner pages of blog. Hope you get the problem.
Bella fernandis
RE: Adding .html extenstion to the blog post pages
2013年2月15日 下午9:26
答复

Bella fernandis

等级: New Member

帖子: 15

加入日期: 2012年11月5日

最近的帖子

I have already added the .html extension to the pages of the site. But my question is how can i add the .html extension to the blog entries. Say for now i have a 4 blog posts so on clicking the same the url gets showed like this "localhost:8080/blog/-/blogs/creating-a-custom-portlet-in-liferay" and i want the url to be "www.indiesjxe.com/blog/-/blogs/creating-a-custom-portlet-in-liferay.html". Now help me for this problem.