Welcome, Guest
Username: Password: Remember me

TOPIC: Configuration page for component

Configuration page for component 24 Oct 2012 19:23 #4725

  • dyvel
  • dyvel's Avatar
  • Offline
  • Elite Member
  • Posts: 200
  • Thank you received: 11
  • Karma: 10
Hi

I have the need to create a configuration page for my component, with some texts to use on submission page etc, like intro text, thank you text and the like.

I know there is a configuration button for the component, but I have no control over it in Cook. Is it possible to create some form of a configuration page with Cook, or it this something that would require "getting my hands dirty" ?

Thanks
The administrator has disabled public write access.

Re: Configuration page for component 24 Oct 2012 19:33 #4726

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Everything you want to be able to configure is in your component's admin/config.xml.

You're right, at present there is nothing in COOK to furnish your component with extended, customised configuration options except for those auto created by fields such as images for instance - i.e. the auto-creation of the image directory parameter.
  1. You should download your component
  2. edit your config.xml adding any additional config params you like.
  3. Test locally - any amendments made should now be reflected in your admin section of the component
  4. Repackage your extension with the new config


To help you, you will find a wealth of knowledge about how to this, adding tabbed 'pages' to separate your config, field types and options here on the joomla wiki page

Hope it's helpful,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
Last Edit: 24 Oct 2012 19:35 by JoomGuy. Reason: added info
The administrator has disabled public write access.
The following user(s) said Thank You: admin

Re: Configuration page for component 24 Oct 2012 20:11 #4727

  • dyvel
  • dyvel's Avatar
  • Offline
  • Elite Member
  • Posts: 200
  • Thank you received: 11
  • Karma: 10
If I go the config.xml route, will that allow me to select images ? And rich text with an editor ?
The administrator has disabled public write access.

Re: Configuration page for component 24 Oct 2012 20:29 #4728

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
I don't think the WYSIWYG editor is possible however, selects, radios, text etc are all possible for sure...

If you mean a predefined set of images, I suppose you could provide the paths to them as values in select options...
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: Configuration page for component 24 Oct 2012 21:02 #4729

  • dyvel
  • dyvel's Avatar
  • Offline
  • Elite Member
  • Posts: 200
  • Thank you received: 11
  • Karma: 10
Seems possible if you look at docs.joomla.org/Editor_form_field_type and docs.joomla.org/Standard_form_field_types

Will try that route...

EDIT: I can confirm that the editor works just fine - great :-)
Last Edit: 24 Oct 2012 21:21 by dyvel.
The administrator has disabled public write access.
The following user(s) said Thank You: admin, edwardcox, JoomGuy
Time to create page: 0.108 seconds

Get Started