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

  • saman سامان
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • samansamani2[at]yahoo.com
More
8 years 4 months ago - 7 years 7 months ago #1 by saman سامان
[Closed] little problem in joomdle course module was created by saman سامان
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
Last edit: 7 years 7 months ago by Antonio Durán.

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

More
8 years 4 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic little problem in joomdle course module
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.

  • saman سامان
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • samansamani2[at]yahoo.com
More
8 years 4 months ago #3 by saman سامان
Replied by saman سامان on topic little problem in joomdle course module
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.

More
8 years 4 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic little problem in joomdle course module
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:
Code:
<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:
Code:
require(JModuleHelper::getLayoutPath('mod_joomdle_courses'));
by:
Code:
$layout = $params->get('layout', 'default'); require(JModuleHelper::getLayoutPath('mod_joomdle_courses', $layout));

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

  • saman سامان
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • samansamani2[at]yahoo.com
More
8 years 4 months ago #5 by saman سامان
Replied by saman سامان on topic little problem in joomdle course module
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.

  • saman سامان
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • samansamani2[at]yahoo.com
More
8 years 4 months ago #6 by saman سامان
Replied by saman سامان on topic little problem in joomdle course module
I check that again and find the problem in that my syntax ...

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

More
8 years 4 months ago #7 by Antonio Durán
Replied by Antonio Durán on topic little problem in joomdle course module
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.