Skip Navigation

[Resolved] View or page template

This support ticket is created 5 years, 5 months ago. 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by jelle-jacobd 5 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#1282087

Hi,

Tell us what you are trying to do?
I'm trying to create a table view like shown on hidden link
The table (technische bijzonderheden) shows a table view with on the left the table header and on the right the value. Should I create a view (with filter?) or should I place the values from my custom post type and fields directly in the template in an html table?

Is there any documentation that you are following?
No, unfortunately there's no specific user case available. Overall there's not much info for a beginner to start with in my opinion regarding what views are and how to use them or when not to. I've spend a lot of hours to find something I could use or suits my needs, but It is still very technical and global info most cases.

Besides this I would like to create a Image gallery like mentioned on this page: https://toolset.com/documentation/user-guides/create-image-galleries-using-toolset-and-custom-fields/ I have managed to get the gallery working, but the images are way to big and the css isn't working, same goes for the masonry option. Looks like the classes mentioned in the article need an extra '-' ?

Is there a similar example that we can see?
hidden link

What is the link to your site?
hidden link

#1282187

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jelle,

Thank you for getting in touch.

This one would require you build the table manually in a content template.

For the table in the link that you sent, this is the general HTML structure that it is using.

<table border="0" cellspacing="0" cellpadding="0" class="specs">
  <caption>Technische bijzonderheden:</caption>
  <tbody><tr>
    <th scope="row">Type</th>
    <td>: Wiidvlet</td>
    <th scope="row">1/2 beds</th>
    <td>: 0/1</td>
  </tr>
  <tr>
    <th scope="row">Length</th>
    <td>: 10.50 m</td>
    <th scope="row">Cabins</th>
    <td>: 2</td>
  </tr>
  <tr>
    <th scope="row">Beam</th>
    <td>: 3.75 m</td>
    <th scope="row">Motor</th>
    <td>: 4 cyl. Yanmar diesel, 75 pk.</td>
  </tr>
  <tr>
    <th scope="row">Draft</th>
    <td>: 0.95 m</td>
    <th scope="row">Fueltank</th>
    <td>: 375 l</td>
  </tr>
  <tr>
    <th scope="row">Bridge clearance</th>
    <td>: 2.70 m</td>
    <th scope="row">Watertank</th>
    <td>: 700 l</td>
  </tr>
  <tr>
    <th scope="row">Head room</th>
    <td>: 2.00 m</td>
    <th scope="row">Sawagetank</th>
    <td>: 250</td>
  </tr>
  <tr>
    <th scope="row">Sleeps</th>
    <td>: 0/2</td>
    <th scope="row">&nbsp;</th>
    <td>&nbsp;</td>
  </tr>
</tbody></table>

So all you need to do is just adopt this with your data.

Also has your site been set to import the bootstrap css ? Finally are you using the Toolset Blocks plugin to do the gallery?

Thanks,
Shane

#1282191

Hi Shane,

Thanks. I will try and do that. But I would also like to now why? When should I use a view and why do i have to use a content template in this case. This info would help me a lot understanding the choices I should make in the future.

No I’m not using block builder as I’m using WP Bakery instead. Don’t like the guttenberg editor.

#1283245

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jelle,

So in this case you will use a content template. I'm under the assumption that you want to customize how you are displaying your Single post items on the frontend. This is what content templates allow you to do.

For views they are for when you want a list of posts to be displayed on a page using some query, for e.g List of post attached to taxonomy A.

Since you want a table and i'm assuming the values for this table will be stored on the single post then a content template or some form of page template will be needed.

So I see you are using WP Bakery to do your templates so this will work just as well.

Thanks,
Shane

#1287213

Hi Shane,

Thanks for getting back to me.

That's correct, so simple said. For one item there's no need the create a view. Only when I need a list of items from a loop? Would love a step by step tutorial section where also different scenarios are discussed. Toolset claims to be simple and without coding any needed. But the reality is that, at least in my case, the available documentation handles only the basics for the most part. To help people understand how to use the different elements, it would be really nice if you guys created a step by step section with multiple scenarios in mind for the same solution or end goal. Also the why is very important in my opinion.

#1288995

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jelle,

That is correct, you will only use a view when you want to loop through the data of multiple posts.

Yes I understand why you would want improvements on our documentation and more examples on how to use our products.

There is also a youtube channel that you can bookmark as we regularly post video tutorials there.
hidden link

Please let me know if this helps.
Thanks,
Shane

#1291477

Hi Shane,

Thanks, also for understanding. People like me (beginners) need real step by step tutorials, without leaving anything out. This means describe all steps even if mentioned in other tutorials and related to the specific user case at hand.

That said, it would really help if the tutorials refer to real user cases and/or examples instead of general info. And also what NOT tot do in specific situaties and describe the consequences when people make wrong decisions or at least other then described. The "why" is most import for understanding and correct decision making. I guess it would reduce the support load as well for you guys for recurring questions.

I will check out the youtube channel. Thanks.