+ $this]); ?>
items)) : ?>
@@ -121,8 +122,16 @@ $token = Session::getFormToken();
content_type === 'com_content') {
+ $debugUrl = Uri::root() . 'index.php?option=com_content&view=article&id=' . (int) $item->content_id;
+ } elseif ($item->content_type === 'menu') {
+ $debugUrl = Uri::root() . 'index.php?Itemid=' . (int) $item->content_id;
+ } elseif ($item->content_type === 'com_content.category') {
+ $debugUrl = Uri::root() . 'index.php?option=com_content&view=category&id=' . (int) $item->content_id;
+ } else {
+ $debugUrl = Uri::root();
+ }
?>
FB
LI
diff --git a/src/script.php b/src/script.php
index 0d173ba..3f76f33 100644
--- a/src/script.php
+++ b/src/script.php
@@ -74,6 +74,17 @@ class Pkg_MokoOGInstallerScript
$db->setQuery($query);
$db->execute();
+ // Enable the content plugin automatically
+ $query = $db->getQuery(true)
+ ->update($db->quoteName('#__extensions'))
+ ->set($db->quoteName('enabled') . ' = 1')
+ ->where($db->quoteName('type') . ' = ' . $db->quote('plugin'))
+ ->where($db->quoteName('folder') . ' = ' . $db->quote('content'))
+ ->where($db->quoteName('element') . ' = ' . $db->quote('mokoog'));
+
+ $db->setQuery($query);
+ $db->execute();
+
// Enable the webservices plugin automatically
$query = $db->getQuery(true)
->update($db->quoteName('#__extensions'))
--
2.52.0
|