Add an additional field for creating an article (Joomla)? - joomla

I would like to expand the standard component for creating a new article (com_content) in Joomla with an additional field.
I did an template override and added the field in the UI. But I do not know how I can add the value to the database. Which file do I have to change? Is this possible with an template override?

You should create a content plugin and catch onContentPrepareForm() event.
There is a step by step tutorial for that: Adding custom fields to the article component.
A more general tutorial for adding fields to core components could be found at: Adding custom fields to core components using a plugin.

Related

How to create custom content type in joomla

I am new in Joomla.I want to create custom content type, I already use K2, but I need custom content type.
I already search for this i'm not able to find any solution.
I get different extensions but, i need my own custom.
Should i create : component , module or plugin for this?
Please help me.
Thanks
As you have mentioned that you are using K2 component,You can create multiple custom templates on it and assign those template to that content.
Reference : http://getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

joomla add custom tab and custom fields to article

first i show image: http://www.upload.ee/image/4675395/Untitled.png , to understand my idea better
I am using joomla 2.5.14 and I want to add another menu option for Extra Fields (It would have 10 fields - ID, Picture URL, Video URL, etc).
The new menu would be saved as vod_items table. The menu would be added where are the Publishing Options, Configure Edit Screen, etc.
That option should be available in every article.
Is there a simple way to add that option to Joomla or is there any kind of a code or plugin to do that?
Kind regards,
Aimar.
You can create a custom plugin to add more custom fields on Article manager or any other core component of Joomla.
You can follow following link for creating a plugin for adding custom fields to Article manager.
Reference : Adding custom fields to core components using a plugin
Note : Don't edit the core component as all changes will be lost in future update of Joomla.

Render k2 article in a custom component

I'm beginner in joomla and I've written a custom component for joomla and I want link a K2 article to my content. In other words I want
In backend Go to in my component settings and choose the article from the k2 article's list.
In frontend when it's shows I must see My content + article
I use joomla 3.x.
Any suggestion how to do?
You can use Custom form field type to create a custom form field for K2 article list for you custom component. For more information you can refer this documentation :
Creating a custom form field type
Hope this information will be helpful for you.

How to specify a custom frontend_model inside Magento's admin interface

My question is essentially the same as this one:
Add a date picker to system.xml on custom module
I'd like to add a customer frontend_model to support a date picker in Magento's admin configuration.
When I try to follow the steps in the linked post, I get an empty screen. I can see in my system.log that "Mage/" is included at the front of the file-path. Normally this would imply an improper config.xml for the relevant module, but everything I've read on frontend_model doesn't have it registered in the config.
When adding a custom frontend_model, is it necessary to register the block in config.xml?
It is not necessary to register a custom front_end model. It is necessary to reference the model by the name provided for the module.

Sitefinity 4 Products module Example doesn't create custom widget template

We are trying to use the Sitefinity 4 Products module that comes as an example in their SDK as a foundation for a couple custom content types we are creating.
When we use Products module example, we can see it created 2 new entries under the widget template to create custom widget templates. However, when we try to create the template, it will not show up in the list of available widget templates.
What is missing that is preventing the widget template we are creating from showing up on the list for editing. The widget template we create doesn't show up under All Templates nor my Templates.
I encountered this issue before, it turned out that my templates were set with a Build Action of "Content" instead of "Embedded Resource".
hope this is helpful!
I received a response from Telerik, it is a bug in their system that the widget module does not pick up the area name from custom modules. This should be fixed in a future release of Sitefinity. In the mean time, you can update the record in the sf_presentation_data table to contain an area_name so it will show up as an option in the admin.

Resources