Module alternative layout

  • Russell Leigh
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 11 months 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 Member
  • Senior Member
More
3 years 11 months ago - 3 years 11 months 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: 3 years 11 months ago by Russell Leigh.

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

More
3 years 11 months 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
3 years 11 months 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.

  • Russell Leigh
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 10 months ago #134986 by Russell Leigh
Replied by Russell Leigh on topic Module alternative layout
Hi this wasn't added to the module and so the changes I made were overwritten. This is core joomla functionality and I don't see why you need to hard code the layout.

I've provided the correct code for you. Do you think you could just copy and paste it in to the module files?

Will this get added to a future release?

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

More
3 years 10 months ago #134987 by Mr. Dam
Replied by Mr. Dam on topic Module alternative layout
Hi Russell,
Sure, i will add it into next Joom Donation version
Thanks
Dam

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

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