Closed seebi closed 11 years ago
I've added some test data to esp and the site schema:
query something like
SELECT ?key ?value
WHERE
{
{
<%%resource%%> ?key ?value.
} UNION {
<%%resource%%> a ?class.
?class ?key ?value.
}
?key a site:TemplateOption .
}
inside templates, it should be accessible like
$c => $this->getTemplateOptions($optional Resource URI);
$c->isKeyEq('site-width', 'default')
$c->getKey('site-width)
or a similar easy to use (for template developers) interface. Maybe Zend config can be used here as backend?
please discuss the interface first ...
$options = $this->templateOptions();
$vlaue = $options->getValue('site-width', 'default');
templateOption is not enough :)