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!

 
olsgreen replied on at Permalink Reply
olsgreen
barney42 replied on at Permalink Reply
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
olsgreen replied on at Permalink Reply
olsgreen
Which release of C5 are you using? Works fine for me?
barney42 replied on at Permalink Reply
I'm using the 5.4.1 ! Maybe I do something wrong ?
olsgreen replied on at Permalink Reply
olsgreen
That's what I'm on.

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.