× Feature Requests

Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.

[Closed] little problem in joomdle course module

4 years 3 months ago 3 years 6 months ago by Antonio Durán.
saman سامان
Posts: 251
More
Topic Author
[Closed] little problem in joomdle course module #1
hi...
why we can not use alternative layout in the Advanced tab of Joomdle course module?i want to create some other default.php and use that as layout of joomdle course module...now i create a copy of default.php and create other .php file and rename to default and etc...
most of standard joomla module have this option.please check it...
thank you

Please Log in or Create an account to join the conversation.

4 years 3 months ago
Antonio Durán
Posts: 7417
More
[Closed] little problem in joomdle course module #2
Hi Saman.

Thanks for the suggestion. I will move this to Feature Requests, and try to implement it for next release.

Please Log in or Create an account to join the conversation.

4 years 3 months ago
saman سامان
Posts: 251
More
Topic Author
[Closed] little problem in joomdle course module #3
when you do that, can you give me code for modify that?
because i create new module from your module and customize my module and i can not update easily,but if you get me the code for do that it is more easier from compare my module with your new module.
thank you...

Please Log in or Create an account to join the conversation.

4 years 3 months ago
Antonio Durán
Posts: 7417
More
[Closed] little problem in joomdle course module #4
Ok, if you want to add it you need to modify 2 files:
File: mod_joomdle_courses.xml
Add a new advanced section in params:
    <fieldset name="advanced">
        <field
            name="layout"
            type="modulelayout"
            label="JFIELD_ALT_LAYOUT_LABEL"
            description="JFIELD_ALT_MODULE_LAYOUT_DESC"
        />
    </fieldset>

File: mod_joomdle_courses.php
Change:
require(JModuleHelper::getLayoutPath('mod_joomdle_courses'));
by:
$layout           = $params->get('layout', 'default');
require(JModuleHelper::getLayoutPath('mod_joomdle_courses', $layout));

Please Log in or Create an account to join the conversation.

4 years 3 months ago
saman سامان
Posts: 251
More
Topic Author
[Closed] little problem in joomdle course module #5
when i use your .xml syntax, it's reset automatically after save module.
for example if i set "default 2" in dropdown layout field and click save and come back again,then it is not save and show me first .php file in the "tmpl" folder.

Please Log in or Create an account to join the conversation.

4 years 3 months ago
saman سامان
Posts: 251
More
Topic Author
[Closed] little problem in joomdle course module #6
I check that again and find the problem in that my syntax ...

Please Log in or Create an account to join the conversation.

4 years 3 months ago
Antonio Durán
Posts: 7417
More
[Closed] little problem in joomdle course module #7
Great. I was going to send the package, as I was guessing it was a problem with the params.

Please Log in or Create an account to join the conversation.