Mapping categories returns Uncategorized items
-
Hi, I am trying to test a setup for importing posts, based on an XML feed template, which I am then to apply in a real life project. In real life the XML is going to be fetched by an FTP (PRO is required as far as I know, right?) every N minutes, which is going to be taken care of by a CRONjob. Before getting into that, however, I am having an issue with categorization. The architecture of the XML I am going to eventually deal with, contains a tag with the following format, which I want to use to declare the category it should map to:
<Property FormalName="CategoryKey" Value="CategoryValue">
However, underneath that, there are more Property tags, serving other uses, such as tags etc.
<Property FormalName="KeywordKey" Value="KeywordValue">
By simply dragging and dropping the correct tag from the template on the right hand side of the import job page to the appropriate field, i.e. “Enable Mapping for Categories > In your File” the mapping does not actually work as desired. Of course I expected that to be the case to be honest, because the <Property> tag is not unique to the parent item. The value of said field gets set as:
{Component[1]/Metadata[1]/Property[1]/@Value}
I tried to tweak that to multiple variation like the following, but none actually worked.
{Component[1]/Metadata[1]/Property[1]/@Key=CatKey/@Value}
Is there actually a way to define which of the various tags with the <Property> name I want to target, to then map to the appropriate categories?
For the time being, all runs of the job have returned posts which remain uncategorized.
- The topic ‘Mapping categories returns Uncategorized items’ is closed to new replies.