By Justin on Friday, 10 October 2014
Posted in General Issues
Likes 0
Views 896
Votes 0
I'd like to include the data from the website link field in an event's header area. I'm not able to find the file that generates the event's details (I was hoping to re-use the code that generates the website link).

In another thread/discussion I saw that it's possible to add a field's data manually ( http://stackideas.com/forums/sidebar,-textbox,-logininfo,-points )

In my case, the event's website field ID # is 87.

Is that possible?

Thanks.
Hello Justin,

You'll probably need to add the custom codes into /components/com_easysocial/themes/wireframe/events/item.header.php to generate the respective custom field value.
·
Saturday, 11 October 2014 03:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark,

I've been tweaking that file for styling reasons and thought it would have been easy to add something like:

<?php echo $event->getFieldValue('website');?>


but I was mistaken. I wasn't sure if the Website field was considered more of a default field as compared to a custom one. As far as the "Details" section of an event (that shows title, description, map, etc), where would I find the file that generates that information?

Thanks again.
·
Saturday, 11 October 2014 04:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Justin,

I am really sorry for the delay of this reply as it is a weekend for us here. Hm, you should actually be able to use the same codes similarly like users but you just need to ensure that the "unique key" matches. As for the "Details" area, you can actually find it at /components/com_easysocial/themes/wireframe/events/item.php
·
Saturday, 11 October 2014 19:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

This is an edit to my previous request (that had code samples).

I checked the ...events/item.php but didn't see the code that generates the details information, like what gives the date and time the class of "es-field-box", or what generates the table's html. The reason I ask is that I'd like to add a few classes and also maybe remove the table all together and replace with divs.

Thanks
·
Saturday, 11 October 2014 21:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Just following up on this as I seem to be missing something when trying to add the event's website URL to the event header. The field's Unique Key is "URL" but nothing is showing when I add the following to item.header.php:

<?php echo $event->getFieldValue('URL');?>


Thanks
·
Monday, 13 October 2014 21:44
·
0 Likes
·
0 Votes
·
0 Comments
·
hello Justin,

I'm really sorry that delayed of this reply,
Unfortunately that was not possible to get custom field value display on event page header in current system, but we will fix this in next release version. By the way, thanks for testing for this.
·
Wednesday, 15 October 2014 17:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Justin,

Our developer already fix this in locally, I have patch this few file for you, can you try download my 2 attachment file and replace with
JoomlaFolder\administrator\components\com_easysocial\models\fields.php
JoomlaFolder\administrator\components\com_easysocial\includes\user\user.php
JoomlaFolder\administrator\components\com_easysocial\includes\cluster\cluster.php

So you can use this code in item.header.php page.

<?php echo $event->getFieldValue('UNIQUE FIELD ID');?>

hope this help.
·
Wednesday, 15 October 2014 18:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect! Thanks very much Arlex!
·
Wednesday, 15 October 2014 21:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Justin, glad that your issues are resolved now
·
Thursday, 16 October 2014 00:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post