Change column title

  • Bwinda
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 8 months ago #31358 by Bwinda
Change column title was created by Bwinda
I have created an event for sailboats (among many others). My issue is, that in the front-end registrants list, i want to change the title of the second column (No.) - but only for THIS event. How can I do that? :unsure:

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

More
12 years 8 months ago #31398 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Change column title
Hi

If you want to change title of the column for this event only, you will have to customize code. Please send me the link to the page you are talking about so that I can guide you more details.

Regards,

Tuan

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

  • Bwinda
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 8 months ago #31413 by Bwinda
Replied by Bwinda on topic Re: Change column title
Sure - here it is:

www.thisted-sejlklub.dk/index.php/tilmelding

By the way - it is the 4th column title (Antal) that I would like to change for this event.

Thanks for your fast reply ;)

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

More
12 years 8 months ago #31452 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Change column title
Hi

I checked the page and didn't see the column you mentioned ? Could you please explain more details ?

Tuan

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

  • Bwinda
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 8 months ago #31625 by Bwinda
Replied by Bwinda on topic Re: Change column title
Hi,

Sorry for my late reply! You have to click the blue link (Deltagerliste) to see the frontend list of participants...

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

  • Bwinda
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 8 months ago #31627 by Bwinda
Replied by Bwinda on topic Re: Change column title

PLease see attached screen-dump ... :)

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

More
12 years 8 months ago #31703 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Change column title
I see it now. What's the ID of the event you want to change this column title ? And how you want to change it ? Please let me know so that I can guide you editing the code .

Regards,

Tuan

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

  • Bwinda
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 8 months ago #31798 by Bwinda
Replied by Bwinda on topic Re: Change column title
Hi tuan,

Its the event ID6 - and the column no 4 from left (Antal)... :)

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

More
12 years 8 months ago #31841 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Change column title
Hi

Please try to edit code follow my instructions below :

1. Open the file components/com_eventbooking/views/registrantlist/tmpl/default.php

2. Find the code below :
Code:
<?php echo JText::_('EB_REGISTRANTS'); ?>

3. Change it to :
Code:
<?php $eventId = JRequest::getInt('event_id'); if ($eventId == 6) { echo JText::_('The title you want for event with ID = 6'); } else { echo JText::_('EB_REGISTRANTS'); } ?>

Try that and let me know the result !

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc