More fields visible in the overview

1 year 7 months ago #850
Topic Author
dynamic-duo webdesign/-publishing dynamic-duo webdesign/-publishing's Avatar
Posts: 6
More fields visible in the overview

Good day

I would like to have in the overview of the competition, in addition to the picture and the picture title my own field with the ID3 displayed
How do I realize this?

Thanks for your help



Guten Tag

Ich möchte in der Übersicht der competition zusätzlich zum Bild und dem Bildtitel das eigene Feld mit der ID3 angezeigt wird
Wie realisierre ich das?

Danke für die Hilfe

The topic has been locked.
1 year 7 months ago #851
Dmitry's Avatar
Posts: 534
More fields visible in the overview

Hello!

What is ID3?

Best regards,
Dmitry


Like our extensions and support?
Add your voice to the JED listing with a 100-score review: bit.ly/2ciJBqC
Thanks!
The topic has been locked.
1 year 7 months ago #852
Topic Author
dynamic-duo webdesign/-publishing dynamic-duo webdesign/-publishing's Avatar
Posts: 6
More fields visible in the overview

This is the ID of the self-created field


Attachments:
The topic has been locked.
1 year 7 months ago #853
Dmitry's Avatar
Posts: 534
More fields visible in the overview

You can select this field in Layout Options of competition:
www.norrnext.com/docs/norrcompetition/co...ition-layout-options

See Listing Options -> Participant's Field – the field that value will be displayed under the title of participant.

Best regards,
Dmitry


Like our extensions and support?
Add your voice to the JED listing with a 100-score review: bit.ly/2ciJBqC
Thanks!
The topic has been locked.
1 year 7 months ago #854
Topic Author
dynamic-duo webdesign/-publishing dynamic-duo webdesign/-publishing's Avatar
Posts: 6
More fields visible in the overview

I would like to display a self-created field. Not the default fields like Title Description and Vote
see picture attached

Attachments:
The topic has been locked.
1 year 7 months ago #855
Dmitry's Avatar
Posts: 534
More fields visible in the overview

This Fields are for participants. So you should use the setting I wrote above.
Listing Options -> Participant's Field and select there your field.


Like our extensions and support?
Add your voice to the JED listing with a 100-score review: bit.ly/2ciJBqC
Thanks!
The topic has been locked.
1 year 7 months ago #856
Topic Author
dynamic-duo webdesign/-publishing dynamic-duo webdesign/-publishing's Avatar
Posts: 6
More fields visible in the overview

I know that these fields are for the partipants. But I would also like to see this field in the overview.



I would like to know how I can display this field in the overview. Where is this file and how the SQL is called.

Attachments:
The topic has been locked.
1 year 7 months ago #857
Dmitry's Avatar
Posts: 534
More fields visible in the overview

Ah, I think I got it now. You want to display the title of ID3 field in the overview. Correct? Not under participant, but in competition overview?


Like our extensions and support?
Add your voice to the JED listing with a 100-score review: bit.ly/2ciJBqC
Thanks!
Last edit: 1 year 7 months ago by Dmitry.
The topic has been locked.
1 year 7 months ago #858
Topic Author
dynamic-duo webdesign/-publishing dynamic-duo webdesign/-publishing's Avatar
Posts: 6
More fields visible in the overview

Yes I want to display the content of the ID3 field in the overview and also the titel and content under participant :-)
Field 3 contains a URL to another web page. This URL should be clickable

The topic has been locked.
1 year 7 months ago #859
Dmitry's Avatar
Posts: 534
More fields visible in the overview

Yes I want to display the content of the ID3 field in the overview

But overview is ONE, but content (value) is different for every participant...

Anyway here is what you can do.

1. Add your field to Competition object params.
You should create a plugin and then use onCompetitionDisplay event . Set your field to competition parameters there:
	public function onCompetitionDisplay($context, $item)
	{
		if ($context != 'com_competition.competition')
		{
			return;
		}

		$item->getParams()->set('test_field', 'This is my test field!');
	}

If course you will need SQL here to select needed information. That's just an example how to add info to competition.

2. Modify layout to render this field.
Make an override for competition.php and render your field there:
echo $params->get('test_field');

also the titel and content under participant

You can display the content under participant with the setting I told you earlier: Listing Options -> Participant's Field.
But it will not be clickable and without title (label). But you can make an override for _competition.items.php layout and modify this part of code:
<?php if (!empty($item->field_value)) : ?>
	<div class="nc-grid-participant-field nc-text-small nc-margin-small-top">
		<?php echo $this->escape(CompetitionHelperExtension::truncate($item->field_value, $fieldLength)); ?>
	</div>
<?php endif; ?>


Like our extensions and support?
Add your voice to the JED listing with a 100-score review: bit.ly/2ciJBqC
Thanks!
The topic has been locked.

You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+2). but not limited. Our staff will be pleased to provide Premium support to every paid subscriber asap, but sometimes you should be ready to wait for our reply for up to 3 days. In case of free extensions we do the best to develop and maintain them either, but their support is not necessary.

Product Latest Update