The AHA! moment - #__content no longer has the params column, so the following adjustments have to be made for the plugin to work with components/tables with attribs instead of params (which appears only to be #__content as of v3.2):
Change the fields name to "attribs"
Change the fieldset name to something unique (I used the plugin name)
Add a language ...
Every folder inside the following folder is a plugin for Tiny-MCE editor:
These buttons are coming from the editors XTD plugins. The defaults XTD buttons are article, pagebreak, readmore, image. But there are extensions that can install their own XTD buttons, e.g Joomla Works Simple Image Gallery Pro, or NoNumber Content Templater etc..
Check in the plugin manager for the Editor's plugin to see what's there.
But I think I ...
I think you will need onContentPrepareForm() for that, then you can load your fields in it. Here is a good tutorial how to make it.
To attach a js onclick event to the submit form, you will need to override form template and put your JS code inside.
Though the XML file and the rendered HTML both call them attributes, there is not a direct pass through of values. Hence, only some attributes make it to the HTML (and some extra attributes are added).
All of this is based on the class that you can see here: https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/fields/text.php#L163
So for ...
The required="required" is standard HTML5 validation, - the html5fallback.js is just a polyfill for those browsers that do not support html5 validations.
To answer your question add novalidate to your <form> markup:
This turns off html5 validation.
You are doing it completely wrong. Never make core changes to files/classes because there are big chances that you will lose everything on the next CMS update.
Instead use plugins. It is the best way to extend core functionality. What you need here is a simple profile plugin. Read the tutorial Creating a profile plugin.
And if you use a standard list field ...
Answering my own question... I should have spend some time in google before asking my question.
Joomla supports CSRF anti-spoofing and it is explained in How_to_add_CSRF_anti-spoofing_to_forms
Since I am using GET method I should use the below while forming the HRF
echo JRoute::_( 'index.php?option=com_example&controller=object1&task=...
If you don't need to use the username for something else (which might require coding that you're trying to avoid), I know that RSForms has global placeholders for data it automatically saves for the form. That includes username if the user was logged in.
RSForms Pro also has a set of global placeholders (see https://www.rsjoomla.com/support/documentation/...
Most probably your article editor (TinyMCE?) is cleaning up your code. This is expected behavior by default. Both <iframe> and <form> are among the tags that are removed automatically by TinyMCE. There are a couple of ways around this:
Use Sourcerer, a plugin that lets you add HTML (and other kinds of code) directly inside your articles. There's ...
To answer the actual question, this code will give you a listbox of UserIDs and Names. Retrieving all the extra data would then just be a SQL select statement
$myGroupID = 2; //Your User Group to list
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('a.id as value, a.name as text');
FoF has a handy _csrfProtection routine in the controller, with several ways to check the token:
JUtility::getToken() (for Joomla 2.5, removed from Joomla 3.x)
or, the _token field in any of the previous instances
The following classes can be added to your input field in order to control the size:
The size="45" parameter seems to be overridden by the CSS class .inputbox, forcing the width to ...
I have recently encounters an extension JxiForms which is pretty unique in its functionality.
You should give it a try if you need complete control over the form data.
It does not interfere in the form creation and handles form data processing when form is submitted.
With this extension you are totally free to place your form code, no additional script is ...
You should use a session to save the form data. In the CMS there is a special User State for this. Just before you return false you should save the current data into the user state:
// Save the form data in the session
JFactory::getApplication()->setUserState($this->option . '.edit.authorization.data', $postData);
$this->option here is the name of ...
Yes this is possible but is a major work around. Joomla has two required verification events. One in he browser and the other on the server just before saving of the form. The browser is the easy part to bridge, the server-side verification is more tricky.
I add an extra hidden field called "not_required" to my form and use this to send the fields not ...
The best place is your table class before storing data. For example below code in store function of table class.
public function store ($updateNulls = false)
if ($table->load(array('alias' => $this->alias, 'catid' => $this->catid)) && ($table->id != $this->id || $this->id == 0))
I have had similar issues in the past where scripts seem to be stripped regardless of the text filter settings.
Temporarily Disable Editor
As a temporary work around, you can temporarily set the Default Editor to "None" each time you edit the content.
This works but is not convenient especially when you or another administrator forgets to disable the ...
I think you want to use use getOptions(..) not getInput(...) with a JFormFieldList.
getInput returns the full <select /> input as a string. getOptions populates the select options with an array of <option /> strings.
The short answer is: you will need the assistance of a Joomla Programmer as it's highly improbable you'll find a plug-in that suits your requirements.
First of all, I think what you are looking for is properly called an 'adaptive survey' or 'adaptive questionnaire,' (not be confused with 'responsive/adaptive as pertaining to screen-size - so even Googling ...
Write user plugin which will have the below file structure
- Write plugin manifest code here you can refere below link for the same. https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla
plg_add_group.php : Write below php code in this file.
Briefly, these are your main options:
Write a custom user registration component
Write a User Plugin that will handle the usergroup of the registered users
Use 3rd party Form extensions which integrate with JUsers and create your custom form(s)
A few form extensions that work well for this use case:
RSForm pro with its JUser/Registration plugin,
Apparently, you need to use namespaces in your extension to override fields with the same type. This is because of the class lookup order:
Namespaces added using addfieldprefix attribute or
Joomla\CMS\Form\FormHelper::addFieldPrefix() in reverse order.
J-prefixed autoloaded classes.
J-prefixed classes in directories added ...
Why do you waste your time writing code for a contact form?
There are a lot of Joomla forms extensions available. Fabrik is such an example. You can create as many fields as you like. Visforms is another example.
No, all of your folders should be set to 755 and files should be set to 644.
With Joomla, the only file that should ever need to be different (optional) is your configuration.php file which can be set to 444
Yet another suggestion for an existing Extension...the work has already been done for you by 74 different developers at the JED Contact Forms section. They range from very simple to very complexed, and many are very highly rated.
If for some unbeknownst reason these don't meet your needs and you feel it necessary to build your own, I'd suggest Component ...
This is a list of the available Joomla events:
As I don't know what exactly you're trying to do you might just want to browse the list and see if anything sounds suitable to you. You could then just use the event handler in your plug in. If you need any explanation as to how to use these events just let me know