Combine two attributes into one attribute


(Timeverist) #1

I am trying to get two attributes (in a custom asset) to combine to be one.


I tried doing it with a trigger to set the attribute and used keywords to try and combine them. - but I don't think it works that way.



I am guessing there is a way to put it in a method or something in the asset inc files to tell an attribute to have the data of two other attributes, i'm not so crash hot on methods though. Any ideas, or point me towards other assets that may have this functionality?


(Avi Miller) #2

Can't you just create a custom keyword that combines the values of two attributes? See Tom's response in your other thread about creating keyword functionality.


(Timeverist) #3

This attribute will be for a keyword in a RSS feed.
I have tried just putting in the two keywords but it does not accept it. Only seems to work as one


(Avi Miller) #4

Yeah, I would just create a custom keyword for your asset that combines the values from two attributes and outputs it in the format you require.


(Timeverist) #5

Ok I have created the function that returns it the way I want it. How do I get a keyword to call the function.


(Greg Sherwood) #6

The RSS Feed asset will accept multiple keywords for a field. For example, for the AUTHOR tag of the Matrix site feeds, I use "%asset_published_by_name% <%asset_published_by_email%>".


What is not working for you?


(Timeverist) #7

Thanks it is working now, I think i was just not putting in the % or something.


Sorry to complicate things, thanks again.


(Avi Miller) #8

No worries. Glad its working. :slight_smile: