My link to the test site is:
http://nhat-kd.dk/alex.ch/komitee/
I hope that you can see what i mean with ccs single/specific partipant
You have a couple of approaches to take. First, you can sort the list by the surname, set that up in the plugins settings under the “list display settings” tab. If you want to sort on multiple fields, you need to do that in the shortcode, like this:
[pdb_list orderby="last_name,first_name,city" order="asc,asc,asc"]
If you want to show only the records where the surname begins with a specific letter, to can use a filter like this:
[pdb_list filter="last_name=a*"]
More detail on using the list shortcode filter here.
As to changing the style, yes you can do this, there is a “custom CSS” setting in the plugin where you can put your new rules. Take a look at the HTML, you’ll see how to target the elements and make your changes. The plugin doesn’t have settings for font sizes, colors, etc. that is left up to you to style as you wish.
Hi Xnau,
Thanks for the reply.
I did the list print just fine using this shortcode:
[pdb_list filter=”approved=yes” filter=”first_letter!”]
= the list only shows approved participants with a firstletter field.
But how can I target 1 single/specific participant so I can style it?
(All my firstletters A/B/C etc – i made by simple only writing in the A/B/C in lastname and leaving other fields blank)
I need to target the A/B/C etc so that i can give it another color, size etc.
I hope you understand me and can help me further…
http://nhat-kd.dk/alex.ch/komitee/
Thanks in advance
If I target: td.last_name-field
All last_name will be styled…
I only want to style specific participant like A/B/C etc π
To target a specific participant with a CSS rule, you will need to create a custom template so you can add a class to the elements that has information such as the ID of the record. Without that, there isn’t any way to make a CSS selector that targets a specific record.
Using Custom Templates
Also, when you add more than one filter to the list shortcode, you need to “chain” them, because there can be only one filter attribute in the shortcode. Take a look at documentation about using list shortcode filters where it explains how to chain filters together..
Hi Xanau,
Thanks for the reply.
Yeah, I have come across your advices regarding custom templates…
Now I just need to figure it out by myself π Im not very experienced with coding…
But I will try and learn
Thanks so much for a great plugin and for your time helping me!
Best regards,
Nhat
Hi Xanau,
It is more complicated than I thought it would be…
If you should implement my wishes, how much do you charge for that?
What i need further of your awsome plugin:
1) the ability to style specific partisipant
– or a custon template that would list all participants after First letter.
Eg. Ander Andersen should be listed under A
And the A should be different (bold; larger, or another color)
2) The listing shuld automatically show this:
FIRSTLETTER (of surname)
Name Surname, City
=
A
Anders Andersen, Andescity
…
…
D
Dennis Donaldson, Dennesville
E
Erik Eriksson, Eriksville
ETC
3)
Firstletter should only be shown if there are a participant connected to it.
I hope you understand me.
Best regards,
Nhat
Nhat, please contact me with your proposal at support@xnau.com