#
D3grade
Hi guys,
As part of a job that i am working on, we have a need to auto populate a site with nodes and sections. In order to do this, i thought it would be good to try and template this in some way.
My initial thoughts are to use xml files with a similar format to this:
I was wondering if anyone could offer assistance as to how to go about this? I've not yet created a service of my own, so would this be well suited? What would be the general structure of this?
Many thanks
Matt
PS I've had to add a space after the starting '<' just to get it to post
As part of a job that i am working on, we have a need to auto populate a site with nodes and sections. In order to do this, i thought it would be good to try and template this in some way.
My initial thoughts are to use xml files with a similar format to this:
< cluster>
< node title="" templateid="" showinnavigation="" linkurl="" linktarget="">
< sections>
< section title="" showtitle="" placeholderid="" moduletypeid="">
< settings>
< setting name="" value="" />
< setting name="" value="" />
< setting name="" value="" />
< setting name="" value="" />
< /settings>
< /section>
< section title="" showtitle="" placeholderid="" moduletypeid="">
< settings>
< setting name="" value="" />
< setting name="" value="" />
< setting name="" value="" />
< setting name="" value="" />
< /settings>
< /section>
< /sections>
< nodes>
< node title="" templateid="" showinnavigation="" linkurl="" linktarget="">
< sections>
< section title="" showtitle="" placeholderid="" moduletypeid="">
< settings>
< setting name="" value="" />
< setting name="" value="" />
< setting name="" value="" />
< setting name="" value="" />
< /settings>
< /section>
< section title="" showtitle="" placeholderid="" moduletypeid="">
< settings>
< setting name="" value="" />
< setting name="" value="" />
< setting name="" value="" />
< setting name="" value="" />
< /settings>
< /section>
< /sections>
< nodes />
< /node>
< /nodes>
< /node>
< /cluster>I was wondering if anyone could offer assistance as to how to go about this? I've not yet created a service of my own, so would this be well suited? What would be the general structure of this?
Many thanks
Matt
PS I've had to add a space after the starting '<' just to get it to post