Adding a custom field in the backend + updates

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
MCKlaus
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Mar 22, 2014 8:40 pm

Adding a custom field in the backend + updates

Post by MCKlaus » Sat Mar 22, 2014 8:54 pm

Hi everybody,

I am new to Joomla and setting up my first page.
What I need(ed) is one field for my site, its value can be the same for the whole CMS (just like " page title "). My main question is how I can do that and still be able to update everything?

What I could do so far is adding the field by adapting the com_config components XML. For the frontend, i created a module that echos the entered value of this field. But I guess when theoretically the com_config is updated, the field will disappear in the backend.

Thanks for your help!

User avatar
ot2sen
Joomla! Master
Joomla! Master
Posts: 10385
Joined: Thu Aug 18, 2005 9:58 am
Location: Hillerød - Denmark
Contact:

Re: Adding a custom field in the backend + updates

Post by ot2sen » Sat Mar 22, 2014 9:41 pm

Hi MCKlaus,

Depending on where you are to add this field there are several options to make it happen.
Not quite sure what you are after, but here are some options:

Creating a custom form field type:
http://docs.joomla.org/Creating_a_custo ... field_type
Adding custom fields to the article component:
http://docs.joomla.org/Adding_custom_fi ... _component
The extension FieldsAttach:
http://extensions.joomla.org/extensions ... tion/18564
An article of how JoomlArt making great use of the built in core CCK like features:
http://www.joomlart.com/tutorials/jooml ... om-content
Ole Bang Ottosen
Dansk frivillig Joomla! support websted - joomla.dk
OpenTranslators Core Team opentranslators.org

MCKlaus
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Mar 22, 2014 8:40 pm

Re: Adding a custom field in the backend + updates

Post by MCKlaus » Mon Mar 24, 2014 2:11 pm

Hi ot2sen,

thanks a lot! FieldsAttach is exactly what I was looking for!

User avatar
ot2sen
Joomla! Master
Joomla! Master
Posts: 10385
Joined: Thu Aug 18, 2005 9:58 am
Location: Hillerød - Denmark
Contact:

Re: Adding a custom field in the backend + updates

Post by ot2sen » Wed Mar 26, 2014 7:13 pm

Good to hear MCKlaus :)

It sure is one of the easy ways to add custom fields to joomla.
Ole Bang Ottosen
Dansk frivillig Joomla! support websted - joomla.dk
OpenTranslators Core Team opentranslators.org


Locked

Return to “General Questions/New to Joomla! 3.x”