Hi
I’ve created a usage dropdown as I have multiple default templates. The user then only sees the template that I’ve give ACL permissions to depending on which community they are logged into. This all works fine apart from the fact that since i’ve added this control the following error appears in the console log file:
com.percussion.cms.PSCmsException: An error occurred while making an internal request in the CMS layer to location: "psx_cebsContentPage/bsContentPage". The text of the exception is: An exception occurred while processing the internal request handler call: [1] S1000: Incorrect syntax near the keyword 'and'. [2] S1000: Preparing the statement failed: Incorrect syntax near the keyword 'and'.
at com.percussion.cms.objectstore.server.PSServerItem.o00000(Unknown Source)
at com.percussion.cms.objectstore.server.PSServerItem.o00000(Unknown Source)
at com.percussion.cms.objectstore.server.PSServerItem.load(Unknown Source)
at com.percussion.cms.objectstore.server.PSServerItem.load(Unknown Source)
at com.percussion.cms.objectstore.server.PSServerItem.<init>(Unknown Source)
at com.percussion.cms.objectstore.server.PSServerItem.loadItem(Unknown Source)
at com.percussion.search.i.o00000(Unknown Source)
at com.percussion.search.i.o00000(Unknown Source)
at com.percussion.search.i.o00000(Unknown Source)
at com.percussion.search.i$1.run(Unknown Source)
Now I know why i’m getting the error as the search will not be logged into any community and :PSXUserContext/User/SessionObject/sys_community will not be known. But why is it effectly opening the content editor?
select DISTINCT psx_template.name, psx_template.label from psx_template
inner join psx_contenttype_template on psx_template.template_id = psx_contenttype_template.template_id
inner join psx_acls on psx_template.template_id = psx_acls.objectid
inner join psx_aclentries on psx_acls.id = psx_aclentries.aclid
inner join psx_aclentrypermissions on psx_aclentries.id = psx_aclentrypermissions.entryid
left join rxcommunity on psx_aclentries.name = rxcommunity.name
where psx_contenttype_template.contenttypeid = :PSXParam/sys_contenttypeid
and psx_template.publishwhen = 'n'
and psx_template.outputformat = 1
and ((rxcommunity.communityid = :PSXUserContext/User/SessionObject/sys_community and psx_aclentrypermissions.permission = 40)
or
(psx_aclentries.name = 'AnyCommunity' and psx_aclentrypermissions.permission = 40))
order by label
How do I get around this issue and only show templates in the content editor (similar to the default_variantid) that apply to certain communities?
The implementation is using Rhythmyx 6.5.2
Cheers
James