Passer la navigation

[Résolu] make list view sort column

This support ticket is created Il y a 3 years, 7 months. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Fuseau horaire du supporter : Asia/Hong_Kong (GMT+08:00)

Ce sujet contient 12 réponses, a 3 voix.

Dernière mise à jour par Luo Yang Il y a 3 years, 7 months.

Assisté par: Luo Yang.

Auteur
Publications
#2491471

Hi there,

I created a list view archive and want to know if I can have a sort header colmn like the below example.

my site
lien caché
example site
lien caché

Thanks

#2492005

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+01:00)

Screenshot 2022-11-08 at 11.14.39.png

Hi there

There is an option to output the results in a table format (screenshot), but there is no support for outputting the table with sortable column headers I'm afraid.

#2492175
2022-11-08_9-51-33.png

Im getting the following error when I try to create a view on archive page
see image

#2492511
view2.jpg

Hello,

For the new issue: Im getting the following error when I try to create a view on archive page

As the message mentioned in your screenshot, you can not setup the nested view block in Archive loop.

But it is possible with classic view, for example:
1) Follow our document to enable legacy editor
https://toolset.com/course-lesson/enabling-legacy-version-of-toolset-views/

2) Dashboard-> Toolset -> Views, create the child post view manually

3) In your screenshot
https://toolset.com/wp-content/uploads/2022/11/2492175-2022_11_08_9_51_33.png
WordPress Archive loop, add a view block-> Use existing View, choose the post view of step 2), see my screenshot view2.jpg

#2492931

There is no path
Dashboard-> Toolset -> Views

lien caché

#2492975

I activated legacy
still same issue
can you please check?

I even created a new page and tested on it.
Because I don't have the option table with header when doing archive page.
This is really confusing

lien caché
lien caché

#2492985

And I'm getting this message even though I have it on a test page

lien caché

lien caché

#2493269

First, there isn't "table with header" option in Toolset WordPress Archive(blocks editor or legacy editor).

My above answer is talking about your new issue: getting the following error when I try to create a view on archive page

You can setup the child post view with legacy editor, and display it in the Toolset WordPress Archive loop.

The message you mentioned in screenshot:
lien caché
It means you can not preview the child view block in the block's editor, but you can see the results in frontend.

Hope it is clear.

#2493745

I still dont understand what you mean.
Can you set it up for me on my site or as a demo?
maybe by seeing it I'll understand.
Not sure what child post you are talking about.

Thanks

#2493805

Ok I succeeded to set up the table.
lien caché

lien caché

Here's my new questions
1 - how do I remove the post title column?
2 - how do I activate the search fields for the view?
lien caché
3 - how do I style the search fields?

#2493809
#2493873

I was able to finally get the page going.
lien caché

How do I do the following
1 - design search like the one I did in archive loop (see image)
2 - align header titles (they look off a bit
3 - change read more text (maybe change it to a button)
4 - add sort

Here's my page URL
lien caché

Here are my settings
lien caché
lien caché
lien caché
lien caché
lien caché

Thanks in advance

Les nouveaux fils créés par Luo Yang et associés à celui-ci sont repris ci-dessous :

https://toolset.com/fr/forums/topic/heres-my-new-questions/

#2494155

According to our support policy, we prefer to one ticket one question.

For other new issues, please check the new thread here:
https://toolset.com/forums/topic/heres-my-new-questions/