Their is a need for my client to be able to assign categories to each testimonial on the site, then on the front-end for a particular page they can then choose from this list of testimonical categories and a random testimonial is then display based on this selection.
I have created a new datatype utilising the uComponents Dropdown Checklist and have successfully populated this with the relevant dropdown values. I have added this datatype to the document type in question and all seems fine.
The problem I have is that I am not entirely sure what the best way is or how to actually pull a random testimonial for a page based on the selected categories. Has anyone done anything similar to this using RAZOR scripts, or XSLT if that is easier?
uComponents Dropdown Checklist
Their is a need for my client to be able to assign categories to each testimonial on the site, then on the front-end for a particular page they can then choose from this list of testimonical categories and a random testimonial is then display based on this selection.
I have created a new datatype utilising the uComponents Dropdown Checklist and have successfully populated this with the relevant dropdown values. I have added this datatype to the document type in question and all seems fine.
The problem I have is that I am not entirely sure what the best way is or how to actually pull a random testimonial for a page based on the selected categories. Has anyone done anything similar to this using RAZOR scripts, or XSLT if that is easier?
is working on a reply...