Attribute features: how and why?
The idea behind attributes is that while
displaying the content you can implement decisions in the templates what to do
with certain items. An example: if you find an image and the image has the
attribute "this is a header image" then include this in the template
at the top banner position. All attributes at this stage are flags with the
values yes or no.
To use Docmint mimicking the PHP.net
functionality, you don't need the attribute feature. To do anything else, you
might need it. When creating attributes, they are currently being numbered and
the template will check for these numbers. In the near future, the template
will decide based on what is called "command", a string with no
spacing, explaining in short what this means, e.g. "bannerimage" or
"makeavailablefordownload".
You can decide on the attributes and use
them in the template as it pleases you. This is a feature in Docmint that could
use some developer input. So feel free to submit ideas.
add a note
User Contributed Notes
Attribute features: how and why?
There are no user contributed notes for this page.