I am creating an AutoSlot that I want to pull in a specifc content type that has a text field (or check box property, not sure yet) e.g. the user checks the box and/or types in “Yes” and in turn the Autoslot populates the global template with a snippet template from that content type. This query:
select rx:sys_contentid, rx:sys_folderid from rx:erauGenRt where jcr:path like ‘//Sites/news/faculty-experts/’ and rx:fe = 'Yes'
Doesn’t seem to capture the correct content type utilizing that field? Am I missing something? Also, I would prefer it to be a check box (Yes or No type thing) would a similar query be used if say a Radio Button or Check box was used?
So I am assuing it is the way I have the query written that is cuainsg the problem based on the fact that it is grabbing the content type and the “yes” field in the debugger?
[QUOTE=Rileyw;19792]Ah,
try
[LEFT]select rx:sys_contentid, rx:sys_folderid from rx:erauGenRt where jcr:path like '//Sites/news/faculty-experts/' and rx:fe like 'Yes'
I have a side question, if are were to change that “yes” into a radio button e.g. check the box and the auto slot grabs the item how does that change the query below?
select rx:fe, jcr:path from rx:erauGenRt where rx:fe = 'Yes'
[QUOTE=mjweise;19796]I have a side question, if are were to change that “yes” into a radio button e.g. check the box and the auto slot grabs the item how does that change the query below?
select rx:fe, jcr:path from rx:erauGenRt where rx:fe = 'Yes'
[/QUOTE]
You shouldn’t have to change the query string to match a radio box since it should be storing the value as a string. I could be wrong though.
I know it is a huge help to me and I am makimg every attempt to follow up with the code/template and or solution that worked for me. Hopefully it will assist someone donw the road.
By the way, using a yes/no dropdown/radio button in place of the “Yes” on the content type did not work with that query. I’m still working through it.
Ok, that did it, thank you. Just to recap for anyone who cares. I am setting up a “faculty expert” to be listed in a global template. I used an Auto Slot that searches the site for a content type with this query:
select rx:fe, jcr:path from rx:erauGenRt where rx:fe = '1'
I then added a field to the content type called “rx:fe” with Radio Button choices of yes/no. The end user then can choose who they want listed in the global template by simply choosing the “yes” button in the content type.