On Jul 17, 2008, at 1:28 AM, Dave Mangot wrote:
On Jul 8, 2008, at 10:56 PM, Dave Mangot wrote:
Is there a way to mark a blog category as excluded from the main aggregation of blog postings on the main page? Should I just edit the SQL in Blog.Macros directly? If so, I'm not sure which table I should be looking at.
We have a new blog category that only a small subset of the company cares about.
If you look at the Blog.Macros page you'll see it accepts a "category" velocity variable that you can set.
You can also modify the HQL query in Blog.Macros page to suit your needs if you want.
Actually, the funny thing is I want to include everything BUT a specific category. Being able to include one category is pretty neat and I could see how that would be useful. I've tried a variety of syntaxes for NOT and OR both in
#set($category = "")
and
Blog.Macros, but no success yet.
I've also tried specifying multiple categories with AND, but no success there either. :(
I'm on holiday right now and I don't have much time to experiment with this but try editing the Blog.Macros page and modify the HQL. You could introduce a new categoryExclusion variable and based on it exclude some categories using a modified HQL query. Thanks -Vincent