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 $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 will override... > > Em terça-feira, 12 de março de 2013 22h21min32s UTC-3, advantage+ escreveu: >> >> 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 / description >> specific to that page and need a way to override the original set values >> for each / if not fall back to original values from SiteSettings and cannot >> seem to figure out the best way to go about this. >> >> >> >> Ideas? Suggestion? >> >> >> >> Thanks, >> >> Dave >> > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.