- Posts: 31
- Thank you received: 1
Layouts customization
- Mike
- Topic Author
- Offline
- Junior Member
-
1) If I need to display the author of the event in timeline and event details layouts - is it possible to use any of pre-defined variables? Or I'll need to get it directly from SQL data?
2) Is it possible to show custom fields in the top of the event description (It means, not to show them in a table, but to use them in the header near the date and time information)? For example, if I need to display week days for continuous events.
Please Log in or Create an account to join the conversation.
- Mike
- Topic Author
- Offline
- Junior Member
-
- Posts: 31
- Thank you received: 1
4) Is it possible to show the city from the event venue location?
5) Is it possible to use the city from the event venue location, as the filter in the search form?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
For all of these items, you will need to edit the code yourself. Look at the file components/com_eventbooking/view/event/tmpl/default.php
For the google map widget (item #3), you can try to find and publish the plugin "Eventbooking - Map plugin". That plugin will show the map of the location below the event description
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Mike
- Topic Author
- Offline
- Junior Member
-
- Posts: 31
- Thank you received: 1
This is exactly what I'm trying to do, but I'm not so familiar with php, this is why I need some advice on this stageyou will need to edit the code yourself. Look at the file components/com_eventbooking/view/event/tmpl/default.php
For example, custom fields.
there's a code in a components/com_eventbooking/view/event/tmpl/default.php
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
You can use this code:
That should display the value of field_hours field for the event
Tuan
Please Log in or Create an account to join the conversation.
- Mike
- Topic Author
- Offline
- Junior Member
-
- Posts: 31
- Thank you received: 1
This code In my_template\com_eventbooking\event\default.php shows the Venue City
And how to get 'created_by' value of the event? Is there any similar command, that could be used for it?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
The location information is not available via $event object, so you will need to query the database for that information. Try this code and it should work:
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('*')
->from('#__eb_locations')
->where('id = '. $event->location_id);
$db->setQuery($query);
$rowLocation = $db->loadObject();
echo $rowLocation->city;
For created_by, not sure you want to get id of the user who created that event ? Or you want to get name of that user?
Tuan
Please Log in or Create an account to join the conversation.
- Mike
- Topic Author
- Offline
- Junior Member
-
- Posts: 31
- Thank you received: 1
Where are the default event image thumbnail's sizes defined? I mean reduced thumbnails of an event images - now it's only 120px width, but I need to increase it.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Mike
- Topic Author
- Offline
- Junior Member
-
- Posts: 31
- Thank you received: 1
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
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.