Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Bella fernandis
Adding .html extenstion to the blog post pages
14 de febrero de 2013 1:28
Respuesta

Bella fernandis

Ranking: New Member

Mensajes: 15

Fecha de incorporación: 5 de noviembre de 2012

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?
Kowbathullah Gnaniyar
RE: Adding .html extenstion to the blog post pages
14 de febrero de 2013 3:13
Respuesta

Kowbathullah Gnaniyar

Ranking: Liferay Master

Mensajes: 603

Fecha de incorporación: 19 de diciembre de 2007

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
RE: Adding .html extenstion to the blog post pages
14 de febrero de 2013 5:06
Respuesta

Bella fernandis

Ranking: New Member

Mensajes: 15

Fecha de incorporación: 5 de noviembre de 2012

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?
Kowbathullah Gnaniyar
RE: Adding .html extenstion to the blog post pages
14 de febrero de 2013 5:28
Respuesta

Kowbathullah Gnaniyar

Ranking: Liferay Master

Mensajes: 603

Fecha de incorporación: 19 de diciembre de 2007

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..?
Hitoshi Ozawa
RE: Adding .html extenstion to the blog post pages
14 de febrero de 2013 13:39
Respuesta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensajes: 7954

Fecha de incorporación: 23 de marzo de 2010

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
RE: Adding .html extenstion to the blog post pages
15 de febrero de 2013 21:23
Respuesta

Bella fernandis

Ranking: New Member

Mensajes: 15

Fecha de incorporación: 5 de noviembre de 2012

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.
Bella fernandis
RE: Adding .html extenstion to the blog post pages
15 de febrero de 2013 21:26
Respuesta

Bella fernandis

Ranking: New Member

Mensajes: 15

Fecha de incorporación: 5 de noviembre de 2012

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.