Custom Module Template

  • Winston Baccus
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #84728 by Winston Baccus
Custom Module Template was created by Winston Baccus
How can I go about creating a custom layout for the module?

I want to convert the bootstrap code to v3 and not have to worry about it getting overwritten by upgrades.

I tried dropping a copy into my template/html folder, but that didn't work.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
8 years 9 months ago #84734 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom Module Template
Hi Winston

What module you are talking about? You should be able to move it to html folder of your site template, then performing the customization from there

However, Events Booking extension support bootstrap 3 already (go to Events Booking -> Configuration, find the config option Twitter Bootstrap version, set it to version 3) and EB will use twitter bootstrap version 3 css classes. You should not have to customize the code to use twitter bootstrap version 3

Tuan

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

  • Winston Baccus
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #84766 by Winston Baccus
Replied by Winston Baccus on topic Custom Module Template
Doh! Hadn't noticed that switch.

I still want to tweak the layouts though, but I can't get the Upcoming events module to see any of the other templates I create.

Here are the steps I took:
  1. Duplicated modules/mod_eb_events/tmpl/improved.php
  2. Renamed to custom.php
  3. Made changes to it

When I load up the module in Joomla Backend, it doesn't show my new template as an option.

Similarly, I also took the whole module folder and copied it into my template's HTML folder so that I have /templates/my_template/html/mod_eb_events/tmpl/custom.php

That's not working either. What am I missing?

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
8 years 9 months ago #84806 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom Module Template
I don't think it would work. However, put the file to /templates/my_template/html/mod_eb_events/improved.php and customized it from there and it should work well

(Note there will be no tmpl in the path of the override layout)

Tuan

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
8 years 9 months ago #84807 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom Module Template
For your information, Joomla allows us to create override for modules, views using template manager. Maybe you should try docs.joomla.org/J3.x:How_to_use_the_Temp...r#Creating_Overrides

Tuan

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

  • Winston Baccus
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #84852 by Winston Baccus
Replied by Winston Baccus on topic Custom Module Template
That's really helpful. I had no idea that was in there. Got it working now, thanks!

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
8 years 9 months ago #84866 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom Module Template
Great :)

Tuan

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

Moderators: Tuan Pham Ngoc