Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Extensible Markup Language (XML) is a flexible structured document format that defines human- and machine-readable encoding rules.
0
votes
Accepted
Can I use a single .xml file to install components, modules, plugins and media files?
As far as I know, <media> does not accept zip files in <filename>.
I think you best options will be to create a script.php and use the postinstall() function to:
Move the zip file to the media dire …
7
votes
Accepted
Best way to include CSS/JS files in my custom extension
Then add the following to your XML file:
<media folder="media" destination="mod_EXAMPLE">
<folder>css</folder>
<folder>js</folder>
</media>
Change mod_EXAMPLE to whatever your module is. …
1
vote
Accepted
'Menu Item' in Module's XML file
You can get the URL using the following:
$itemid = $params->get('menuitem1', 0);
$app = JFactory::getApplication();
$menu = $app->getMenu();
$link = $menu->getItem($itemid)->link;
echo JRoute::_($l …
4
votes
Accepted
Range form field type
When ever in doubt about Joomla's form fields, have a look at the following directory, where you will find each one.
libraries/joomla/form/fields
To get a range form field, you can use the follo …
2
votes
Accepted
How to not overwrite specific file when installing extension update
Thought I'd expand on my comment.
You're firstly going to need to add an install-uninstall-update script file to your component. Have a read of the Joomla Documentation on how to do this.
Once you h …
2
votes
Accepted
Pulling XML parameter to PHP file
So in your case, replace:
name="Character Limit"
with:
name="character_limit"
Note: Any XML parameter changes that are made when the plugin is installed, require you to "Save" once done. … Instead, use Jinput and an example can be seen here
And version="1.0.5" at the top of your XML should be the Joomla version, not your plugin version ;) …
11
votes
Accepted
How to conditionally show fields in module xml?
You can use Joomla's showon attribute in your field.
Here's an exmaple:
<field name="first" type="list" label="Select Something">
<option value="1">Option 1</option>
<option value="2">Optio …
1
vote
Accepted
Show article details from custom module
As far as I know, the SQL form field will always return the ID of an article.
So you can get the title, into text and intro image, you can use Joomla's Table class:
use Joomla\CMS\Table\Table;
$arr …