Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Jan 18, 2013 @ 11:15
    Matt Brailsford
    0

    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

  • Soeren Sprogoe 575 posts 259 karma points
    Jan 18, 2013 @ 11:30
    Soeren Sprogoe
    0

    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

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Jan 18, 2013 @ 11:41
    Matt Brailsford
    0

    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

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Jan 18, 2013 @ 12:50
  • webmonger 130 posts 285 karma points
    Jan 18, 2013 @ 12:57
    webmonger
    0

    Hey Matt

    As discussed it can be done by navigating to:

    Settings > Definitions > Cetegory - Right click to create properties

    Jon

Please Sign in or register to post replies

Write your reply to:

Draft