help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

How to add and change headers in SimpleList

How to add and change headers in SimpleList

7 years 7 months ago
#23819
Hi everyone

I am new in JEM, I would like to change the text of the headers of the simple list and add a new column "Venue website".
I will appreciate any help. (Please see the attached)


thanks in advance and kind regards

Attachments:

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

Re: How to add and change headers in SimpleList

7 years 7 months ago - 7 years 7 months ago
#23820
Create language overrides for
COM_JEM_TABLE_DATE
COM_JEM_TABLE_TITLE
COM_JEM_TABLE_LOCATION
COM_JEM_TABLE_CITY
COM_JEM_TABLE_STATE
COM_JEM_TABLE_CATEGORY


You find it in the default_events_table.php line 75 and further
Last edit: 7 years 7 months ago by hekla.
The following user(s) said Thank You: AngelPellejero

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

Re: How to add and change headers in SimpleList

7 years 7 months ago
#23826
Thank you for your help, but I wasn't able to get the data from the row website. Do you know what am I doing wrong?






Thank you very much and kind regards!

Attachments:

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

Re: How to add and change headers in SimpleList

7 years 7 months ago - 7 years 7 months ago
#23827
Thank you for your help, but I wasn't able to get the data from the row website. Do you know what am I doing wrong?



Result




Thank you very much and kind regards!

Attachments:

Last edit: 7 years 7 months ago by AngelPellejero.

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

Re: How to add and change headers in SimpleList

7 years 7 months ago
#23829
Are you shure the correct attribute name is "website" i think it should be something containing "venue".

If you mean with "website" the detail page of a venue, try that:
Code:
<?php echo "<a href='".JRoute::_(JemHelperRoute::getVenueRoute($row->venueslug))."'>".$this->escape($row->venue)."</a>"; ?>

If you mean the website you can insert while create a venue (link to another website), then try that:
Code:
<a href="<?php echo $row->venue->url; ?>" target="_blank"><?php echo $row->venue->urlclean; ?></a>

Both solutions are not tested!

greetings,
Egnarts
The following user(s) said Thank You: AngelPellejero

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

Re: How to add and change headers in SimpleList

7 years 7 months ago
#23846
Thank you Egnarts, your help was helpful.
Just in case, if someone is looking for make these changes, here is the solution to put a link to website

code in the file default_events_table:





Result:

Attachments:

The following user(s) said Thank You: jojo12

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

Time to create page: 0.677 seconds