Hi.
We are looking to create an xml file from certain items in our our current (non-squiz) cms for import into squiz. I've noticed from looking at an actual export from squiz, that we made, that an asset is created with a named id and then all sub parts of the asset (e.g. body copies etc..) are created with ids that are increments of the initial asset id.
e.g.
<action>
<action_id>create_Page_Standard_8044</action_id>
<action_type>create_asset</action_type>
<type_code>Page_Standard</type_code>
<link_type>1</link_type>
<parentid>1</parentid>
<value></value>
<is_dependant>0</is_dependant>
<is_exclusive>0</is_exclusive>
</action>
<action>
<action_id>create_Bodycopy_8045</action_id>
<action_type>create_asset</action_type>
<type_code>Bodycopy</type_code>
<link_type>2</link_type>
<parentid>[[output://create_Page_Standard_8044.assetid]]</parentid>
<value></value>
<is_dependant>1</is_dependant>
<is_exclusive>1</is_exclusive>
</action>
My questions are:
Would we need to generate a hand-crafted set of asset ids in our export file?
How does Squiz track the next available asset ID?
If we hand-craft a set of ids what happens the next time we create an asset in the ordinary way through the squiz back-end?
Is there a keyword replacement we could use to make squiz select the next available id as it runs through the xml file?
How would we handle parent IDs?
Many thanks.
Jeff.