- Posts: 63
- Thank you received: 1
Module alternative layout
- Russell Leigh
- Topic Author
- Offline
- Senior Member
Less
More
4 years 7 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
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
Less
More
- Posts: 63
- Thank you received: 1
4 years 7 months ago - 4 years 7 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?
<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: 4 years 7 months ago by Russell Leigh.
Please Log in or Create an account to join the conversation.
- quantumgraphics
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
4 years 7 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.
- Mr. Dam
- Offline
- Administrator
Less
More
- Posts: 12818
- Thank you received: 1659
4 years 6 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
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Russell Leigh
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 63
- Thank you received: 1
4 years 6 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?
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.
- Mr. Dam
- Offline
- Administrator
Less
More
- Posts: 12818
- Thank you received: 1659
4 years 6 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
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. Dam, Dũng Nguyễn Việt
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.