Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Hery Sutanto
Blog's display setting is not working
July 3, 2012 9:02 PM
Answer

Hery Sutanto

Rank: Junior Member

Posts: 81

Join Date: June 3, 2012

Recent Posts

Hi everyone,

It seems that there is some issues in Blog's portlet display setting, I tried to change the display setting to abstract but it doesn't display any words at all and it's only display the readmore link? anyone have any idea regarding this issue? And one more thing, can I hide/remove the RSS link?

Thanks,

Hery
Yogesh Agrawal
RE: Blog's display setting is not working
July 3, 2012 10:59 PM
Answer

Yogesh Agrawal

Rank: Junior Member

Posts: 35

Join Date: May 17, 2010

Recent Posts

Which Liferay version you are using ?
For removing RSS link, you need to hook blogs portlet jsp or simply apply some css to hide this RSS span.
Hery Sutanto
RE: Blog's display setting is not working
July 3, 2012 11:57 PM
Answer

Hery Sutanto

Rank: Junior Member

Posts: 81

Join Date: June 3, 2012

Recent Posts

Yogesh Agrawal:
Which Liferay version you are using ?
For removing RSS link, you need to hook blogs portlet jsp or simply apply some css to hide this RSS span.



HI Yogesh,

I am using Liferay 6.1... and how could I achieve that ? can you give me some example? I am quite new to Liferay....

Regards,

Hery
Yogesh Agrawal
RE: Blog's display setting is not working
July 4, 2012 12:06 AM
Answer

Yogesh Agrawal

Rank: Junior Member

Posts: 35

Join Date: May 17, 2010

Recent Posts

Display setting of Blogs portlet is working correctly in LR 6.1.
You need to create a jsp hook for view_enteries.jspf, and delete the code of rss icon

to create jsp hook pls go through this
http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/overriding-a-jsp
Hery Sutanto
RE: Blog's display setting is not working
July 4, 2012 9:17 PM
Answer

Hery Sutanto

Rank: Junior Member

Posts: 81

Join Date: June 3, 2012

Recent Posts

Yogesh Agrawal:
Display setting of Blogs portlet is working correctly in LR 6.1.
You need to create a jsp hook for view_enteries.jspf, and delete the code of rss icon

to create jsp hook pls go through this
http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/overriding-a-jsp



The display setting that I was referring is when the option change to 'abstract', it supposed to display few sentences/words but it just display the readmore link,
I tried the to create the hook as explained in the article, but ti doesn't work I have deleted the RSS in my hook, I placed the hooks folder in the following directory :
liferay-portal-6.1.0-ce-ga1/

and inside the folder
liferay-portal-6.1.0-ce-ga1\hooks\example-hook\docroot\WEB-INF

I put this file :
liferay-hook.xml which contain
<hook>
<custom-jsp-dir>/META-INF/custom_jsps</custom-jsp-dir>
</hook>

then within this folder
liferay-portal-6.1.0-ce-ga1\hooks\example-hook\docroot\META-INF\custom_jsps\html\portlet\blogs

I put this file :
view_entries.jspf

How can I know if the hook got called or not?

Thanks,

Hery
Yogesh Agrawal
RE: Blog's display setting is not working
July 4, 2012 10:26 PM
Answer

Yogesh Agrawal

Rank: Junior Member

Posts: 35

Join Date: May 17, 2010

Recent Posts

Are you using Liferay Ide for hooking ?
Hery Sutanto
RE: Blog's display setting is not working
July 5, 2012 8:36 PM
Answer

Hery Sutanto

Rank: Junior Member

Posts: 81

Join Date: June 3, 2012

Recent Posts

Yogesh Agrawal:
Are you using Liferay Ide for hooking ?



Currently no... I am using as what the article suggest... to copy and paste the file..

Still working with Liferay IDE....

Regards,

Hery
Hery Sutanto
RE: Blog's display setting is not working
July 6, 2012 1:42 AM
Answer

Hery Sutanto

Rank: Junior Member

Posts: 81

Join Date: June 3, 2012

Recent Posts

I have managed to make change as you suggested using IDE eclipse
It works well using the hook creation.... Thanks again emoticon

Another thing is how to modify the existing portlet??

Regards,

Hery
Yogesh Agrawal
RE: Blog's display setting is not working
July 6, 2012 3:37 AM
Answer

Yogesh Agrawal

Rank: Junior Member

Posts: 35

Join Date: May 17, 2010

Recent Posts

Hooks or exts are only way to modify the out of box portlets.
Liferay IDE supports both, but I suggest not to use exts.
Hery Sutanto
RE: Blog's display setting is not working
July 8, 2012 10:47 PM
Answer

Hery Sutanto

Rank: Junior Member

Posts: 81

Join Date: June 3, 2012

Recent Posts

Then am I suppose to modify the portlet functionality?
because right now the blogs portlet has some problem when I choose the abstract display

Regards,

Hery
Yogesh Agrawal
RE: Blog's display setting is not working
July 9, 2012 12:37 AM
Answer

Yogesh Agrawal

Rank: Junior Member

Posts: 35

Join Date: May 17, 2010

Recent Posts

If liferay blogs display style functionality is not working, then find LPS issue for this or just create a new issue on LR's JIRA and specify steps to reproduce it.

For your custom functionality you need to hook.
Hery Sutanto
RE: Blog's display setting is not working
July 11, 2012 9:25 PM
Answer

Hery Sutanto

Rank: Junior Member

Posts: 81

Join Date: June 3, 2012

Recent Posts

Hi guys,

I figured out on how to make the abstract display working properly... apparently it needed to be set under the blog creation itself... I was keep trying on the blog's configuration and it didn't work at all...
type in under the abstract description...

Regards,

Hery
Mazhar Alam
RE: Blog's display setting is not working
September 17, 2012 5:43 AM
Answer

Mazhar Alam

Rank: Regular Member

Posts: 201

Join Date: November 25, 2011

Recent Posts

Hi Hery,

I also used abstract functionality and also added few lines to description,but it seems that abstract is not working..
Cud u help me in this.
Thanks.