Language constants - suggestion for new
Posted: Sat Nov 15, 2008 7:07 pm
Our current language files have constants for entry meta info.... for instance, meta info for an entry might be:
Posted by: john doe on date (or at time) in category1, category2, etc.
So the constants are {$CONST.POSTED_BY}, {$CONST.ON}, {$CONST.AT} and {$CONST.IN}.
The assumption is that the info always flows as author, date/time, categories.
But if you look at a template like bulletproof, where these pieces of information can be shown/hidden, or even split apart, you can see how limiting these current variables are... if I turn off the author, we lose the "Posted by"... so instead, we either we see just the word "in", or that is turned off as well.
What I am suggesting are a few new ones that a template designer can incorporate without the need to have the template itself define these variables:
Thoughts? Is it worth adding to the core?
Posted by: john doe on date (or at time) in category1, category2, etc.
So the constants are {$CONST.POSTED_BY}, {$CONST.ON}, {$CONST.AT} and {$CONST.IN}.
The assumption is that the info always flows as author, date/time, categories.
But if you look at a template like bulletproof, where these pieces of information can be shown/hidden, or even split apart, you can see how limiting these current variables are... if I turn off the author, we lose the "Posted by"... so instead, we either we see just the word "in", or that is turned off as well.
What I am suggesting are a few new ones that a template designer can incorporate without the need to have the template itself define these variables:
Code: Select all
@define('BY', 'By');
@define('POSTED_IN', 'Posted in');
@define('POSTED_ON', 'Posted on');
@define('POSTED_AT', 'Posted at');