Skip Navigation

[Resolved] Looping too many times & saving issues

This support ticket is created 5 years, 7 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)

This topic contains 5 replies, has 2 voices.

Last updated by JamesK4399 5 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#1231114
Loop-Editor-Issue.png

I'm still new to toolset so I don't know if this is something I'm doing wrong or a bug. I told a friend the other day that I was literally stuck in a loop because the loop wizard wasn't working for me. It puts in too many col-sm-12 divs. I need to wrap html code around a specific point but it wouldn't work until I simplified the results of the loop wizard. Basically I ended up removing all the div tags and just leaving the toolset tags. I don't know exactly what the tissue is but its' in the screenshot somewhere.

I'm impressed with the tool but I've had a rough going trying to understand the views, layouts and content templates. I was doing client server development in the late 90s so the concepts aren't new but the 4 boxes throw me off. I finally sat and watched the videos. I wish you could see the results of a view like a query without having to embed it somewhere.

Perhaps this should be 2 tickets but my layouts don't always save. Part of the issue is the loop wizard deletes all the html & css if you use it again to modify a field. I've started to save the text in sublime before I touch the wizard again. But this save issue is more widespread than that. I will pay more attention to what happens and report details.

I'm happy to create user name for your access if you can give me an email address.

Thanks, Jim

#1231122

Here is some more information other than the screen print. The code is repeating the container-fluid and the ddl-full-width-row row. I'd like to have more control over the the row breaks.

The code is from the view supporting hidden link page.

<div class="container-fluid ">
<div class="ddl-full-width-row row ">
<div class="col-sm-12"><div class="full-width">
<div class="full-width-grey">
<div class="ast-container"></div></div></div> <div class="container-fluid ">
<div class="ddl-full-width-row row ">
<div class="col-sm-4 project-sidebar"><h2 style="text-align: left">More Projects</h2></div><div class="col-sm-8 project-details">

<div id="wpv-view-layout-11410-TCPID9727" class="js-wpv-view-layout js-wpv-layout-responsive js-wpv-view-layout-11410-TCPID9727" data-viewnumber="11410-TCPID9727" data-pagination="{"id":"11410","base_permalink":"/project-category/airports/?wpv_view_count=11410-TCPID9727&wpv_paged=WPV_PAGE_NUM","query":"normal","type":"disabled","effect":"fade","duration":500,"speed":5,"pause_on_hover":"disabled","stop_rollover":"false","cache_pages":"enabled","preload_images":"enabled","preload_pages":"enabled","preload_reach":1,"spinner":"builtin","spinner_image":"hidden link","callback_next":"","manage_history":"enabled","has_controls_in_form":"disabled","infinite_tolerance":"0","max_pages":1,"page":1,"loop":{"type":"","name":"","data":[],"id":0}}" data-permalink="/project-category/airports/?wpv_view_count=11410-TCPID9727">

<div class="row ">
<div class="col-sm-12">hidden link">Caltrans Airport Land Use Handbook</div>
</div>

<div class="row ">
<div class="col-sm-12">hidden link">Hartsfield-Jackson Atlanta International Airport Air Quality and Noise Consulting</div>
</div>

<div class="row ">
<div class="col-sm-12">hidden link">Evaluation of Airport Emissions within State Implementation Plans</div>
</div>

<div class="row ">
<div class="col-sm-12">hidden link">Chicago O’Hare International Airport Expansion</div>
</div>

<div class="row ">
<div class="col-sm-12">hidden link">Evaluating Alternatives for Aircraft Ground Power, Heating, and Air Conditioning</div>
</div>

<div class="row ">
<div class="col-sm-12">hidden link">Southern California Regional Transportation Plan Program EIRs</div>
</div>

<div class="row ">
<div class="col-sm-12">hidden link">Salem Airport McNary Field Environmental Services</div>
</div>

<div class="row ">
<div class="col-sm-12">hidden link">Los Angeles International Airport Projects</div>
</div>

<div class="row ">
<div class="col-sm-12">hidden link">MacDill Air Force Base Exotic Vegetation Mapping</div>
</div>

<div class="row ">
<div class="col-sm-12">hidden link">Maxwell Farms Regional Park Master Plan and CEQA Documentation</div>
</div>

<div class="row ">
<div class="col-sm-12">hidden link">Taylor Mountain Natural Play Area</div>
</div>

<div class="row ">
<div class="col-sm-12">hidden link">LAX Tom Bradley International Terminal</div>
</div>

</div>
</div></div></div> <div class="container-fluid ">
<div class="ddl-full-width-row row ">
<div class="col-sm-12"></div>
</div>
</div></div></div></div>

#1231155

Shane
Supporter

Languages: English (English )

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

Hi James,

Thank you for contacting our support forum.

Let me see how best I can assist you with this. The issue is actually quite unusual because the divs and the classes are for bootstrap to load their columns.

From the link you sent it seems the display is showing fine. Perhaps i'm not understand the issue clearly, however what I got is that there are too many divs being displayed correct?

Please let me know.
Thanks,
Shane

#1243764

the col-sm-12 shouldn't be there at all since I turned off bootstrap. Somewhere in the loop it causes additional divs which mess up my formatting. I've gotten more comfortable editing all the different sections of the views and layouts so its not an issue for me but I still think there's a bug. In addition, the views and layouts seem to revert to earlier versions for some reason. I haven't tested it enough to give you a path to reproduce.

#1243790

Shane
Supporter

Languages: English (English )

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

Hi James,

I believe the only additional div being displayed is this here.

</div></div></div> <div class="container-fluid ">
<div class="ddl-full-width-row row ">
<div class="col-sm-12"></div>

This is caused by the code here


	[wpv-item index=pad]
			<div class="col-sm-12"></div>
		[wpv-item index=pad-last]
			<div class="col-sm-12"></div>

As you notice these 2 index displays nothing at all but the divs.

Thanks,
Shane

#1257873

My issue is resolved now. Thank you!