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
and this
when i look in properties page, the tags atribut is set
but the data value not save
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 |
Position is correct, but I think there are problems with $p->cPath that probably is null. Please try with
i try harcode it, but still not sava to tags atribut when i see in sitemap
there is no error
edit :)
private function saveData($p) { $p->setAttribute('tags','save me'); ...
there is no error
edit :)
Just found your post here
http://www.concrete5.org/community/forums/customizing_c5/cannot-add...
Hope it works now
http://www.concrete5.org/community/forums/customizing_c5/cannot-add...
Hope it works now