Editor form field type in XML

For Joomla! 2.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Note: All 1.6, 1.7 and 3.5 releases have reached end of life and should be updated to 3.x.

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Locked
keep
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Mon Oct 15, 2007 9:37 am

Editor form field type in XML

Post by keep » Wed Oct 08, 2014 2:01 pm

I want to write an own system plugin.
I defined some config fields in the xml file but there is some problem if I try to add an editor field. The editor floats outside the area.
You can check it on this screenshot
editorfield.jpg
I think I have to put a line break between the label and the editor. Or I need this editor under the plugin description like in mod_custom.
Can you help me to solve this problem please?
You do not have the required permissions to view the files attached to this post.

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4025
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: Editor form field type in XML

Post by itoctopus » Wed Oct 08, 2014 2:27 pm

The config popup page of an extension is usually to save some critical settings (usernames, passwords, paths, etc...). Have a text editor in there is maybe too much. I suggest you create a view in your extension (in the backend) to show and save the information in that text field.

If you want to invest a lot of time on having the text editor in the config popup, then I suggest you tinker with it in Google Chrome (play with the CSS settings, etc...) until it looks as you want it to look.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter

keep
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Mon Oct 15, 2007 9:37 am

Re: Editor form field type in XML

Post by keep » Wed Oct 08, 2014 2:37 pm

Thanky you for your reply but it isn't a component it's just a system plugin, there are no views, etc.
As far as I see there are no exceptions in com_plugins/plugin/tmpl/edit_options.php
There is only

Code: Select all

<?php echo $field->label; ?>
<?php echo $field->input; ?>
Maybe I can put some overrides in bluestork template's html folder

Code: Select all

<?php echo $field->label; ?>
<?php if($myConditions) { echo '<div style="clear:both" />'; }
<?php echo $field->input; ?>
Or something

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4025
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: Editor form field type in XML

Post by itoctopus » Wed Oct 08, 2014 2:41 pm

If you want to change the template, then it's probably better to create a copy of that template, name it to something like "mysite-template", assign it to your website, and the modify it.

The bluestork template is a core template and may be changed with a future version of Joomla.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter


Locked

Return to “Joomla! 2.5 Coding”