Module alternative layout

  • Russell Leigh
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
More
2 weeks 1 day ago #134411 by Russell Leigh
Module alternative layout was created by Russell Leigh
docs.joomla.org/J3.x:Layout_Overrides_in..._Alternative_Layouts

Why is there no option for alternative layouts?

I have created an alternative layout for mod_jdonation but the module doesn't seem to support the core joomla functionality for alternative layouts

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

  • Russell Leigh
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
More
2 weeks 1 day ago - 2 weeks 1 day ago #134412 by Russell Leigh
Replied by Russell Leigh on topic Module alternative layout
To fix this issue, I've added the following to the mod_jdonation.xml file.

<fieldset name="advanced">
<field
name="layout"
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
/>
</fieldset>

And the last line of mod_jdonation.php changed to

require JModuleHelper::getLayoutPath('mod_jdonation', $params->get('layout', 'default'));

Can you perhaps put it in your next update please?

Not sure why you're so insistent on hard coding these things and not following joomla standards?
Last edit: 2 weeks 1 day ago by Russell Leigh.

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

More
1 week 3 days ago #134548 by quantumgraphics
Replied by quantumgraphics on topic Module alternative layout
Will this get added to the module? If not I have to do it all with css. Please let me know.

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

More
1 week 2 days ago #134562 by Mr. Dam
Replied by Mr. Dam on topic Module alternative layout
OK, i will add it into core of mod_jdonation.
Thanks
Dam

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

Moderators: Mr. DamDũng Nguyễn Việt