Skip to main content

Questions tagged [xml]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

Is it possible to dynamically set fields on subforms

If I have a subform with the following xml structure <?xml version="1.0" encoding="utf-8"?> <form> <fieldset name="advkontentuser" > ...
James Wadsworth's user avatar
0 votes
2 answers
88 views

Create Custom Form via SimpleXMLElement

I need to create a custom form which generates an input / text field foreach position that is stored in the database. My Code for this field so far: private function buildSubForm(array $positions) ...
Marco's user avatar
  • 685
2 votes
1 answer
32 views

Custom Module not on the JED how to show compatibility information?

We developed multiple extensions for our clients, but none of them are published on the JED. We also do not want to publish to the JED since they are custom extensions. All our extensions always show ...
purple11111's user avatar
1 vote
2 answers
73 views

Params field value for extension in database is inconsistant when using subform & default values, it returns either a string or an object, how to fix?

I'm trying to write a plugin that needs to use the same subform twice, and I want to set different default values for these two subforms. The config part of my XML file looks like this: <config> ...
Marleen's user avatar
  • 111
0 votes
2 answers
116 views

Get the form fields as defined in the form xml file

I have a set of fields that have been defined in an xml file and then I load the fields with $form->loadFile('myFormName'). Before displaying the fields I would like to manipulate the fields based ...
James Wadsworth's user avatar
0 votes
1 answer
241 views

How to add separators / dividers in Joomla 4 Custom Components (Sub-)Menu?

There are these nice loking seperators / dividers in the core content component's menu: I've tried already to add the following in my XML without success: <menu class="divider">sep&...
Marco's user avatar
  • 685
0 votes
2 answers
118 views

Custom layout for plugin options

I'm looking to display my system plugin options in a custom layout. So i checked something like options for article blog layout: But these use a custom layout that renders the options with a form-...
maidan's user avatar
  • 443
2 votes
0 answers
72 views

Subform default values escaped when installing/discovering plugin first time

I made a small plugin, which uses a repeatable subform param element. It doesn't really matter what the plugin does: <config> <fields name="params"> <fieldset name=...
maidan's user avatar
  • 443
1 vote
1 answer
24 views

Super slow editing mask because repeatable custom field is in subform and calls API many times

I have some options to configure a plugin of mine. These options contain one subform field, that can be repeated. The purpose of the field is to match names of one type to ones of another type. The ...
maidan's user avatar
  • 443
1 vote
0 answers
48 views

Joomla 4 not unzipping custom component update package

I have developed a custom Joomla 4 component called "com_news" and successfully implemented the update functionality before. However, now I am encountering an issue where Joomla can't unzip ...
DeesreX's user avatar
  • 87
1 vote
1 answer
30 views

Display only one Category and its sub-categories

I have created a custom filter.xml to search for specific documents. Using Joomla's category system, I have also create 3 main categories. Courtrolls, Newsletter and communique. In my filter form, I ...
DeesreX's user avatar
  • 87
2 votes
1 answer
98 views

use file or filename in XML

What tags do I correctly use in the XML file to install an extension to add a file? filename or file? In example code (https://codeberg.org/astrid/j4examplecode/src/branch/tutorial/src/plugins/content/...
agi's user avatar
  • 313
2 votes
1 answer
23 views

Can the package XML be accessed from the preflight method?

In the package installation script, preflight method, is there a way to access the package's XML? If so, how?
mbrampton's user avatar
  • 314
0 votes
1 answer
48 views

Joomla field logic control plug-in

Is there a plugin in joomla that controls the display or hiding of another field based on the specified field similar to the XML showon attribute, or similar to the conditional logic in the WordPress ...
user avatar
0 votes
1 answer
139 views

How do I create parameters in a Joomla module depending on another parameter / number?

I'm trying to create a Joomla module for typical CSS cards, but I want to make the number of cards dependent on a number input from the user. For example the user wants 5 cards so in the parameter ...
Jonathan Schmidt's user avatar
1 vote
1 answer
539 views

Dynamically add option to Jform field

I need to conditionally add an option to an existing form field in my custom component. The form is defined in models/forms/myview.xml like: <form> <fieldset> ... <...
Marcel's user avatar
  • 35
2 votes
1 answer
179 views

HTMLHelper call a custom class in a module

In the xml file for a module, I call a custom field class: <config> <fields name="params"> <fieldset name="basic" addfieldprefix="Myextension\Name\...
user3533235's user avatar
0 votes
1 answer
317 views

Joomla 4, Error: Class '...\Component\...\Administrator\Model\SimpleXMLElement' not found

Please tell me what the problem may be. I adapt the component for Joomla 4. I get this error, although everything should work. Class '....\Component\....\Administrator\Model\SimpleXMLElement' not ...
MaXX's user avatar
  • 181
1 vote
1 answer
28 views

php exclusion in a joomla plugin of the xml sitemap page created by OSMAP

I have trouble uploading OSMAP sitemaps to google because of a plugin I am using. That plugin called autoanchor menu creates a menu based on titles in an article. really usefull for long articles. ...
Stackexchangeuser's user avatar
2 votes
1 answer
104 views

subform inside subform in module

I have the following XML in my module: <fieldset name="activities" label="Activity Details"> <field name="image" type="media" directory="...
RustyJoomla's user avatar
  • 2,078
0 votes
1 answer
131 views

Trying to add subform field to existing component xml

I've added the following into my components XML file : <field name="activity_name" type="subform" label="Activity" description="" multiple="true&...
RustyJoomla's user avatar
  • 2,078
0 votes
0 answers
36 views

How to get actual code of XML form

I'm working on accessibility. I found some issues while inspecting in Chrome browser but I'm not getting the actual code in VS for XML files.
Kumar Shivam's user avatar
1 vote
1 answer
140 views

How to enable or disable plugins from manifest file?

I have written a component and it installs fine except that the plugins are all installing as enabled. What I want to do is enable some and disable others. Here is what I have tried: <plugins ...
Scott Smith's user avatar
2 votes
2 answers
62 views

XML full stable Joomla package location?

What's the URL of the xml including latest full stable Joomla packages? I have found this one (https://update.joomla.org/core/sts/extension_sts.xml) but there's only updates packages. I need to get ...
A973C's user avatar
  • 23
1 vote
1 answer
92 views

Add customfields in the administration section of a module

Is there a way, to load with an XML element, the custom fields, from the Joomla component, com_fields in the backend of a module? I know how to take them from the default.php and display them, but I ...
leno1232's user avatar
3 votes
1 answer
149 views

Unable to get (site) template params from my module's backend

Someone at stackoverflow recommend I ask the question here, apologies if this is considered cross-posting... OVERVIEW I am developing a set of custom templates and a set of custom modules. The ...
Bold's user avatar
  • 123
1 vote
0 answers
89 views

Showon field attribute targeting field from a group to root

So this is an example XML: <form> <fieldset> <field name="field1" type="text" default="" label="" description=""> ...
Mike's user avatar
  • 351
1 vote
1 answer
431 views

Using form XML for custom filter and removing group definition

I'm creating a small component with a search module. I will dumb this example down so that the question will be clear. The component manages books. The book form XML looks like this and its structure ...
Mike's user avatar
  • 351
2 votes
1 answer
244 views

How to add default values to Joomla subform fields?

CMS Joomla has a standard subform field type. How to fill in the default values in it? Field code in XML: <field name="field-name" type="subform" formsource="exampleform....
Александр's user avatar
2 votes
1 answer
91 views

Cache works for html view but not for xml output

I'm currently debugging (and trying to understand why) the caching for the html view is created, but not for the xml view. I read the Joomla! documentation article https://docs.joomla.org/J3.x:...
svanschu's user avatar
  • 133
2 votes
1 answer
83 views

Show article details from custom module

I am trying to develop a custom module where I have options to select 4 different Joomla articles. In my module XML file, I have the following: <field name="articleOne" type="sql" label="...
RustyJoomla's user avatar
  • 2,078
0 votes
1 answer
42 views

Using a different id name for Joomla forms

I have a form in Joomla that uses XML: <form action="index.php?option=com_content&view=contents" method="post" id="adminForm" name="adminForm"> <?php $this->form->...
Thiago Guimarães's user avatar
0 votes
1 answer
180 views

How to override "Select an option" header for SQL and list fields

In my custom component, inside the forms, I have several list fields. Some are normal list fields, others are sql fields. All of these show "Select an option" as a header. I can't find the way to ...
TVBZ's user avatar
  • 213
0 votes
1 answer
72 views

How to use 'showon' with global settings in menu item parameter?

In a custom component I have some component params (config.xml) and I have some menu item params (default.xml). Inside the component params I make use of the showon attribute many times. But to keep ...
TVBZ's user avatar
  • 213
0 votes
1 answer
210 views

Add text and link to fieldset in config.xml

In my custom component, I have some component configs in the standard config.xml file. There are multiple fieldsets (tabs), each one has its own description. I would like to add a line of text below ...
TVBZ's user avatar
  • 213
3 votes
3 answers
390 views

Dynamically removing single JForm option

I'm working on a small component and depending on $someoption I need to remove a certain option from the JForm. So for example if $someoption == 1 then I need to remove this option <option value="1"...
Mike's user avatar
  • 351
2 votes
0 answers
20 views

Deleting obsolete menu types

While programming a Joomla extension, I experimented with Menu Types, however while editing/deleting/adding types in the default.xml it doesn't delete the previous ones. So while I only have 1 menu ...
A.Vink's user avatar
  • 21
3 votes
1 answer
69 views

Creating a multidimensional JForm field dynamicaly

Item Model protected function preprocessForm(JForm $form, $data, $group = 'examplegroup') { foreach ($data as $i => $item) { $field = new \SimpleXMLElement('<field />'); $...
Mike's user avatar
  • 351
0 votes
1 answer
691 views

Joomla 404 component not found (custom component)

I am trying to create a custom component in my Joomla backend, so I created this xml file: <?xml version="1.0" encoding="utf-8"?> <extension type="component" version="3.8.1" method="upgrade"&...
twan's user avatar
  • 129
3 votes
2 answers
311 views

Crawling Joomla websites without parsing website's html

Nowadays many crawlers are using the REST Api features of most CMSs, to be able to crawl websites fast. WordPress and Drupal have their own REST interfaces so indexing any WordPress website is a ...
MM PP's user avatar
  • 133
3 votes
1 answer
394 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 ...
Znort's user avatar
  • 33
0 votes
1 answer
241 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\...
Mike's user avatar
  • 351
0 votes
1 answer
76 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" >
Uziel Almeida Oliveira's user avatar
1 vote
0 answers
136 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 ...
user101289's user avatar
  • 1,119
0 votes
2 answers
86 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/ ...
phil_c64's user avatar
1 vote
2 answers
284 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::...
Eoin's user avatar
  • 1,976
1 vote
1 answer
983 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: ...
Joe Völker's user avatar
1 vote
0 answers
648 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 ...
Barend's user avatar
  • 23
-1 votes
1 answer
457 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.
Amirali Panjwani's user avatar
1 vote
2 answers
1k 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 ...
user1967509's user avatar