Skip Navigation

[Resolved] reverse engineering of view

This support ticket is created 5 years, 9 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 7 replies, has 2 voices.

Last updated by Nigel 5 years, 8 months ago.

Assisted by: Nigel.

Author
Posts
#1222987

Tell us what you are trying to do?
I would like to figure out how to replicate a view

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?
ourentrepreneurnetwork.com

#1223046

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Lori

Do you mean how to do in PHP what Views does, without using Views?

#1223047

Hi Nigel, did you only get the answers to the questions? I send an explanation but was told your system couldn't handle the request, ended up with submitting 2 - strange morning.

okay so Lou worked on my 4 boxes, he ended up just doing the task in my views this is what he ended up doing for me

[wpv-conditional if="( '[wpv-search-term param='content-template-id']' ne '62933' ) AND ( '[wpv-search-term param='content-template-id']' ne '62945' )"]<center>[wpv-post-body view_template="None"]</center>[/wpv-conditional]

I'm assuming you didn't get the rest of my paragraph. I was so glad to see that the boxes were responsive I didn't look to see what he did. That was yesterday morning so it's been 12 hours. I really wasn't expecting to not be able to reproduce it.

I am assuming he is doing a manual conditional output. but I have absolutely no idea where those numbers are coming from. as far as I can tell I don't have content templates with those numbers.

I am kinda over this one. at this point I would just make 4 views and create a taxonomy function for those views. since I know how it would work. Again I will go with what I know, since I don't understand.
thank you so very much
Lori

#1223748

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Sorry, I seem to be missing some important context here, you can see the entirety of what I can see on this page, so if you were submitting more details they don't seem to have survived posting to the forum.

#1223892
Screen Shot 2019-04-01 at 7.12.37 AM.png

Let me start over, I guess.

I have attached a photo of 4 boxes going across the screen horizontally.

I had originally created a table view to accomplish this task.

Each image has it own post.

I then decided to make my site responsive.

I had extreme difficulty getting bootstrap to do this. I could only get bootstrap to created a vertical line (going down the screen) of the boxes.

Lou got the ticket originally.

After a week of going back and forth. He went into my site and created this.

[wpv-conditional if="( '[wpv-search-term param='content-template-id']' ne '62933' ) AND ( '[wpv-search-term param='content-template-id']' ne '62945' )"]<center>[wpv-post-body view_template="None"]</center>[/wpv-conditional]

To duplicate the image below in bootstrap.

My issue is I have NO idea what he is doing.

You mentioned that I am confusing. Lou's response is confusing.

1. I have NO idea how he created the conditional output, I can only think he created it himself manually vs using the content in the drop boxes.

2. I have NO idea where he is getting 62933 or 62945

3. I cannot replicate this.

I spent hours not only trying to figure this out before contacting toolset originally. Then after a week of back and forth, I finally got a solution.

Only to have to spent more time trying to reverse engineer this, so I can not only do it again, but not have to bother you again. I spent a lot of time scouring your documentation for search-term param and how it pertains to this application. For nothing.

I know in your world I am really quite stupid, but if a table can create 4 boxes going across the screen I think bootstrap should be able to.

I don't understand why or how this particular question got so out of hand. I really really didn't think the concept below would have or could have been so difficult.

I just wanted 4 boxes going across the screen instead of down the screen, and to be able to replicate it.

Lori

#1224021

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Lori

Unfortunately you are up against a problem that Avada uses a custom version of Bootstrap which breaks the responsive grid.

So if you create a View and use the Loop Wizard to set an output format of Bootstrap grid with 4 columns, it will work nicely with most themes, but not with Avada (nor with Divi, another popular theme that is incompatible with the world's most popular UI framework that Toolset builds upon).

You'll need to use a custom grid if you are using Avada.

I could help with that. You just want the results of your View to display in a 4 column grid that collapses on smaller screens?

#1224046

So the underlying theme here is AVADA is an issue.

Between my 2 tickets with you.

My knee jerk frustration is when I moved to avada I EXTENSIVELY went through the themes TOOLSET recommended. I focused on toolset.

Avada was and still is one of the themes toolset recommends, so it becomes very difficult to digest the "issues" that come along between toolset and avada.

Again I went into choosing a theme that would work with layouts. Part of the problem is until you BUY these expensive - handy dandy compatible and recommended themes, you don't know, the reality is they don't really work nice together.

Had layouts worked then or now, I probably wouldn't have many of the issues I currently have. (aside from my issues with views vs templates of course)

SO here is a question that might solve this and the other issues we have been discussing.

WHAT theme exactly, does toolset work nicely with?

What theme can I have a 4 box grid that doesn't break AND I can put inside of my styled pages and posts.

because to tell you the truth. If I wanted to duplicated this function with something else, my workaround would be... views. I would create 4. yes 4, 1 for each box, simply because I know how to make them work better than grids.

The bottom line is at this point, trying to make my site responsive has taken waaaaaaaay longer than I had ever hoped. Especially considering I have a responsive theme.

My time line has been blown out of the water and then some. IF I am to consider changing to a different theme now is the time. I will say however, I am really over hearing how bad a theme is. I can't tell you how many themes I have been through.

I am truly to the point where I don't want to hear about themes or conflicts. No one is ever happy.

So again .... WHAT theme exactly, does toolset work nicely with?

#1224553

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

In my experience Toolset works best with the themes that have free versions, namely Astra, OceanWP, and GeneratePress.

The all-singing all-dancing themes (Divi, Avada) have a vast array of features, but that means more things to break. And both, unfortunately, have compatibility problems with Bootstrap, particularly Divi, which translates into problems with Toolset.

On the sandbox site I have installed (but not activated) Astra.

If you want to see the grid in action, activate the Astra theme and disable the Fusion plugins, then visit this page: hidden link