Can someone please provide a list of attribute names for page_standard (and other) assets?
Specifically, I've been trying to use the GetAttributeValuesByName and SetAttributeValue methods, but don't know what attributes are available, and what they are named.
The manual is minimal to say the least in this regard.
I'm also getting an empty array back from the GetAttributeValuesByName - so I'm not sure whether this is a bug, or just because I'm not passing in the correct value for AttributeName (however there is no SOAP exception or other error message to do with this either).
TIA
SOAP API asset service
How to find attributes?
First look in the Asset Tree where You can find a name of the asset folder.
We have there: "Standard Page (page_standard)"
So You look in:
/[matrix_root_folder]/core/
for "page_standard".
Attributes should be in xml files. If not - just go to the parent of "Standard Page (page_standard)" in Asset Tree and look again.
[quote]
Can someone please provide a list of attribute names for page_standard (and other) assets?
Specifically, I've been trying to use the GetAttributeValuesByName and SetAttributeValue methods, but don't know what attributes are available, and what they are named.
The manual is minimal to say the least in this regard.
I'm also getting an empty array back from the GetAttributeValuesByName - so I'm not sure whether this is a bug, or just because I'm not passing in the correct value for AttributeName (however there is no SOAP exception or other error message to do with this either).
TIA
[/quote]
2 options for getting a list of attributes for each asset
Easy method: Database SELECT n.name FROM sq_ast_attr n INNER JOIN sq_ast_attr_val v ON n.attrid=v.attrid INNER JOIN sq_ast a ON a.assetid=v.assetid WHERE a.type_code='page_standard';
More difficult method: Each asset has a management class with contains the attributes for the asset, the only problem is some assets are descended from other assets and inherit their attributes from their parent, so in some cases you might be looking up more than one management file.
Hope that helps
Thanks Benjamin
That's useful.
[quote]
2 options for getting a list of attributes for each asset
Easy method: Database SELECT n.name FROM sq_ast_attr n INNER JOIN sq_ast_attr_val v ON n.attrid=v.attrid INNER JOIN sq_ast a ON a.assetid=v.assetid WHERE a.type_code='page_standard';
More difficult method: Each asset has a management class with contains the attributes for the asset, the only problem is some assets are descended from other assets and inherit their attributes from their parent, so in some cases you might be looking up more than one management file.
Hope that helps
[/quote]
Thanks uam
[quote]
How to find attributes?
First look in the Asset Tree where You can find a name of the asset folder.
We have there: "Standard Page (page_standard)"
So You look in:
/[matrix_root_folder]/core/
for "page_standard".
Attributes should be in xml files. If not - just go to the parent of "Standard Page (page_standard)" in Asset Tree and look again.
[/quote]