help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
showing custom fields on My Attendees
showing custom fields on My Attendees
7 years 11 months ago
Before the update to the latest version I have (with a lot of help) two custom fields to to My Attending overview.
I know that after every update I had to add these two columns , however this time I can't get is working.
Any idea what is different this time?
I have attached the default_attendances.php file.
I know that after every update I had to add these two columns , however this time I can't get is working.
Any idea what is different this time?
I have attached the default_attendances.php file.
Please Log in or Create an account to join the conversation.
Re: showing custom fields on My Attendees
7 years 11 months ago
Hi, I am quite sure, you should compare the 2 myattendances.php in the models:
If custom1 and custom2 isn't in the query, then it can't be shown in the views!
If custom1 and custom2 isn't in the query, then it can't be shown in the views!
Please Log in or Create an account to join the conversation.
Re: showing custom fields on My Attendees
7 years 11 months ago - 7 years 11 months ago
That didn't work.
I also copied the file from an old back-up and that files which works in the past isn't showing any data for the custom fields.
Any more suggestions?
I also copied the file from an old back-up and that files which works in the past isn't showing any data for the custom fields.
Any more suggestions?
Last edit: 7 years 11 months ago by ErikB.
Please Log in or Create an account to join the conversation.
Re: showing custom fields on My Attendees
7 years 11 months ago
I just show something about template overrides on this site, never heared about so learned something new
I made 2 overrides, one for eventslist and one for myattendances.
I added the some new lines to both files and eventslists shows the extra two columns including the data from the events, but myattendances show the two extra colums but without any data.
Can this help to find the cause?
I made 2 overrides, one for eventslist and one for myattendances.
I added the some new lines to both files and eventslists shows the extra two columns including the data from the events, but myattendances show the two extra colums but without any data.
Can this help to find the cause?
Please Log in or Create an account to join the conversation.
Re: showing custom fields on My Attendees
7 years 10 months ago
If there any one with some php knowledge who could help me , I would we thankfull.
I don't have php knoledge I just copy some lines
However I compared some files for different views and the MyAttendances is the only which shows - at every row and column for custom fields.
Could someone see something strange?
I don't have php knoledge I just copy some lines
However I compared some files for different views and the MyAttendances is the only which shows - at every row and column for custom fields.
Could someone see something strange?
Please Log in or Create an account to join the conversation.
Re: showing custom fields on My Attendees
7 years 10 months ago - 7 years 10 months ago
I wonder if it's due to that file.
- did you check the model page?
/com_jem/models/myattendances.php
>> check function: _buildQueryAttending
The thing is that the custom field is probably not taken into account with an update of JEM and in that case the data in the custom fields are not displayed. So do check if the custom fields are retrieved in the query of the model page.
there is this part
but you can try out
- did you check the model page?
/com_jem/models/myattendances.php
>> check function: _buildQueryAttending
The thing is that the custom field is probably not taken into account with an update of JEM and in that case the data in the custom fields are not displayed. So do check if the custom fields are retrieved in the query of the model page.
there is this part
Code:
$query = 'SELECT DISTINCT a.id AS eventid, a.dates, a.enddates, a.times, a.endtimes, a.title, a.created, a.locid, a.published, '
. ' a.recurrence_type, a.recurrence_first_id,'
but you can try out
Code:
$query = 'SELECT DISTINCT a.id AS eventid, a.custom1, a.custom2, a.dates, a.enddates, a.times, a.endtimes, a.title, a.created, a.locid, a.published, '
. ' a.recurrence_type, a.recurrence_first_id,'
Last edit: 7 years 10 months ago by Bluefox.
The following user(s) said Thank You: ErikB
Please Log in or Create an account to join the conversation.
Time to create page: 0.492 seconds