Comma in Category causes blog posts to not showCancel

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.

It is not possible to have comma in the name of a category, because the filter splits the string. If you have category called "Test, Test", the filter splits the string to "Test" and "Test" and the value of the right operand of the filter becomes "Test" instead of "Test, Test".

If you want to use comma in the name of a category you need to override ParseMetaFieldsFilter() virtual method of ContentFilterBuilder class and then implement the filter in a custom control that inherits from BlogPosts.

The second problem is result of caching - both controls - CategoryList and CategoryTree use caching and the count is updated when the application is restarted or after 24 hours. There are some bugs with CategoryList control that are not sorted out and I suggest that you should use CategoryTree control instead which works properly.

Kind regards,
Ivan Dimitrov
the Telerik team

Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items.

Thanks for the reply. It might be a good idea to consider whether you can support commas in categories in future versions because for a content managers point of view they just think "why can't my categories have a comma".

On the second point.... nope the problem is not due to caching. The categories list was displaying counts like "19" when there was definitely never that many posts in a category at any point. So I built my own category list control. But please have someone look into it. Both display modes of the category control should be working as it is not a complicated control and has from memory been broken for ages.

Just another quick question. Has anyone investigated trying to use the url rewriter to have friendly category urls... for example

/blog/posts.aspx?BlogCatID="Category Name" rewritten as

/blog/posts/category name.aspx

I tried to configure Sitefinity's rewriter to do this but kept getting errors and didn't know whether it was because of other rewriting going on with the BlogPosts content view.

"Both display modes of the category control should be working as it is not a complicated control and has from memory been broken for ages".

The problem was logged some time ago and we will try to fix it.

The quick question

/blog/posts.aspx?BlogCatID="Category Name" rewritten as

/blog/posts/category name.aspx

This could not work and it would be not possible to implement it.

The link - /blog/posts/category name.aspx will be considered as a regular page and you will get 404. There will be a problem when you work with extensionless urls as well.

BlogPosts control relies of the QueryString parameter.

urlRewriteFormat of the BlogPost will be broken.

Regards,
Ivan Dimitrov
the Telerik team

Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items.

Tools

Sitefinity Professional Services

Progress, Telerik, Sitefinity and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.