Questions tagged [switch]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
26 views

odd even columns in expressionengine with bootstrap

I have an issue with looping output for a channel with Bootstrap. What I want to archive is this: row col 8 col 4 row col 4 col 4 col 4 row col 8 col 4 row col 4 col 4 col 4 and so on. This ...
0
votes
1answer
140 views

Loop a new section (outside loop) after every 2 entries

This is a strange one I've never come across over 5 years developing with EE. There may be a simple solution but I'm not seeing it! Essentially, I need to create a dynamic loop that outputs a ...
0
votes
1answer
125 views

Random matrix image on homepage and interior pages

I have a Matrix channel field to display sponsor images in a sidebar. I want to output 1 random image on page load and give user the option to only show specific sponsors on the homepage with Switch ...
0
votes
2answers
102 views

Channel entries Swith (looping) different DOM div blocks order?

I need display entries of a channel, is easy when you have the same structure of your DOM elements like: {exp:channel:entries channel="{channel}" limit="6" } <div class="{switch='row1|...
0
votes
1answer
706 views

{Switch} and Mod for even/odd amount of entries

I have a html structure where two entries are grouped into one div, so what I do is this: {exp:channel:entries channel="bullets" dynamic="no"} {switch='<div class="bullets">|'} &...
0
votes
1answer
174 views

Storing grid data with stash

I am using stash to store some common site data and would like to use a grid field to store one of the fields with the user having the option to input 0-4 rows. Is there a way to do this with stash? ...
0
votes
1answer
403 views

Creating rows with ExpressionEngine and a Grid using Switch

So far I was able to create rows with EE and a Grida data based on a solution from that article, but new template is not able to create rows (code below) {exp:channel:entries channel="media" ...
1
vote
2answers
285 views

P&T Field Pack and Matrix with EE version 2.8.1 errors

I upgraded a site to EE 2.8.1 and updated to the latest Field Pack and noticed the EE Control Panel really buggy and slow and have found errors in the log files from the server: PHP Fatal error: ...
2
votes
0answers
77 views

PT Field Type Checkboxes falling over when using {switch} in pairtag

I'm currently using PT Field Type Checkboxes to echo out an entries list, which is working fine. However when I combine this with the {switch=""} tag. This is blowing up and white screening the entire ...
2
votes
1answer
383 views

Split channel entry data into rows / columns with stash

With Stash, is it possible to store pieces of EE channel entry data and insert it based on a count or some other logic? I have a three column bootstrap grid below that splits an entry's data into ...
3
votes
2answers
61 views

How to add a custom on/off setting for client

My client has requested the ability to turn a specific, site-wide feature on and off from the site-wide header. It’s a link to a specific page that they would like to “turn on” months after the launch....
1
vote
1answer
128 views

EE Switch within Matrix tag pair not working

I'm struggling to get the native switch function of EE to work at all when it's used inside my matrix tag pair, It's simply ignoring it. Could anyone offer any advice? Thanks Here's my gist: https://...
3
votes
1answer
494 views

Grid and Switch Tag unexpected results

I'm building out a photo gallery using the grid field type and everything works fine with this code: {gallery} <li class="{gallery:switch='one|two|three'}"> <a href="{gallery:photo}"&...
2
votes
1answer
310 views

Using {switch} to Repeat Divs at Intervals

I have a loop of entries using a playa field to show multiple entries. I would like certain formatting to happen every 3 intervals. I found what I believe to be the solution to my issue here: https://...
2
votes
1answer
697 views

Getting {switch='A|B'} to work within relationship tag

I have the following code: {staff_member_groups} <h2>{staff_member_groups:staff_group_heading}</h2> <ul class="staff_member_groups"> {staff_member_groups:...
0
votes
1answer
195 views

Language switcher

Using this plug-in. http://biberltd.com/en/documentation/software/biber_ltd_multi_language_support/ How can I switch from one language to another. I've got the code switching from FR/EN on the top ...
1
vote
1answer
128 views

Dead Man Switch

Maybe a better name for an add-on would be good. But I was thinking recently after a near life ending medical condition. What would happen once I’m gone to my personal website and my journals? I have ...
2
votes
1answer
143 views

Fieldpack 2.01 - Switch not working

I'am trying to create a new Field of type "Fieldtype - Switch", but I'am getting this error: Unable to load requested field type file: ft.pt_switch.php. Confirm the fieldtype file is located in the ...
0
votes
1answer
215 views

P&T Switch value

I have a field named {the_shadow} set up with P&T Switch field type of "yes" and "no" for their values. For some reason it doesn't seem to work: {exp:channel:entries channel="portfolio_work" ...
4
votes
3answers
660 views

Switch inside Channel:Categories?

I would like to insert a clearfix div after every third category listing. I have used this method successfully when outputting from {exp:channel:entries} tag pairs, but it appears that the {switch} ...
2
votes
1answer
371 views

Channel Entries - Skip a particular channel entry

Okay, I've got a page with a url that has the channel entry title in the URL. At the beginning of the page, I show the single article for that entry, but then underneath the article, I need to show ...
0
votes
3answers
364 views

{switch} not working

Why wouldn't this work? am I missing something? <div class="col-70"> {exp:channel:entries channel="ministries" limit="1" {gv_param_disable_default}} <h1 class="section-...
6
votes
1answer
122 views

How can I prevent a {switch} tag from cycling unless a Switchee case or advanced conditional is true?

I have a channel entry loop that is outputting entries from three different channels. Entries from each channel are marked up differently, so I have a Switchee case with the value of ...
6
votes
7answers
4k views

Conditionally output code every nth entry for Bootstrap grid

I'm building a grid with Twitter Bootstrap. How do I add the closing row </div> tags after every 2 entries? I need the HTML to look like this: <div class="row"> <div class="span6"&...