New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the Community Exchange, where community members ask and answer questions about DNN. To get started, just start typing your question below and either select one of the suggested questions or ask a new question of your own.

What is the syntax for a Token Database Query

Return to previous page

Question:

Ben Westbrook 9 years ago

I have a custom module that allows administrators to create their own tokens that are then used to display their values via an HTML module.

The tokens are being created properly and are being written to the database into a table installed with the custom module - dbo.IMUK_TokenRates_Tokens. 

I know that it is possible for a Database Query to be used as the data source in the token syntax, but I do not know what form this should take.

Can anyone tell me how I get the datasource section of my token to access the right table so I can pick up the token value?

[datasource:token]

[database query:token]

What is the syntax for a Token Database Query

Ben Westbrook
Ben Westbrook 9 years ago
Add an Answer

Answers

Sign In to Participate
Or register to become a member