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
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.
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com