- Posts: 31
- Thank you received: 0
Custom fields in Timeline layout and Upcoming events module
- Davide
- Topic Author
- Offline
- Junior Member
Less
More
4 years 8 months ago #133029
by Davide
Custom fields in Timeline layout and Upcoming events module was created by Davide
Hi Tuan I would like to dislpay in the module "Upcoming Events" and "Timeline" layout custom fileds I have created. I know that I should override the files, but can you help me with the code? is it possible?
I think It's easy but I don't have php code experience.
Thank you very much
I think It's easy but I don't have php code experience.
Thank you very much
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
4 years 8 months ago #133039
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom fields in Timeline layout and Upcoming events module
Hi Davide
You will have to write the code yourself. I can only give you instructions, where and how you want to display the fields, you will have to implement it yourself. Let's work with upcoming events timeline layout first
1. Open the file components/com_eventbooking/themes/default/common/events_timeline.php
2. You can use this code to display the custom fields you want
Please replace field_speaker with name of the custom field you want to display custom field value. You can do the same for any other custom fields which you created
Tuan
You will have to write the code yourself. I can only give you instructions, where and how you want to display the fields, you will have to implement it yourself. Let's work with upcoming events timeline layout first
1. Open the file components/com_eventbooking/themes/default/common/events_timeline.php
2. You can use this code to display the custom fields you want
Code:
<?php echo $event->field_speaker; ?>
Please replace field_speaker with name of the custom field you want to display custom field value. You can do the same for any other custom fields which you created
Tuan
Please Log in or Create an account to join the conversation.
- Davide
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 0
4 years 8 months ago #133040
by Davide
Replied by Davide on topic Custom fields in Timeline layout and Upcoming events module
Thank you Tuan concerning the events_timeline I was able to modify the code successfully
I'm not able to modify the Horizontal layout concerning the upcoming events module.
Maybe there is something wrong were I place the following code:
Thank for your support
I'm not able to modify the Horizontal layout concerning the upcoming events module.
Maybe there is something wrong were I place the following code:
Code:
<div>
<strong><i class="uk-icon-small uk-icon-heartbeat"></i> DIFFICOLTA': </STRONG><?php echo $event->field_difficolta; ?><br />
<strong><i class="uk-icon-small uk-icon-area-chart"></i> DISLIVELLO: </STRONG><?php echo $event->field_dislivello; ?>
</div>
Thank for your support
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
4 years 8 months ago #133052
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom fields in Timeline layout and Upcoming events module
Hello
It's because the module does not include event custom fields in the output yet. I modified some code to support that
Please update your site to this updated package of the module, then try again. It should work well
Regards,
Tuan
It's because the module does not include event custom fields in the output yet. I modified some code to support that
Please update your site to this updated package of the module, then try again. It should work well
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Davide
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 0
4 years 8 months ago #133056
by Davide
Replied by Davide on topic Custom fields in Timeline layout and Upcoming events module
Thank you very much Tuan very helpful
This will be also in the next package update?
thank you again for your precious support
have a nice day
This will be also in the next package update?
thank you again for your precious support
have a nice day
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
4 years 8 months ago #133057
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom fields in Timeline layout and Upcoming events module
Yes Davide. It was added to update package on server already (together with other code cleanup/improvements). No new version releases for these small changes yet, of course
Tuan
Tuan
Please Log in or Create an account to join the conversation.
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.