I'm not quite sure I totally understand your question, but do you want to print out the selected options from a checkbox list on the frontend?
You can for sure do this. Actually could you try to print out this at first where aliasOfTheField is the alias of the property that you inserted on your document type:
Oh thanks, what I meant was actually make a nav from the contents of a datatype without it needing to be called into a page first.
So if I set up a checkbox menu datatype can I make a list like red,green, yellow ect from it before calling it in a page.
I have a solution though. I have called it in a tab on the home page. Then the xslt asks for it there, this also allows me to switch off certain colours without amending the datatype.
Do you have different named document types for their purpose or is the document type the same? If the names are different you should not need to make a custom datatype, to decide wether or not a certain page belongs to a certain navigation structure on the site.
However if it's the same document type what you describe above is a good solution. Then you can make a test in your match to make sure that only document types, which has been marked "red" only gets displayed on a certain page/some certain pages. However this requires that you have some different templates that can be used on your document type dependant on where you want to display the "red" items only.
Can you call the properties of a datatype into xslt.
If I have a data type of a checkbox list Can I call it into a navigation li loop ? if so.. how :)
Doogie.
Oh I don't mean call it from a page, I mean use the data type to form a list which will filter the pages with the checkbox checked on a certain box.
Hi Doogie
I'm not quite sure I totally understand your question, but do you want to print out the selected options from a checkbox list on the frontend?
You can for sure do this. Actually could you try to print out this at first where aliasOfTheField is the alias of the property that you inserted on your document type:
This should print out the selected options from the checkbox list in the bacoffice. Does this return anything to you?
/Kim A
Oh thanks, what I meant was actually make a nav from the contents of a datatype without it needing to be called into a page first.
So if I set up a checkbox menu datatype can I make a list like red,green, yellow ect from it before calling it in a page.
I have a solution though. I have called it in a tab on the home page. Then the xslt asks for it there, this also allows me to switch off certain colours without amending the datatype.
Cheers all.
Hi Doogie
Do you have different named document types for their purpose or is the document type the same? If the names are different you should not need to make a custom datatype, to decide wether or not a certain page belongs to a certain navigation structure on the site.
However if it's the same document type what you describe above is a good solution. Then you can make a test in your match to make sure that only document types, which has been marked "red" only gets displayed on a certain page/some certain pages. However this requires that you have some different templates that can be used on your document type dependant on where you want to display the "red" items only.
does this make sense to you?
/Jan
is working on a reply...