Custom field on the registrantlist

  • shuotila
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 3 months ago #13875 by shuotila
Custom field on the registrantlist was created by shuotila
Hi!

Thanks for a really great piece of extension! I'm going to use this for our hockey teams registration for events (trainings, games and stuff). Works like wonder! There is just one problem where I'd like to ask some help...

I would like to have one custom field (a radiolist selection) displayed on the registrantlist. For this purpose, I decided to create a new method in the class JCField (fields.php). This method is supposed to return the selected value ("Yes" / "No") as a string. My problem is, that somehow the $postedValue=JRequest... remains empty (''), and I can't figure out why. The variable $name seems to be ok ("eb_attending"). The main reason here is the lack of knowledge of PHP, but maybe you could give me a hint, where I go wrong... I'd appreciate really much!

Thanks a lot!
Greets,
Simo

function getSpecificRadioValue($fieldTitle) {
ob_start();
for ($i = 0 , $n = count($this->_fields) ; $i < $n ; $i++) {
$row = $this->_fields[$i];
$name = $row->name ;
$postedValue = JRequest::getVar($name, '', 'post') ;

if ($postedValue == '') return "perkele" ;

if ($row->title == $fieldTitle And $row->field_type == FIELD_TYPE_RADIOLIST) {
return $postedValue;
}
}
}

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

More
13 years 3 months ago #13890 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Custom field on the registrantlist
Hi shuotila

First, I am sorry but the code you WROTE is WRONG , but don't worry, I will help you :) .

Please let me know where you want to display this information ? In the Registrant List from front-end of back-end ?

Tuan

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

  • shuotila
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 3 months ago #13905 by shuotila
Replied by shuotila on topic Re: Custom field on the registrantlist
Hi!

Thanks for the quick reply!

I'd like to have this information in the list in the frontend, when a user clicks "view list". I'd insert this information simply as one column there. I have already managed to edit views/registrantlist/tmpl/default.php, to show the returned method value.

Thanks in advance!

Greets
shuotila

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

  • shuotila
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 2 months ago #14282 by shuotila
Replied by shuotila on topic Re: Custom field on the registrantlist
Hi Tuan,

Could you help me with this one? I'm eager to get my site online :)

Thanks in advance!

Greets,
shuotila

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

More
13 years 2 months ago #14290 by korgman
Replied by korgman on topic Re: Custom field on the registrantlist
One of my events has a custom field too that I would like to be able to show in the Registrants List on the front end (The green link View List located in the event detail table) There is only one event that has this field, so I'd like to be able to specify what fields are displayed in the Registants List when I'm creating events.

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

More
13 years 2 months ago #14292 by mathi@emathi.com
Replied by mathi@emathi.com on topic Re: Custom field on the registrantlist
Hi: I recently bought the EB component. Really easy and especially the custom field is very very helpful.

However, as indicated by another user, the custom fields could not used in areas like

<view list> registrant list
<registrants> registrant administration

Also, the custom fields and any other translation on fields are not properly exported to Unicode UTF-16 format..? I can see them okay on the webpage... But exported CSV has some issues.

Any assistance would be greatly appreciated.

Thank you for the component and it is really worth it ...

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

More
13 years 2 months ago #14293 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Custom field on the registrantlist
Hi ALL

I was thinking to guide shuotila to customize the extension to meet his own need. However, since this feature is asking by more and more customers, I will implement it in the core of the extension (so that you won't loose the features when upgrading). So in this case, please give me this week to add this feature. I will have it ready by the end of Friday this week .

Regards,

Tuan

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

  • shuotila
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 2 months ago #14310 by shuotila
Replied by shuotila on topic Re: Custom field on the registrantlist
Hi Tuan!

That's a great idea to put it in the core! Thank you very much! I'm looking forward to it.

Greets,
shuotila

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

More
13 years 2 months ago #14312 by korgman
Replied by korgman on topic Re: Custom field on the registrantlist
Tuan, appreciate it very much. This will make our event coordinator's job much easier. He does not have backend access to the Joomla site. Thanks for jumping on this so quick, it is appreciated and duly noted!

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

More
13 years 1 month ago #14675 by andysdp
Replied by andysdp on topic Re: Custom field on the registrantlist
Has this been implemented yet?

I would really like to be able to customise registrant lists displayed front end and backend.

Many thanks.

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

Moderators: Tuan Pham Ngoc