Passer la navigation

[Résolu] Create a gridview

This support ticket is created Il y a 3 years, 3 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 2 réponses, a 2 voix.

Dernière mise à jour par irynaL Il y a 3 years, 3 months.

Assisté par: Luo Yang.

Auteur
Publications
#2559689
ExcelCalculations.jpg

Dear Sirs,

I would like to create a custom post and view that will have the attached screenshot layout.

Please let me know what steps to follow. I have already created some other posts but they weren't like a gridview as this one.
Ideally will be to have a button to add extra lines too.

Thank you so much

#2560573

Hello,

It is possible with table layout. For example, see below test site:
Login URL: lien caché

1) Dashboard->Toolset-> Settings-> General:
lien caché
in section "Editing experience", enable option: Show both the legacy and Blocks interface and let me choose which to use for each item I build

2) Dashboard-> Toolset-> Views, create a post view:
lien caché
- Query your custom posts
- In section "Loop Editor", display view's loop, like this:

...
		<wpv-loop>
          [wpv-item index=odd]
			<tr>
				[wpv-post-body view_template="loop-item-in-create-a-gridview"]
			</tr>
          [wpv-item index=even]
			<tr style="background: gray;">
				[wpv-post-body view_template="loop-item-in-create-a-gridview"]
			</tr>
		</wpv-loop>
...

See the result page:
lien caché

#2562133

My issue is resolved now. Thank you!