updating meta with code...
Permalink
Hi everyone!
I have a question:
I have a single page called "product" who's displaying of course products I manage thru my database ... But when the page is viewed, I'd like to replace the concrete5 meta description with my product meta description. Is there a way to do this in the view method of my controller?
The addHeader allows me to add a new meta description, but not to replace the existing one ...
Thank you very much for your help!
I have a question:
I have a single page called "product" who's displaying of course products I manage thru my database ... But when the page is viewed, I'd like to replace the concrete5 meta description with my product meta description. Is there a way to do this in the view method of my controller?
The addHeader allows me to add a new meta description, but not to replace the existing one ...
Thank you very much for your help!
I already tried, but it gives me an error:
Fatal error: Call to undefined method RechercheAppartementController::editingEnabled() in /elements/header_required.php on line 78
Fatal error: Call to undefined method RechercheAppartementController::editingEnabled() in /elements/header_required.php on line 78
Which release of C5 are you using? Works fine for me?
I'm using the 5.4.1 ! Maybe I do something wrong ?
That's what I'm on.
Try replacing loader call for the header_required element with this:
I know it's practically the same as Tonys, but still ...
Let me know if you get the same error, post your complete header code.
Try replacing loader call for the header_required element with this:
<?php Loader::element('header_required',array('pageDescription'=>"test")); ?>
I know it's practically the same as Tonys, but still ...
Let me know if you get the same error, post your complete header code.
http://www.concrete5.org/community/forums/usage/global-meta-tags/...