I am still working to figure this out, how can I define how this info will be displayed on my page, I want to created a div with an unordered list inside.
What do I need to do to convert the XML data to CSS style-able data for display? This doesn't seem well documented, or perhaps I am just not getting it.
OK, I think this is where my trouble is starting. I need to set up the XSLT file to parse the xml created by the datatype? Then in my doctype I add the repeatable datatype, and add the umbraco field to the template? Sorry if this is all wrong, just trying to wrap my head around it.
Yep - the XSLT file parses the XML to format the data how you like. You're on the right track, except you'd insert the XSLT Macro into your template (not the field). Here's the whole process:
- Define the RCC datatype in the Developer -> Datatypes section (setup your fields, etc)
- Add the datatype you created to a doctype
- Create a new XSLT macro
- Insert the XSLT macro onto the template you are using for the doctype
That XSLT sample should get you started on the Macro part, but just post back if any questions on that. It'd be something like:
best advice might be to install Runway and have a look at how it's done from this basic project. failing that another great example is the CWS website starter
Not getting it
I am still working to figure this out, how can I define how this info will be displayed on my page, I want to created a div with an unordered list inside.
What do I need to do to convert the XML data to CSS style-able data for display? This doesn't seem well documented, or perhaps I am just not getting it.
Hi Dan,
You'd want to use an XSLT Macro to parse and display the data how you like. There is an XSLT Sample on Masood's Blog that should get you started.
OK, I think this is where my trouble is starting. I need to set up the XSLT file to parse the xml created by the datatype? Then in my doctype I add the repeatable datatype, and add the umbraco field to the template? Sorry if this is all wrong, just trying to wrap my head around it.
Thanks for your super quick reply.
Yep - the XSLT file parses the XML to format the data how you like. You're on the right track, except you'd insert the XSLT Macro into your template (not the field). Here's the whole process:
- Define the RCC datatype in the Developer -> Datatypes section (setup your fields, etc)
- Add the datatype you created to a doctype
- Create a new XSLT macro
- Insert the XSLT macro onto the template you are using for the doctype
That XSLT sample should get you started on the Macro part, but just post back if any questions on that. It'd be something like:
best advice might be to install Runway and have a look at how it's done from this basic project. failing that another great example is the CWS website starter
Great! I have it working!
Thanks for the help, I just needed to clarify that area.
The site is coming along well. This site has been very helpful for the questions I have had.
I'm probably missing something obvious, but I can't seem to get any content to display on my site which uses v4.5.2.
I have:
Everything seems to save OK, but nothing is displayed on the site.
What am I missing?
is working on a reply...