Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Getting a repeater to display blog post summary View modes: 
User avatar
Member
Member
andrew-gradweb.co - 2/7/2012 7:51:19 AM
   
Getting a repeater to display blog post summary
Hi,

I have a blog on my website. There is a main blog page. Under this page there are a number of blog months which contain the individual blog posts.

I have a repeater on my main blog page which finds and displays all blog posts. Currently this displays the full post text for each blog post. What I want to display is the post summary.

The repeater on the main blog page currently has the following transformations set:

Transformation: CMS.Blog.PostPreview
Selected item transformation: cms.blogpost.Default

I appreciate this is a simple problem but I can't seem to find the correct setting to display the post summary. Any help or advice would be greatly appreciated.

Thanks!

User avatar
Member
Member
kentico_michal - 2/7/2012 8:12:24 AM
   
RE:Getting a repeater to display blog post summary
Hello,

You need to modify the cms.blog.postpreview transformation.

So, please go to the Site manager -> Development -> Document types -> edit the CMS.Blog document type -> Transformations -> edit the PostPreview transformation and change the following code:

ORIGINAL CODE:
<%# Eval("BlogPostBody") %>

NEW CODE:
<%# Eval("BlogPostSummary") %>

Best regards,
Michal Legen

User avatar
Member
Member
andrew-gradweb.co - 2/7/2012 8:35:19 AM
   
RE:Getting a repeater to display blog post summary
Thank you very much. That works perfectly.

User avatar
Member
Member
steves-xmental - 2/8/2012 11:19:30 AM
   
RE:Getting a repeater to display blog post summary
Please consider making it easier to use the post summary feature. It was painful trying to find an answer to this issue.

Post summary is a feature that is built in, by default, on most every other blog/CMS platform...it is in Kentico too but it is hidden.

Make it an activated part of the default install.
and/or
Include the choice on the initial/new blog post screen.
and/or
Maybe include instruction on activation of post summary in documentation.

User avatar
Member
Member
steves-xmental - 2/8/2012 11:21:04 AM
   
RE:Getting a repeater to display blog post summary
Andrew - thank you for asking the question.

Michael - thank you for the easy to follow answer.

User avatar
Member
Member
steves-xmental - 2/8/2012 4:06:09 PM
   
RE:Getting a repeater to display blog post summary
I stand corrected - just did my first ver 6 install - it works out of the box