Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

direct query ability?
Last Post 07/12/2013 12:20 PM by Peter Donker. 1 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
doug
New Member
New Member
Posts:6


--
07/10/2013 4:28 PM
is there a way to do a direct query such as
[query:SELECT [CategoryId] FROM {databaseOwner}{objectQualifier}DMX_Categories WHERE CategoryName='[category:name]']
where [category:name] is what is used on the CatLink.html

or can I create my own tag [MyQueryGetCat:[category:name]]
and place my code somewhere that could run this?

anyone point me in the right direction?

Doug
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
07/12/2013 12:20 PM
This is not possible, I'm afraid. Templating is relatively "dumb". In part because it needs to remain simple to use and in part because it should be possible to expose it for editing to regular admins. Having active code running would create a security hole. For more details about the philosophy behind this check out this blog post:

http://www.bring2mind.net...d-things-simple.aspx

Peter
You are not authorized to post a reply.