Hello,
I'm using the 'submit article' action, which works great. Now I'm trying to add the meta discription and keywords aswell, but there is no field for it and I can't find any example of it in the forum.
How can this be added?
I'm using the 'submit article' action, which works great. Now I'm trying to add the meta discription and keywords aswell, but there is no field for it and I can't find any example of it in the forum.
How can this be added?
Hi proso
Use a Custom Code action before the Submit Article action to set whatever other values you need:
Bob
,Use a Custom Code action before the Submit Article action to set whatever other values you need:
<?php
$form->data['metadesc'] = 'xxx';
$form->data['metadata'] = 'yyy';
?>
Bob
Thanks, I used
and that works great 😀 😀 ! But how can I assign a database field to the 'xxx' and 'yyy'?
(sorry for the noob question)
<?php
$form->data['metadesc'] = 'xxx';
$form->data['metakey'] = 'yyy';
?>
and that works great 😀 😀 ! But how can I assign a database field to the 'xxx' and 'yyy'?
(sorry for the noob question)
Hi proso,
Bob
<?php
$form->data['metadesc'] = $form->data['some_input_name'].', xxx, '.$form->data['another_input_name'];
?>
Bob
This topic is locked and no more replies can be posted.