best practice to update the Front end

  • rodolphe aoustin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 11 months ago #111655 by rodolphe aoustin
best practice to update the Front end was created by rodolphe aoustin
Hi,
I have bought this module very recently, and i'm surprised by the quality, even the documentation is awesome!

i'm looking at best practice to do some basic updates (I guess I know options to do the below outside of the module, but I don't want to re-invent the wheel):
1) I added a new menu item "Full calendar". When I select that menu I can see my calendar with my events. How to add a text before the calendar to say something like " Please click on an event to book"? ideally HTML based so I can have a nice rendering.
Events have a "description" field where I can easily add any information that wiull be displayed before the event for the user, but not that calendar view, no "description" attribute :-(
2) i don't want the title to be displayed. It says "Event calendar". i didn't find a parameter to hide it. I could use css but is there another prefered approach?
3) When I add a new menu item and select "categories - default layout", it shows a list of categories, but it displays the number of events beside the category name, I don't want the latter to be displayed (I use recurring events, so for me it's useless, it's more 1 event that happens every week, no need to display " My awesome category (52 events)" If I configure the events to be recurrent during 1 year).

thanks,
Rod

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

  • Tuan Pham Ngoc
  • Online
  • Administrator
  • Administrator
More
7 years 11 months ago #111673 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic best practice to update the Front end
Hi Rob

1. Go to Events Booking -> Emails & Messages, there is a parameter called Introtext, enter the text you want to display there and it will work as expected

2. At the moment, we don't have a parameter to allow turning it off. So Yes, please hide it using css. The other approach is make small modification to the code to remove it. The file is components/com_eventbooking/view/fullcalendar/tmpl/default.php, one the modification is done, please move it to PATH_TO_TEMPLATE/html/com_eventbooking/fullcalendar folder so that the change won't be lost when you update to future releases of the extension

3. Go to Events Booking -> Configuration, look at Themes tab, there is a setting called Show Number of Events, set it to No

Regards,

Tuan

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

  • rodolphe aoustin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 11 months ago #111812 by rodolphe aoustin
Replied by rodolphe aoustin on topic best practice to update the Front end
thanks for your answer!

Rod

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

  • Tuan Pham Ngoc
  • Online
  • Administrator
  • Administrator
More
7 years 11 months ago #111850 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic best practice to update the Front end
OK Rod. Please continue setting up the extension. If you have other questions or need help, please don't hesitate to ask

Regards,

Tuan

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

  • rodolphe aoustin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 11 months ago - 7 years 11 months ago #111898 by rodolphe aoustin
Replied by rodolphe aoustin on topic best practice to update the Front end
Hi,

I wanted the fullcalendar to have smaller height, I found this parameter to do what I need:
calendarOptions [ 'contentHeight' ] = 'auto';
that I put in:
\components\com_eventbooking\view\fullcalendar\tmpl\default.php

is there a way to provide such fullcalendar options from the backend so I don't have to udpate php?

thanks,
Rod
Last edit: 7 years 11 months ago by rodolphe aoustin.

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

  • Tuan Pham Ngoc
  • Online
  • Administrator
  • Administrator
More
7 years 11 months ago #111911 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic best practice to update the Front end
Hi Rod

There are so many options and we could not make them all configurable. So please implement that changes to the layout yourself

You can move the modified file to PATH_TO_TEMPLATE/html/com_eventbooking/fullcalendar folder so that the change won't be lost when you update to future releases of the extension

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc