Difference between IndexPostList and WeblogPostList

rated by 0 users
This post has 1 Reply | 1 Follower

Top 500 Contributor
Posts 43
Points 730
av613 Posted: Tue, Aug 12 2008 11:10 AM

Hi,

We have some posts that contain "commented" meta data in the body of the post (using HTML comment tags). We use this meta data to display images next to the post. When we use the WeblogPostList, the "body" property contains all of the HTML code of the post body and we are able to use regex to extract the meta data. However, when we access the same post's body from IndexPostList (for example on the search or tag list pages) the body and formattedbody properties do NOT contain the commented meta data. It appears that something in the IndexPostList is stripping it out from the post body.

What could it be and why is there a difference between the two?

Thakns,
Arsen

 

  • | Post Points: 20
Top 10 Contributor
Posts 3,424
Points 65,515
CS Developers
Ben Tiedt replied on Mon, Aug 25 2008 8:47 AM

WeblogPostList directly accesses blog posts from the database whereas the IndexPostList accesses the search index.  The search index does not contain all of fields/content of the blog post, which results in the issue you're seeing.

Chameleon does, however, suport placing a <CSBlog:WeblogPostData /> control within the item templates of the IndexPostList control and will load the related blog post for each search result if the result is a blog post. 

Ben Tiedt's Blog

  • | Post Points: 5
Page 1 of 1 (2 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com