Skip to main content
deleted 15 characters in body
Source Link
jonasfh
  • 738
  • 4
  • 17

It seems that fields are simply plugins of type fields. I simply copiedCopy the text folder from /plugins/fields, to a new folder, text2. I also changed and change the names of the files inside the text-folder to text2.php and text.xml, and /tmpl/text2.php. In text2.xml there is a reference to the plugin name, update this as well, like:

<files> <filename plugin="text2">text2.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> 

Now you are ready to use the discover - tool in the joomla administrator, to discover the new plugin. Go to yoursite/administrator/ and find the menu extensions/manage/discover. Click discover, the new plugin should be listed. Install the new plugin. Afterwards, find the new plugin in extensions/mangemanage, and enable it.

Now you should be able to add a new custom field for eg. an article, using your brand new, custom, self made field...

There is a lot of info about writing your own plugin, eg:

https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla

It seems that fields are simply plugins of type fields. I simply copied the text folder from /plugins/fields, to a new folder, text2. I also changed the names of the files inside the text-folder to text2.php and text.xml, and /tmpl/text2.php. In text2.xml there is a reference to the plugin name, update this as well, like:

<files> <filename plugin="text2">text2.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> 

Now you are ready to use the discover - tool in the joomla administrator, to discover the new plugin. Go to yoursite/administrator/ and find the menu extensions/manage/discover. Click discover, the new plugin should be listed. Install the new plugin. Afterwards, find the new plugin in extensions/mange, and enable it.

Now you should be able to add a new custom field for eg. an article, using your brand new, custom, self made field...

There is a lot of info about writing your own plugin, eg:

https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla

It seems that fields are simply plugins of type fields. Copy the text folder from /plugins/fields, to a new folder, text2 and change the names of the files inside the text-folder to text2.php and text.xml, and /tmpl/text2.php. In text2.xml there is a reference to the plugin name, update this as well, like:

<files> <filename plugin="text2">text2.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> 

Now you are ready to use the discover - tool in the joomla administrator, to discover the new plugin. Go to yoursite/administrator/ and find the menu extensions/manage/discover. Click discover, the new plugin should be listed. Install the new plugin. Afterwards, find the new plugin in extensions/manage, and enable it.

Now you should be able to add a new custom field for eg. an article, using your brand new, custom, self made field...

There is a lot of info about writing your own plugin, eg:

https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla

Source Link
jonasfh
  • 738
  • 4
  • 17

It seems that fields are simply plugins of type fields. I simply copied the text folder from /plugins/fields, to a new folder, text2. I also changed the names of the files inside the text-folder to text2.php and text.xml, and /tmpl/text2.php. In text2.xml there is a reference to the plugin name, update this as well, like:

<files> <filename plugin="text2">text2.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> 

Now you are ready to use the discover - tool in the joomla administrator, to discover the new plugin. Go to yoursite/administrator/ and find the menu extensions/manage/discover. Click discover, the new plugin should be listed. Install the new plugin. Afterwards, find the new plugin in extensions/mange, and enable it.

Now you should be able to add a new custom field for eg. an article, using your brand new, custom, self made field...

There is a lot of info about writing your own plugin, eg:

https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla