Skip to main content
Commonmark migration
Source Link

So I 'm trying to override the articles.xml in my administrator folder. I figured out that I could create my own plugin and redirect it to another folder.
So here is what I did:

###Creating a custom plugin.php

Creating a custom plugin.php

<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.plugin.plugin');

class plgSystemmyPlugin extends JPlugin{
   
function onContentPrepareForm($form, $data) {
        jimport('joomla.form.form');
   JForm::addFormPath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_content/models/forms');
JForm::addFormPath(JPATH_ADMINISTRATOR.'/templates/isis/html/com_content/article');
    }
}
?>

and creating a xml file:

<?xml version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin" group="system">
    <name>Custom Plugin</name>
    <author>Joomla! Project</author>
    <creationDate>November 2005</creationDate>
    <copyright>Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.</copyright>
    <license>GNU General Public License version 2 or later; see LICENSE.txt</license>
    <authorEmail>[email protected]</authorEmail>
    <authorUrl>www.joomla.org</authorUrl>
    <version>3.1.0</version>
    <description>PLG_SEARCH_CATEGORIES_XML_DESCRIPTION</description>
    <files>
        <filename plugin="customplugin">customplugin.php</filename>
        <filename>index.html</filename>
    </files>

</extension>

I tried to install it, but it doesn't work. I have already my xml file in my administrator/templates/isis/html/com_content/article.xml

Can anyone please help me fix this? I don't know how to get it to work, so it reads my custom article.xml instead of the original one.

I have been looking in this thread, but I dont know how to get it to work, I think im doing something wrong. enter link description here

So I 'm trying to override the articles.xml in my administrator folder. I figured out that I could create my own plugin and redirect it to another folder.
So here is what I did:

###Creating a custom plugin.php

<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.plugin.plugin');

class plgSystemmyPlugin extends JPlugin{
   
function onContentPrepareForm($form, $data) {
        jimport('joomla.form.form');
   JForm::addFormPath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_content/models/forms');
JForm::addFormPath(JPATH_ADMINISTRATOR.'/templates/isis/html/com_content/article');
    }
}
?>

and creating a xml file:

<?xml version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin" group="system">
    <name>Custom Plugin</name>
    <author>Joomla! Project</author>
    <creationDate>November 2005</creationDate>
    <copyright>Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.</copyright>
    <license>GNU General Public License version 2 or later; see LICENSE.txt</license>
    <authorEmail>[email protected]</authorEmail>
    <authorUrl>www.joomla.org</authorUrl>
    <version>3.1.0</version>
    <description>PLG_SEARCH_CATEGORIES_XML_DESCRIPTION</description>
    <files>
        <filename plugin="customplugin">customplugin.php</filename>
        <filename>index.html</filename>
    </files>

</extension>

I tried to install it, but it doesn't work. I have already my xml file in my administrator/templates/isis/html/com_content/article.xml

Can anyone please help me fix this? I don't know how to get it to work, so it reads my custom article.xml instead of the original one.

I have been looking in this thread, but I dont know how to get it to work, I think im doing something wrong. enter link description here

So I 'm trying to override the articles.xml in my administrator folder. I figured out that I could create my own plugin and redirect it to another folder.
So here is what I did:

Creating a custom plugin.php

<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.plugin.plugin');

class plgSystemmyPlugin extends JPlugin{
   
function onContentPrepareForm($form, $data) {
        jimport('joomla.form.form');
   JForm::addFormPath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_content/models/forms');
JForm::addFormPath(JPATH_ADMINISTRATOR.'/templates/isis/html/com_content/article');
    }
}
?>

and creating a xml file:

<?xml version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin" group="system">
    <name>Custom Plugin</name>
    <author>Joomla! Project</author>
    <creationDate>November 2005</creationDate>
    <copyright>Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.</copyright>
    <license>GNU General Public License version 2 or later; see LICENSE.txt</license>
    <authorEmail>[email protected]</authorEmail>
    <authorUrl>www.joomla.org</authorUrl>
    <version>3.1.0</version>
    <description>PLG_SEARCH_CATEGORIES_XML_DESCRIPTION</description>
    <files>
        <filename plugin="customplugin">customplugin.php</filename>
        <filename>index.html</filename>
    </files>

</extension>

I tried to install it, but it doesn't work. I have already my xml file in my administrator/templates/isis/html/com_content/article.xml

Can anyone please help me fix this? I don't know how to get it to work, so it reads my custom article.xml instead of the original one.

I have been looking in this thread, but I dont know how to get it to work, I think im doing something wrong. enter link description here

added 17 characters in body; edited title
Source Link
FFrewin
  • 19.8k
  • 10
  • 48
  • 101

overriding Overriding a .xml file in administrator

so imSo I 'm trying to override the articles.xml in my administrator folder. iI figured out that iI could create my own plugin and redirect it to another folder. so
So here is what iI did:

creating###Creating a customplugincustom plugin.php

<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.plugin.plugin');

class plgSystemmyPlugin extends JPlugin{
   
function onContentPrepareForm($form, $data) {
        jimport('joomla.form.form');
   JForm::addFormPath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_content/models/forms');
JForm::addFormPath(JPATH_ADMINISTRATOR.'/templates/isis/html/com_content/article');
    }
}
?>

and creating a xml file:

and creating a xml file:

<?xml version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin" group="system">
    <name>Custom Plugin</name>
    <author>Joomla! Project</author>
    <creationDate>November 2005</creationDate>
    <copyright>Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.</copyright>
    <license>GNU General Public License version 2 or later; see LICENSE.txt</license>
    <authorEmail>[email protected]</authorEmail>
    <authorUrl>www.joomla.org</authorUrl>
    <version>3.1.0</version>
    <description>PLG_SEARCH_CATEGORIES_XML_DESCRIPTION</description>
    <files>
        <filename plugin="customplugin">customplugin.php</filename>
        <filename>index.html</filename>
    </files>

</extension>

iI tried to install it, but it doesn't work. I have already my xml file in my administrator/templates/isis/html/com_content/article.xml

Can anyone pleasplease help me fix this? i dontI don't know how to get it to work, so it reads my custom article.xml instead of the original one.

iI have been looking in this thread, but iI dont know how to get it to work, iI think im doing something wrong. enter link description here

overriding a .xml file in administrator

so im trying to override the articles.xml in my administrator folder. i figured out that i could create my own plugin and redirect it to another folder. so here is what i did:

creating a customplugin.php

<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.plugin.plugin');

class plgSystemmyPlugin extends JPlugin{
   
function onContentPrepareForm($form, $data) {
        jimport('joomla.form.form');
   JForm::addFormPath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_content/models/forms');
JForm::addFormPath(JPATH_ADMINISTRATOR.'/templates/isis/html/com_content/article');
    }
}
?>

and creating a xml file:

<?xml version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin" group="system">
    <name>Custom Plugin</name>
    <author>Joomla! Project</author>
    <creationDate>November 2005</creationDate>
    <copyright>Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.</copyright>
    <license>GNU General Public License version 2 or later; see LICENSE.txt</license>
    <authorEmail>[email protected]</authorEmail>
    <authorUrl>www.joomla.org</authorUrl>
    <version>3.1.0</version>
    <description>PLG_SEARCH_CATEGORIES_XML_DESCRIPTION</description>
    <files>
        <filename plugin="customplugin">customplugin.php</filename>
        <filename>index.html</filename>
    </files>

</extension>

i tried to install it, but it doesn't work. I have already my xml file in my administrator/templates/isis/html/com_content/article.xml

Can anyone pleas help me fix this? i dont know how to get it to work so it reads my custom article.xml instead of the original one.

i have been looking in this thread, but i dont know how to get it to work, i think im doing something wrong. enter link description here

Overriding a .xml file in administrator

So I 'm trying to override the articles.xml in my administrator folder. I figured out that I could create my own plugin and redirect it to another folder.
So here is what I did:

###Creating a custom plugin.php

<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.plugin.plugin');

class plgSystemmyPlugin extends JPlugin{
   
function onContentPrepareForm($form, $data) {
        jimport('joomla.form.form');
   JForm::addFormPath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_content/models/forms');
JForm::addFormPath(JPATH_ADMINISTRATOR.'/templates/isis/html/com_content/article');
    }
}
?>

and creating a xml file:

<?xml version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin" group="system">
    <name>Custom Plugin</name>
    <author>Joomla! Project</author>
    <creationDate>November 2005</creationDate>
    <copyright>Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.</copyright>
    <license>GNU General Public License version 2 or later; see LICENSE.txt</license>
    <authorEmail>[email protected]</authorEmail>
    <authorUrl>www.joomla.org</authorUrl>
    <version>3.1.0</version>
    <description>PLG_SEARCH_CATEGORIES_XML_DESCRIPTION</description>
    <files>
        <filename plugin="customplugin">customplugin.php</filename>
        <filename>index.html</filename>
    </files>

</extension>

I tried to install it, but it doesn't work. I have already my xml file in my administrator/templates/isis/html/com_content/article.xml

Can anyone please help me fix this? I don't know how to get it to work, so it reads my custom article.xml instead of the original one.

I have been looking in this thread, but I dont know how to get it to work, I think im doing something wrong. enter link description here

Source Link
Peter
  • 325
  • 2
  • 14

overriding a .xml file in administrator

so im trying to override the articles.xml in my administrator folder. i figured out that i could create my own plugin and redirect it to another folder. so here is what i did:

creating a customplugin.php

<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.plugin.plugin');

class plgSystemmyPlugin extends JPlugin{
   
function onContentPrepareForm($form, $data) {
        jimport('joomla.form.form');
   JForm::addFormPath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_content/models/forms');
JForm::addFormPath(JPATH_ADMINISTRATOR.'/templates/isis/html/com_content/article');
    }
}
?>

and creating a xml file:

<?xml version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin" group="system">
    <name>Custom Plugin</name>
    <author>Joomla! Project</author>
    <creationDate>November 2005</creationDate>
    <copyright>Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.</copyright>
    <license>GNU General Public License version 2 or later; see LICENSE.txt</license>
    <authorEmail>[email protected]</authorEmail>
    <authorUrl>www.joomla.org</authorUrl>
    <version>3.1.0</version>
    <description>PLG_SEARCH_CATEGORIES_XML_DESCRIPTION</description>
    <files>
        <filename plugin="customplugin">customplugin.php</filename>
        <filename>index.html</filename>
    </files>

</extension>

i tried to install it, but it doesn't work. I have already my xml file in my administrator/templates/isis/html/com_content/article.xml

Can anyone pleas help me fix this? i dont know how to get it to work so it reads my custom article.xml instead of the original one.

i have been looking in this thread, but i dont know how to get it to work, i think im doing something wrong. enter link description here