MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Sorting Blog Posts (Closed) (Mono Support )

Viewed 12175 time(s), 5 post(s) 4/18/2012 12:37:29 PMby HüseyinDursun
HueseyinDursun

HüseyinDursun

4/18/2012 12:37:29 PM
Hi,

I'm using blog as categories to give information about specific topics. Is it possible to sort blog posts alphabetically (by title)?

Thanks...
This content has not been rated yet. 
450 Reputation 66 Total posts
kpeulic

kpeulic

4/19/2012 10:08:53 AM
Hi,

You can try do it by following these steps:

- create your BlogRepository class by inheriting the MonoX BlogRepository

- override the GetBlogPosts method in BlogRepository and set the sorter as you wish

- create your BlogPostList control by inheriting the MonoX BlogPostList control

- override the BindData method in BlogPostList and call your BlogRepository -> GetBlogPosts method to fetch the blog posts

- create your BlogContainer control by inheriting the MonoX BlogPostList and change in the mark-up MonoX BlogPostList control your BlogPostList control

- go to Blog page and change the MonoX BlogContainer control with your BlogContainer control

Let me know is this approach suits you.

Regards
This content has not been rated yet. 
1849 Reputation 181 Total posts
HueseyinDursun

HüseyinDursun

4/19/2012 12:23:05 PM
Hi,

I don't know any programming landuage. So It is really difficult for me to do these steps.

I have more than 200 blog posts on my website. If there is a way by changing some ceratin codes on certain pages (e.g. Blog.aspx), I can change the codes. Otherwise I will let it stay unchanged.

Thanks for your help..
This content has not been rated yet. 
450 Reputation 66 Total posts
kpeulic

kpeulic

4/19/2012 12:38:17 PM
Hi,

This cannot be done without extending. We can offer you a custom development service and implement these changes for you.

Regards.
This content has not been rated yet. 
1849 Reputation 181 Total posts
HueseyinDursun

HüseyinDursun

4/19/2012 12:40:42 PM
OK, thanks..

This content has not been rated yet. 
450 Reputation 66 Total posts