Add tags atribut

Permalink Browser Info Environment
Hanicker, i'm back, now i'm try to add page tags atribut
this tags atribut add automatically with value $p->cPath, but still not work, please help me

i try this
//single_pages/dashboard/easy_news/view.php
$tags = $news->getAttribute('tags');


and this
//controller/dashboard/easy_news/controller.php
private function saveData($p) {
$p->setAttribute('tags',  $p->cPath);
$blocks = $p->getBlocks('Main');


when i look in properties page, the tags atribut is set
but the data value not save

Type: Discussion
Status: New
fastcrash
View Replies: View Best Answer
hanicker replied on at Permalink Reply
hanicker
Position is correct, but I think there are problems with $p->cPath that probably is null. Please try with
$p->getCollectionPath();
fastcrash replied on at Permalink Reply
fastcrash
i try harcode it, but still not sava to tags atribut when i see in sitemap
private function saveData($p) {
    $p->setAttribute('tags','save me');
    ...


there is no error


edit :)
hanicker replied on at Permalink Best Answer Reply
hanicker

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.