Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xml]

Extensible Markup Language (XML) is a flexible structured document format that defines human- and machine-readable encoding rules.

3
votes
1answer
64 views

How to use the showon attribute with multiple conditions?

In a Joomla 3.9.3 module, I'm trying, with no luck, to show/hide a field with showon by checking the values on other three fields My XML: <field name="foo" type="text" /> <field ...
0
votes
1answer
34 views

Using a custom field with different names

I want to use a flexible field name for a field across different forms thru my extension. My custom example field looks like this: defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\...
-1
votes
1answer
49 views

How to retrieve the default site template in my xml module?

I wish to add a formsource to a subform in my custom maded module. The example code: <field type="subform" formsource= "templates/DEFAULT_TEMPLATE/MY_MODULE/SUBFORM_NAME.xml" >
1
vote
0answers
41 views

Variables in XML form definition

I'm creating a form using the Joomla XML form definition, and I want to create a range of integer values a user can select from. The number/integer field is fine for this use-- but I need to allow the ...
0
votes
2answers
44 views

Joomla 3 XML Feed Via FTP

I am looking for some advice on the best way to pull down an xml file off an ftp address and display the content in an article or module. https://en-gb.wordpress.org/plugins/wp-expert-agent-xml-feed/ ...
1
vote
2answers
137 views

XML file does not upload with my custom module

I have created my own module. Within my module I have used the Joomla! subform which allows me to create repeatable fields using a separate XML file. If I look at my module I see an error: JForm::...
0
votes
1answer
391 views

How do I override an .xml file in a Joomla component? [duplicate]

I’d like to override some files (.php and .xml) in /components/com_users/models. Can this even be done? Or should I try and make a modified/renamed copy of com_users? What I am trying to do is: ...
1
vote
0answers
196 views

Failed loading XML Start tag expected '<' not found

I keep getting two messages on screen as soon as I enter my site "" or refresh a page after dismissing message and moving to a new tab, i.e from HOME to Subscribe. The site works 100%, the only ...
-1
votes
1answer
279 views

0 String could not be parsed as XML, joomla administrator is not working [closed]

0 String could not be parsed as XML, this error is displaying on my joomla administrator and it is not working.
2
votes
2answers
582 views

What is wrong with this XML Package Installation file? Joomla cant find XML on Package

I am following everything on: https://docs.joomla.org/Package And still got the error: JInstaller: :Install: Can't find Joomla XML setup file. The XML file has the correct name. The package zip ...
0
votes
1answer
1k views

Issues updating from Joomla 3.4.8 to 3.6.5

I seem to have a major problem in the back-end of my site, but I am stumped as to where to fix it. When I try to update my site from J3.4.8 to 3.6.5 with the Joomla!Update component, the screen ...
1
vote
1answer
163 views

XML form related fields

I need to make a form with dependent fields. I have already tried a lot of options, but have not found the right way. As in the picture below, I'm trying to load a new XML file when you select an ...
3
votes
1answer
413 views

How do I override a Joomla XML?

For example, we have a module called MOD_PR_SLIDER. Which has this file: public_html/modules/mod_pr_slider/mod_pr_service.xml I already copied that file in: public_html/templates/my_template/html/...
1
vote
0answers
399 views

Retrieving data from Joomla! Subform form field type

I'm trying to retrieving data from Joomla! Subform form field type, Here what I have: <fieldset name="item_lists" label="Item List"> <field name="ilist" type="subform" ...
1
vote
1answer
336 views

How to define Array in XML field - Joomla

I have try to define a array in media field name in joomla xml file.but it doesn't work. <field name="s1img[]" label="Image 1" type="media" directory="Images" /> <field name="...
0
votes
0answers
31 views

Some pages are randomly served as XML/feed and not as HTML

I'm having this random issue: In some pages (not always the same, and without a readable pattern), the pages are served as XML/feed and not as HTML. What I've found out is that the correct <meta ...
2
votes
2answers
155 views

Set module assignment at menu creation

I have a component which creates content pages for custom entities. I have an xml which allows to set those pages as menu items of that entity type. I have 1 module that I always want to display on ...
0
votes
1answer
138 views

Can I use a single .xml file to install components, modules, plugins and media files?

I'm trying to create a package of a range of components, modules, plugins, templates and media files which are standard for most website that I create. I was wondering if the .xml file can handle all ...
0
votes
1answer
493 views

How to get articles categories in config.xml - Categories / SQL form field type?

With this given category field I want to show the article categories. <field name="import_category" type="category"label="test" description="test" extension="com_test" /&...
5
votes
1answer
424 views

Pulling XML parameter to PHP file

I'm attempting to create my first plugin! However, I want the user to be able to define a number that's then used in specific parts of the plugin. This plugin consists only of an xml file and a php ...
0
votes
2answers
98 views

Do I need a custom field for a db field alias?

When viewing an individual record, I'm using a calculated field from a sql query to display as a read only field in my form. However I'm unable to get it to display (no error, just blank). Curious, do ...
3
votes
2answers
300 views

How to not overwrite specific file when installing extension update

I'm creating a template and here is my templateDetails.xml. <extension version="3.4" type="template" client="site" method="upgrade"> <name>my_tpl</name> <creationDate>...
3
votes
1answer
1k views

Populate multi select data into the custom list field of form inside user management

I am trying to populate multi selected data on to the user management form below the name field of the user. Here is what I have added inside the form, in order to display multi selected data from db....
0
votes
2answers
256 views

See error line instead of: “500 - String could not be parsed as XML”

I would like to see the script and line where the error occurred instead of "500 - String could not be parsed as XML". Is there any way to turn off joomla error reporting so I can just see standard ...
0
votes
1answer
3k views

How to make checkbox is checked by default

I'm trying to add checkbox to my template parameter and giving default="1" value to make it checked by default. <field name="fieldname" type="checkbox" label="fieldlabel" description="Desc of the ...
0
votes
1answer
42 views

2.5: trying to uninstall a component but got error - how to manually uninstall a component and other questions

I havn't touched this 2.5 site for a long time, now it needs to be upgraded to 3.4. In order for that I need to uninstall/upgrade extensions. When I try to uninstall one of them, I got this error as ...
1
vote
0answers
133 views

How to add more notes/text to the access.xml section of a joomla component?

I have very many actions in my sections of the access.xml file of my component. So that means a long list of permissions. I want to categorize them with some more surrounding text. Here is how it ...
1
vote
1answer
533 views

Maintaining Update XML for an extension

When rolling out an update for an extension, one must of course define the new version in the Update XML file located on the server, like so: <update> <name>JJ Shoutbox</name> &...
4
votes
1answer
683 views

Range form field type

I read here that there's a new range form field type since J! 3.2 that will provide a horizontal scroll bar to specify a value in a range. But when I opened the description page, there is no ...
1
vote
1answer
175 views

'Menu Item' in Module's XML file

In module development, I'm using a field for menu item (from these docs https://docs.joomla.org/Menuitem_form_field_type). I can work out to to show the menu item in the XML: <field name="...
0
votes
1answer
328 views

Joomla, Falang integrate component… Fatal error: Call to a member function getTable() on null

Hello I am having some issues for integrate a custom component of joomla in Falang for multilanguage website Debugging I got null: Fatal error: Call to a member function getTable() on null ...
6
votes
1answer
75 views

Components: What is the purpose of the option_on and option_off fields in models > forms > viewname.xml?

In a Joomla 3.x component, a parameter that's frequently listed in the MODELS > FORMS > VIEWNAME.XML file is option_on or option_off. For example; <field name="something_amazing" type="...
4
votes
3answers
4k views

How to write a loop in XML?

I have an XML file like <?xml version="1.0" encoding="UTF-8"?> <form> <field name="age" type="list" default="1" description="age" label="Age" size="...
0
votes
1answer
350 views

Cannot add custom XML attributes in field

'<field name="id_'.$filter_record['id'].'_hourfrom" type="integer" label="from" description="Delivery Hour Range" size="'.$filter_record['holdout'].'...
6
votes
1answer
676 views

Custom XML attributes not showing in HTML markup

Here is the XML for a particular form field: <field type="text" name="first-name" id="first-name" label="MOD_LABEL_FIRST_NAME" required="required" maxlength="27" color="yellow" /> My ...
3
votes
2answers
280 views

Module XML with SQL field (JFormFieldSQL) - Custom Form Field - Check if table exists

My module uses the sql field (JFormFieldSQL) for a few simple queries in the database for a 3rd party component. My concern is that if the tables are missing, opening the module in the admin will "...
7
votes
2answers
1k views

Get Value of Repeatable Field from Joomla XML manifest

repeatable - How to get values from this field type ? I am coding a Free module with a repeatable field. <field name="star_slides" type="Repeatable" icon="list" description="" label="Edit Your ...
4
votes
1answer
535 views

How to output a grouped list with multiple items selected in Joomla?

In my .xml file I created the following grouped list: <field name="mylistvalue" type="groupedlist" default="" label="Select an option" description="" multiple="true"> <group label="Color">...
6
votes
4answers
1k views

How do you specify to show only certain editors-xtd buttons on the editor form field type?

I am creating a custom component and in my form I am using the editor form field type. Here is the documentation: https://docs.joomla.org/Editor_form_field_type It seems that no matter what value I ...
3
votes
1answer
2k views

Creating custom field type multiselect list - how to save the values?

I want to make a module that parses the manufacturers from virtuemart, and the user will select which manufacturers he wants to be shown in the index page. Its the first time I try to create a custom ...
4
votes
2answers
618 views

Trying to save multiple field in Plugin

I can add a multiple select field to my plugin's xml file, like this for countries but when I save it, it only saves the value "array" in the parameters. I would like to save it as a comma separated ...
2
votes
1answer
1k views

Joomla Editor Form Field in content plugin - How to load editor-xtd?

On Joomla 3.2.3, I added some custom fields to core components using a plugin (like this). It's working fine but I'd like to add the editor-xtd buttons to the customs editors added. So my question is ...
7
votes
2answers
2k views

How to insert “php code” inside the .xml manifest file of a Joomla module?

I want at the fieldset of a joomla module to echo an option with some fetched results from my db: <config> <fields name="params"> <fieldset name="basic"> <field> <?php $db ...
5
votes
1answer
366 views

Joomla XML form fields in content

Joomla includes many built-in filds that can be used in the XML manifest file (Available fields in Joomla XML manifest), but is it possible to use them to build forms for the visitors, in a module or ...
4
votes
2answers
436 views

Where can I find list of the available Joomla-WYSIWYG-Editor buttons etc

I'm currently developing a component and I'm using a form. I'd like to give the user a limited access to the functionality of the editor. According to http://docs.joomla.org/Editor_form_field_type I ...
5
votes
2answers
6k views

Available fields in Joomla XML manifest

When developing an extension, what are the form field types I can use in Joomla?
8
votes
2answers
6k views

Best way to include CSS/JS files in my custom extension

If I need to include CSS or JS files in my custom extensions, what would be the best and safest way to achieve this: Should I put them i a specific folder in my extension zip file? How should I ...
3
votes
1answer
247 views

Meaning of the “version” in any extension XML manifest file

I'm new to Joomla! extension development, and I'm a little confused about the manifest XML file. What's the correct way to use these three version tags at the beginning of the XML file? <?xml ...
0
votes
1answer
466 views

Upgrade Joomla 1.7.3 to 2.5.0 failed

I need to migrate my joomla 1.7.3 site to joomla 3. So, I first upgraded it to joomla 1.7.4 and 1.7.5 successfully. In the next step I am going to upgrade it to 2.5.0. So I downloaded the update ...
6
votes
2answers
1k views

What to use , simplexml_load_file or JForm::getInstance or?

I need to get field attribute value from templateDetails xml . This is the field and I need the styles attribute <field name="get_styles" type="yjsglist" default="blue|007ebd" styles="blue==007ebd|...