Check if node selected in Ultimate picker is published or exists
Hi All,
I have an Umbraco V4.0.3 website and I am using the Ultimate picker to get data from one node displayed on the page of another, the Ultimate picker is called "recruiter". This works great apart from when someone selects a node using the Ultimate picker that is unpublished or they delete a node that is currently selected from the Ultimate pick on another node. This causes an XSLT error on the page. Basically I want to be able to check that the node selected in the Ultimate picker is published and exists otherwise do not try and display the information from it. This is the XSLT I currently have and as you can see it currently checks whether something is selected for "recruiter" using the Ultimate picker and if not then don't display the details but this does not work if a "recruiter" is selected but that Recruiter page is unpublished or has been deleted:
Thanks Dan, I was wondering about something to check for the "No published item exist" text but I wasn't sure how to go about it, I'll give that a try on Monday and let you know if I have any problems, have a good weekend.
Check if node selected in Ultimate picker is published or exists
Hi All,
I have an Umbraco V4.0.3 website and I am using the Ultimate picker to get data from one node displayed on the page of another, the Ultimate picker is called "recruiter". This works great apart from when someone selects a node using the Ultimate picker that is unpublished or they delete a node that is currently selected from the Ultimate pick on another node. This causes an XSLT error on the page. Basically I want to be able to check that the node selected in the Ultimate picker is published and exists otherwise do not try and display the information from it. This is the XSLT I currently have and as you can see it currently checks whether something is selected for "recruiter" using the Ultimate picker and if not then don't display the details but this does not work if a "recruiter" is selected but that Recruiter page is unpublished or has been deleted:
Hi Again
I use this for the multiple content picker, it should work for the ultimate picker too
Dan
Thanks Dan, I was wondering about something to check for the "No published item exist" text but I wasn't sure how to go about it, I'll give that a try on Monday and let you know if I have any problems, have a good weekend.
Thanks again Dan, that has worked perfectly.
is working on a reply...