token system

Permalink
hi
is there any simple token system at the marketplace? my cleint wants to define some site-wide variables (like CONSTANT), then she want to use these tokens at the blocks, and block display value of token in the content.
e.g TEL = 12345
And then insert a content block like this:
[
Our company telephone number is TEL.
]

 
JohntheFish replied on at Permalink Reply
JohntheFish
There are several variations of content blocks that do that sort of thing. Or there is my Magic Data addon that does all that and much more.
elimo replied on at Permalink Reply
hello
as i checked Magic Data, it has not capability to define tokens at the dashboard. The capabilities are great, but it's beyond my client needs.
about other blocks, i searched the market place (token, sitewide variable) but could not find anything. can you suggest something?
thank you for answering.
eli
JohntheFish replied on at Permalink Reply
JohntheFish
I just connected up this thread with the PM's we exchanged last week. Sorry for not making that connection sooner.

The need for some site-wide constants mechanism was discussed on Totally Random last week (were you involved in that?) - more in the back chat text than the video itself. It could find its way into a future release of the core as site wide or package attributes.

In the mean time, the way I have addressed this in the past is to attach attributes to a hidden page or dummy user and read them wherever needed for display.

However, the idea of a dashboard interface to some site-wide constants seems so obviously useful that I am actively planning on adding it to Magic Data. It probably won't use attributes, just a simple list of text key/value pairs, though my thoughts on this are at an early stage, so could develop. If site-wide attributes appear in a later concrete core, I can then integrate that as well.

Before that, I also have a package of block templates that I will be submitting to the PRB in the next day or two. These integrate with the magic data symbol engine to make it simpler to use for those who just want to replace symbols within text in standard content blocks and a few other standard block types (as opposed to subverting the fundamental block parameters of any block).
shahroq replied on at Permalink Reply
shahroq
I recently released an add-on (Tokens) for the purpose of site-wide variables. It should be exactly you were looking for.
http://www.concrete5.org/marketplace/addons/tokens/...
JohntheFish replied on at Permalink Reply
JohntheFish
w.r.t my intention for Magic Data noted above, @shahroq's addon fills the role nicely and also integrates with Magic Data, so saving me any need to develop such functionality within Magic Data.