I agree - A meta component (maybe together with a MetaHelper to allow
fallback/overwrite in the view layer) would be the cleanest approach here
Am Mittwoch, 13. März 2013 12:38:42 UTC+1 schrieb André Luis:
>
> I´ve done somthing similiar. I have a component wich sends the $keywords
> and $desc
I´ve done somthing similiar. I have a component wich sends the $keywords
and $description directly to the view, but it can be overrided at the
controller´s action... the component sends the values at initialize, so at
the controller if you override the variables in a action or in a callback
it
I have in my layout:
echo $this->Html->meta('keywords', $keywords);
echo $this->Html->meta('description',$description);
Where $keywords and $description get pulled from my settings table so admin
can edit those as they wish.
Now I have content pages which allow admin to add keywords / des