Composite.Community.Blog.BlogRenderer

Topics: Standard packages
Jan 8, 2011 at 7:05 PM

I have created a blog page and locked it down using the openid.

Now when visitor wants to access the blog page they have to log in using openid login page.

I however only want to show the blog entries belonging to that users since i have associated the openid email address with author email address.

Currently the GetEntriesXml returns entries for all authors.

Can i create my own function filtering out all authors except the one currently logged in?

I would like to do his because there will be quite a large amount of entries and looping through them would take quite some time.

Also there is also privacy concern due to information being blogged.

Even better if i can override the GetEntriesXml function so user do not accidentally create blog page showing all users data.

Thanks

Minh

Jan 9, 2011 at 12:32 AM

Under Function Calls tab in your XSLT function there is a Filter element. Set its parameters and the function will only retrieve the data which match the filter.

You may also find these articles useful:

http://docs.composite.net/C1/Data/Metadata-filtering.aspx/Filtering-datatypes-with-metadata

http://my.composite.net/C1/XSLT/LinktoDetailFunction.aspx/The-Functions