ASPX templates
Version 5.x > ASPX templates > finding a repeater's template View modes: 
User avatar
Member
Member
john.allan-blastradius - 12/15/2010 1:25:49 PM
   
finding a repeater's template
I am looking at the CorporateSiteAspx demo and I am trying to find where the template for the individual blog posts is. I found the template for the blog page (CMSTemplates/CorporateSiteAspx/Blog.aspx) which contains a repeater that echos out the blog posts. What I cannot find is the template the repeater is using to format each individual post. ( Post Title | Body | Footer (Post Date | Post Author | Comment Count) )

I searched the entire project for "BlogPDateWhole" one of the classes used to format the footer content. It only appeared in two places. The CSS file and a bunch of export.xml files.

So where does this HTML come from?

<DIV class=BlogPTitle></DIV>
<DIV class=BlogPBody></DIV>
<DIV class=BlogPDateWhole></DIV>
<BR><BR>

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 12/15/2010 4:22:34 PM
   
RE:finding a repeater's template
Hi,

format of each blog post is defined in transformation cms.blogpost.Default. You can modify it in Site Manager - Development - Document type - edit Blog post document type - Transformations - edit Default

Best regards,
Ivana Tomanickova

User avatar
Member
Member
john.allan - 12/15/2010 4:58:53 PM
   
RE:finding a repeater's template
Can I ask why you would keep the page templates in aspx files and the post templates as transformations? Is there a performance improvement or maybe it is easier for content managers to edit the template?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 12/16/2010 8:15:55 AM
   
RE:finding a repeater's template
Hi John,

the system is designed this way because it is more flexible - it enables users to manage content more easily. Transformation can be shared between portal engine and aspx templates sites.

Best regards,
Ivana Tomanickova