Foros de discusión

Adding .html extenstion to the blog post pages

Bella fernandis, modificado hace 11 años.

Adding .html extenstion to the blog post pages

New Member Mensajes: 15 Fecha de incorporación: 6/11/12 Mensajes recientes
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?
thumbnail
Gnaniyar Zubair, modificado hace 11 años.

RE: Adding .html extenstion to the blog post pages

Liferay Master Mensajes: 722 Fecha de incorporación: 19/12/07 Mensajes recientes
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, modificado hace 11 años.

RE: Adding .html extenstion to the blog post pages

New Member Mensajes: 15 Fecha de incorporación: 6/11/12 Mensajes recientes
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?
thumbnail
Gnaniyar Zubair, modificado hace 11 años.

RE: Adding .html extenstion to the blog post pages

Liferay Master Mensajes: 722 Fecha de incorporación: 19/12/07 Mensajes recientes
//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..?
Bella fernandis, modificado hace 11 años.

RE: Adding .html extenstion to the blog post pages

New Member Mensajes: 15 Fecha de incorporación: 6/11/12 Mensajes recientes
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.
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: Adding .html extenstion to the blog post pages

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
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, modificado hace 11 años.

RE: Adding .html extenstion to the blog post pages

New Member Mensajes: 15 Fecha de incorporación: 6/11/12 Mensajes recientes
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.