11

Use <fieldset name="basic"> instead of <fieldset name="options" label="My Parameters"> Then name of fieldset must be basic otherwise it will create a new tab.


8

You can do this with modules.php and modChrome: Go to your Module and set a title like this: First Title||Underline Title Then open this file joomlaroot/templates/youtemplate/html/modules.php Between the modChrome_xxxx function, put this code: $moduleTitle = explode("||", $module->title); echo "<h3>".$moduleTitle[0]."</h3>"; if(!empty($...


6

You can simply use the following: $componentParams= JComponentHelper::getParams('com_content'); var_dump($componentParams); This will provide an object like so: object(Joomla\Registry\Registry)[175] protected 'data' => object(stdClass)[503] public 'article_layout' => string '_:default' (length=9) public 'show_title' => string '...


6

I think the article is not up-to-date because update server is working properly with template. Here's the code I use in the templateDetails.xml <updateservers> <server type="extension" name="mytemplate" priority="1">http://www.domain.com/updates/template.xml</server> </updateservers> And this is the content of my http://www....


5

Look at https://gist.github.com/leFlea-snippets/4602845 PHP: Joomla - Get active template path // Get active template path from anywhere on Joomla: $app = JFactory::getApplication(); $path = JURI::base(true).'/templates/'.$app->getTemplate().'/';


4

Since a module is assigned on a specific item id, then it will be displayed, when this itemid exists in the url. You could create a specific menu item, probably hidden, for the display of the links, where you can assign only the modules you want to display. In such cases, it comes handy the Advanced Module Manager by NoNumbers, which gives you much more ...


4

You can create a custom rule for validation. For example your module name is mod_mymodule: Add addrulepath attribute to the fieldset in the .xml file: addrulepath="modules/mod_mymodule" This will be the path to the custom rule folder. Add validate attribute to the field with the name of the rule file: validate="testint" This will give us the file ...


4

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 following: <field name="range" type="range" default="1" label="Choose a number" description="" min="1" max="10" step="1" /&...


4

I'll go a little more in-depth with the repeatable form fields method. Firstly, I would use 1 repeatable form field for all names, another for all logos and so on. So here would be the form field for the company name: <field name="company_name" type="Repeatable" icon="list" label="Company Name" default='{"name":["Company 1", "...


3

I would like to preface this answer with the statement this is not the ideal solution for storing and retrieving a dynamic list of parameters. The "proper" way would be to use a custom table in your Joomla database. To answer your question, if you know the number of companies the way to utilize a loop to retrieve your params would be like so: $companies = ...


3

if you using joomla 3.2+ you can use repeatable field or if you are using 3.1 and older it's recommended to create your own field contains array of fields. so you end up with $params->get('company'); and this will be returning whole set for companies.


3

You are calling the colResizable jQuery plugin before the jQuery itself. It should be the other way round. Also, Joomla's admin should also already have jQuery loaded, but that uses jQuery v1.12.4. The two JQuerys could be causing conflicts. Couple of things to try: Open your console (F12) and reload the page - does it give any js error messages? View ...


2

case 'image': $result = '<img src="' . $field_value . '" />'; break; How about this for example?


2

I don't know if this is the correct way but it works for me. In the helper.php located in modules/mod_simplecalendar, add the following: $query->select('c.title AS category'); // Load the permissions functions $user = JFactory::getUser(); $user_levels = implode(',', array_unique($user->getAuthorisedViewLevels())); $params->get( 'count', '2' ); $...


2

We made this problem go away by updating Joomla to 2.5.24 (a painless point-release upgrade) and updating Document Seller to its 3.5 version, and the problem described above resolved itself exactly as @johanpw suggested.


2

Template style options are saved in #__template_styles.params. A Protostar's sample saved params: {"templateColor":"#696969","templateBackgroundColor":"#E3E3E3","logoFile":"","googleFont":"1","googleFontName":"Open+Sans","fluidContainer":"0"} So, I guess you will need a custom Field, that will run some update code to set your params of the current ...


2

The short answer is there's an "easier" way. The assumption being you need to provide a means for a user to upload a file as part of the core configuration of the module. Since there isn't a mechanism to override extension configuration layouts in back-end views, the best solution IMO is to use the media field instead for file uploads. This will open a ...


2

How about to change the $ sign with jQuery? So the code would be jQuery("#tableResizable").colResizable({ fixed:true, liveDrag:true, gripInnerHtml:"<div class='grip'></div>", draggingClass:"dragging" });


2

If you're talking about module definition file that holds module options you can't do much in the file using framework it-self. But you can do it in 3 other ways. In the UI by Java Script Just create custom field class that will include Java Script into document head that will perform a sample data fill on save/apply button click. Here is some short ...


2

The manifest (main xml) is the only file that doesn't need to be included in the manifest (ie itself). Other xml files need to be listed either as files or be in listed folders. One attribute in the manifest is the "method" which can be set to 'install' or 'upgrade' with install as default. If you attempt to reinstall your module over the top of your ...


2

I am losing you a little bit in your question. Saying move the Joomla module layout override option, do you mean to display that field within another tab? If so, what's the problem you are facing in placing it inside you other tab? Assuming we are talking about a custom module you developed, then simply, place the field's xml declaration in your other ...


2

The layout language key is built like this: $key = strtoupper($module . '_LAYOUT_' . $value); Where $module is the module name (including mod_ prefix) and $value is the layout name. Example string for mod_tags_popular module's layout strings: MOD_TAGS_POPULAR_LAYOUT_CLOUD="Cloud" MOD_TAGS_POPULAR_LAYOUT_DEFAULT="Default" The language key for module ...


2

By looking at updated xml file, I see only one issue that you haven't used <fields name="params"></fields> in config tag and hence your modparams object showing blank. Try below xml snippet for configs and check one more time the $module->params values. <config> <fields name="params"> <fieldset name="contact_form" label="...


2

Yes you can save the params of the module programmatically by taking the instance of the extension table 1: JTable update $table = JTable::getInstance('extension'); $table->load($moduleId); $table->bind(array('params' => $modparams)); Where $modparams is the params of updated params of the module in JSON format. But the better way to save a ...


2

Welcome to JSE. I'm not sure which documentation you've been referring to, however the Joomla Docs show you how to add parameters to your module: https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_Form_Fields So a basic example: mod_something.xml <config> <fields name="params"> <fieldset name="basic"> <field ...


1

Unfortunately you can not add custom fields to "Menu assignment" & "Module Permissions" tabs, because these are only for core features. You have three options: Module tab <fieldset name="basic"> Advanced tab <fieldset name="advanced"> Custom tab <fieldset name="custom_name"> Custom tab is what you currently have, you just need ...


1

I've tried doing some research on this of my own as I was interested to see what purpose it served. Looking through some Github issues, it has been noted that customContent is valid, however undocumented. I then however found this: https://github.com/joomla/schemas/blob/master/xsd/v3/module.xsd#L30 These are the the valid attributes and elements allowed ...


1

Ok just realised that the reason it's not working is because you're not passing the parameter values through the function. Try this: $key = $params->get('key'); $secret = $params->get('secret'); $domain = $params->get('domain'); $mediaid = $params->get('mediaid'); $expires = $params->get('expires'); function get_signed_player($key, $...


1

Yo have the ID of the category, so you can perform a database query to get the title, like so: Get the title from the ID: // Get the category parameter value // Define a default value of 0 $cat_id = $params->get('catOne', 0); // Get instance of database connection $db = JFactory::getDbo(); // Query the #__categories table in the database $query = $db-...


1

Unfortunately the repeatable field type is broken for any field that requires Javascript logic. Here is the relevant issue in Joomla https://github.com/joomla/joomla-cms/issues/6882


Only top voted, non community-wiki answers of a minimum length are eligible