Portal Engine
Version 3.x > Portal Engine > Blog Archive Problem View modes: 
User avatar
Member
Member
chris-ricochetpartners - 11/13/2008 4:42:37 PM
   
Blog Archive Problem
Hi, Not sure what I am missing here. I have setup a blog using the same pattern as used in the PersonalSite example site. I have a RecentPosts webpart and a rptMonthPosts repeater and a PostArchive web part. The rptMonthPosts repeater is configured to display for only CMS.BlogMonth documents, while the RecentPosts webpart for CMS.Blog and CMS.BlogPost document. The problem I am having is that when I click on one of the archive links in the PostArchives, the page displays all of the posts, not just the ones for that month. It seems like there must be something I am doing wrong. Please Advise.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 11/14/2008 7:13:04 AM
   
RE:Blog Archive Problem
Hello,

Could you please check if the path in the PostArchives web part is set to the correct location of the posts? You could also check, how are the monthly posts displayed in the sample Corporate site.

Best Regards,
Boris Pocatko

User avatar
Member
Member
chris-ricochetpartners - 11/14/2008 9:57:35 AM
   
RE:Blog Archive Problem
The path is set to the root of my blog/% so that all posts should be visible. I will look at the corporate example too. Any other suggestions?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/14/2008 11:57:39 AM
   
RE:Blog Archive Problem
Hi,

Could you please describe us all the settings that are set for the post archive web part? Where is this web part placed, on which document of which type?


Thank you in advance.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
chris-ricochetpartners - 11/14/2008 12:17:30 PM
   
RE:Blog Archive Problem
The post archive web part is placed in a web part zone on a blog document type. Here are the settings:
Default
Web part control ID:
Visible: yes
Hide on subpages: no
Show for document types:
Display to roles:

Archive
Transformation name: cms.blogpost.archive
Select top N:

No data behavior
Hide if no record found: yes
No record found text:

HTML Envelope
Web part container: none
Web part container title:
Content before: <div class="col_seperator"></div> <div class="left_sidebar_text"> <span style="font-weight: bold;">ARCHIVES</span><br />
Content after: </div>

Here is the transformation:

<a href="<%# GetDocumentUrl() %>"><%# Eval("BlogMonthName") %>(<asp:Label ID="lblPostCount" runat="server" EnableViewState="false"></asp:Label>)</a><br />


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/14/2008 12:21:27 PM
   
RE:Blog Archive Problem
Could you please fill into the "Show for document types" field this value:

cms.blog;cms.blogmonth;cms.blogpost

I hope it will help.


Juraj Ondrus

User avatar
Member
Member
chris-ricochetpartners - 11/14/2008 12:27:13 PM
   
RE:Blog Archive Problem
I tried that but it didnt change the behaviour

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/14/2008 12:33:43 PM
   
RE:Blog Archive Problem
This is very strange.

Could you please send us the export site package to support@kentico.com so we can inspect this issue (http://www.kentico.com/docs/devguide/exporting_a_site.htm)?

Best Regards,
Juraj Ondrus