Skip to main content
areohbee
Legend
August 21, 2010
Question

keyword:getAttributes only returning includeOnExport

  • August 21, 2010
  • 1 reply
  • 2117 views

Am I doing something really stupid, or does keyword:getAttributes only return includeOnExport - I'm getting no keywordName nor synonyms. Anybody else?

If not, I suggest either the method by fixed, or the API doc.

Rob

This topic has been closed for replies.

1 reply

johnrellis
Legend
August 21, 2010
does keyword:getAttributes only return includeOnExport

Hmm, I modified an existing plugin and observed the same thing.  However, my plugin successfully calls keyword:getName() and keyword:getSynonyms(), so, functionally, it's not essential that keyword:getAttributes() returns the name and synonyms as documented.   (One might hope that making one call to getAttributes() would be faster than three calls, to getAttributes(), getName(), and getSynonyms().)

Does keyword:setAttributes() let you specify name and synonyms?

areohbee
areohbeeAuthor
Legend
August 21, 2010

Yes, the functionality is optional, in which case a doc update would suffice.

And yes, setAttributes will do synonyms and incl-on-exp (didn't check name).

EDIT: Name is broken - can not be set as an attribute, nor any other way that I know of.

_R