Fixed gh-748 so that tags are able to be added to the list admin view. Makes the adding of tags dynamic based on tag field in the view.

This commit is contained in:
Llewellyn committed 2021-05-19 17:44:14 +02:00
1 parent 0f00ff90ed
commit d5482d65cb
55 files changed
+64 -306

No files matched your search

-6
View File
@@ -92,12 +92,6 @@ class ###Component###Model###View### extends JModelAdmin
$registry->loadString($item->metadata);
$item->metadata = $registry->toArray();
}###METHOD_GET_ITEM###
if (!empty($item->id))
{
$item->tags = new JHelperTags;
$item->tags->getTagIds($item->id, 'com_###component###.###view###');
}
}###LINKEDVIEWGLOBAL###
return $item;
@@ -92,12 +92,6 @@ class ###Component###Model###View### extends JModelAdmin
$registry->loadString($item->metadata);
$item->metadata = $registry->toArray();
}###METHOD_GET_ITEM###
if (!empty($item->id))
{
$item->tags = new JHelperTags;
$item->tags->getTagIds($item->id, 'com_###component###.###view###');
}
}###LINKEDVIEWGLOBAL###
return $item;