cancel
Showing results for 
Search instead for 
Did you mean: 

Need category to contain slashes (/)

wiggum
Champ in-the-making
Champ in-the-making
Hi there,

I have some metadata I need to tag to all documents in a space.  I was planning on using categories, but one of my values is a URL which contains slashes, and slashes aren't accepted in categories. 

So I need a way to assign a category (or maybe a property) to all documents when they land in a space, and this value must be able to contain slashes.  Then I'll grab this value from a custom action and write it to a db.

Any ideas are welcome!

Thanks!
4 REPLIES 4

christophes
Champ in-the-making
Champ in-the-making
You can create a new aspect with your meta-data (see http://wiki.alfresco.com/wiki/Data_Dictionary_Guide#Step_3:_Create_a_new_Aspect) and a content rule in your space to use by default your new aspect.

I hope that will help you.

Christophe

wiggum
Champ in-the-making
Champ in-the-making
Hi Christophe,

I appreciate your response.  I have some custom aspects, but this is more of an admin configurable property that we're going to have many different values for.  So I'm not sure that a custom aspect is the best bet in this case.

I also have some custom properties that I can set on a document level on the "Modify Content Properties" screen.  But ideally I'd like to have that custom property automatically applied to all items as they go into a space.

Thanks,
Sean

andy
Champ on-the-rise
Champ on-the-rise
Hi

If this does not work then it is a bug.

Categories use the name to create a path - this should be ISO9075 encoded.
It is is not then there is a problem somewhere.

Are you just going throught the UI or doing something else?

See http://issues.alfresco.com/browse/AR-1286

Andy

wiggum
Champ in-the-making
Champ in-the-making
You can add special characters in categories, including slashes and backslashes, if you change the regular expression in contentModel.xml and validation.js, as outlined in this post:

http://forums.alfresco.com/viewtopic.php?t=3508