Not sure what is possible in the latest versions, as I've only worked with v1.x.
In v1 I've done a pretty dirty "hack" using Dictionary Items for the extra properties that I need.
Take fx. a custom meta description. In the category template I have a macro (XSLT ofcourse), that looks for a dictionary item called "catmetaCategoryName". As in: some prefix + the category name. If it is found, it uses the content of the item as meta description. If no dictionary item is found, the macro tries to auto generate the meta description.
It's a pretty messy way to solve this problem. But hey, it works, and is quick to implement :-)
Extra category properties + category on save?
Hi Guys,
2 questions for you related to categories.
1) Can you store additional properties on a category?
2) Is there any kind of save even for categories that one could hook into?
I know products have a save pipeline, but it looks like categories don't.
Any ideas?
Cheers
Matt
Not sure what is possible in the latest versions, as I've only worked with v1.x.
In v1 I've done a pretty dirty "hack" using Dictionary Items for the extra properties that I need.
Take fx. a custom meta description. In the category template I have a macro (XSLT ofcourse), that looks for a dictionary item called "catmetaCategoryName". As in: some prefix + the category name. If it is found, it uses the content of the item as meta description. If no dictionary item is found, the macro tries to auto generate the meta description.
It's a pretty messy way to solve this problem. But hey, it works, and is quick to implement :-)
/SoerenS
Hey Soren,
Looks like you can define custom properties on categories now, so that solves question 1. Thanks for your suggestion though.
Just need to find an answer to question 2 now :)
Matt
Ok, I've found I can do question 2) via this method:
http://our.umbraco.org/projects/website-utilities/ucommerce/ucommerce-support/32656-uCommerce-hooking-into-Product-Save-event
Problem sovled.
Hey Matt
As discussed it can be done by navigating to:
Settings > Definitions > Cetegory - Right click to create properties
Jon
is working on a reply...