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:
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.
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 ...
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=...
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');
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 ...
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
A few things occur to me:
Are you sure you're submitting to a "site" controller, and not an "admin" controller? The token for a site vs. admin form will be different, since the session is different.
Are you sure you're submitting via POST? If you are submitting via GET you need to check the token using JSession::checkToken('get')
Are you ...
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 ...
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 ...
Is it possible hat you submit your form with the "GET" method?
Because JSession::checkToken only validates against "POST" method, you have to use
JSession::checkToken('get') or die();
if you like to check the GET requests.
This is not the direct answer to your question, it is more for information and to give you some basic direction.
It seems that you do not have full understanding of how things work, and why you can't add html in the fields there.
The fields you are trying to add html, are not designed to accept html. Furthermore, even if they would allow some html, I am not ...
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