Hot answers tagged

3

I think the best way achieve this is to do by adding CSS. For that you just need to create one class pipe containing the + sign (either with an image or with color). Then put that pipe class on respected rows in Matrix. This way you can manage it very easily. span.pipe:before {content:" + ";} span.pipe:first-child:before {display: none;}


3

I would use Stash to do this. See the example on the Stash wiki about grouping by with categories, which should work similar for the Playa field you have. Within a banner's loop first create a stash list (by appending) of the banner ads with the client's id in name, something like {exp:stash:append_list name="banner_{*playa field client entry id tag*}"} ...


3

You could wrap the meta data inside a conditional matching the count of 1 like so: {exp:channel:entries limit="10" channel="page" dynamic="no" } <div class="module">{title}</div> {if count == "1"} <div id="meta" class="row"> <div class="aside">Content Related to channel</div> // Outside of loop </div> ...


3

Looks like I got it working. maybe this will help someone else out, or maybe someone will find an even better solution. I simply switched {if row_count != total_rows} & {if row_count == total_rows} to {if count != total_results} & {if count == total_results} so the final code in my template is: {playa_field show_future_entries="yes" ...


3

You're in custom plugin territory Travis. Pretty easy though. Run one (very quick) query to get the latest entry_id in each channel (query exp_channel_titles only). Save them all to an array. Then, you can either return those entry_ids as a variable (concatenated with |), which you pass to your channel:entries tag in your template, or instantiate a new ...


2

You can use stash lists. Store the state separately. On output order by the unique states and use a nested get_list to get the entries/stores per state. (example from Croxton slide: Stash core principles ) {exp:stash:set_list name="my_stores" parse_tags="yes" scope="site"} {exp:store_locator:stores} {stash:item_state}{state}{/stash:item_state} {...


2

There is an add-on from EE Garage that I have used to do that on a store finder before. It's called NSM Channels. http://ee-garage.com/nsm-channels Not sure if there is something similar on Devot-ee.com for free, but I know this works.


2

The result tells me that this entry has 2 children (Window Boxes and Dining Room) and that its field call_out_section has 2 rows (100 and 200). So, everything is right. 2 × 2 = 4! But, as you said on chat, selected_project is also a column of call_out_section. So, you can use the Field tags of Playa, instead of exp:playa:children, that is another module ...


2

Almost there, take a look at the available parameters and variables, here: http://ellislab.com/expressionengine/user-guide/add-ons/channel/channel_entries.html {exp:channel:entries channel="vacancies" author_id="CURRENT_USER" limit="1" dynamic="no"} {if no_results} there are no entries in this channel {/if} {/exp:channel:entries} When using CURRENT_USER it ...


2

{count} probably belongs to the outer {exp:channel:entries} loop. You want either {row_id}, {row_count}, or {row_index}, which Matrix provides. https://docs.pixelandtonic.com/matrix/templating/field.html


2

Not in that fashion, but if you stashed the item (using the Stash add-on) you could grab it a bunch of times without having to repeat the entries loop.


2

You can use some variables from the Channel Categories loop to execute this. Ref: http://ee2docs.com/add-ons/channel/categories.html#variables Inside of your Channel Categories loop: {category_name} {if count != total_results}/{/if} This places a / after each category name until you reach your last sequence of the loop. Edit Oops, of course you have it ...


2

Something like this maybe? {exp:channel:entries category_group="not 1|2|3|4"}


1

if you change this {if total_results >= "1"}&nbsp;+&nbsp;{/if} to this {if count != total_results}&nbsp;+&nbsp;{/if} Then you will get the "+" if there are multiple and it will not put the "+" at the end.


1

I've used jscroll before http://jscroll.com/ it seems to work fine. Here's some sample code: <div class="infinite-scroll"> {exp:channel:entries channel="news" dynamic="no" show_future_entries="yes"} <p class="item">{title}</p> {paginate} {if next_page} <a href="{auto_path}" class="jscroll-next">Next</a> {...


1

If I follow your question correctly, the output you want is for each pair of entries to be in their own sections, with the sections alternating between white and light grey backgrounds. I'm not sure about this, because your sample code appears to list all the entries within a single pair of <section> tags. If your output does split pairs of entries ...


1

I solved my problem by using php. First i go through all of the categorys and count them. after that i check it with another variable where i count the current Category. [ {exp:channel:entries channel="ch_efn_magazin" entry_id="304"} { "ID": "{entry_id}", "Category": [{ <?php $maxCat = 0; $currentCat = 0; ?> {categories} ...


1

I found it! I was trying to use a LV field tags to get the row count of a matrix field while I needed to use the matrix field tag {row_count}. {exp:low_variables:pair var="lv_Form"} <div class="radio-style"> <input type="radio" id="dest_0{row_count}" name="destination" value="0{row_count}" /><label for="dest_0{...


1

A word of warning, you could achieve this with PHP on a template (though some here don't like the idea of PHP on templates!). Instead of tring to use the limit/offset syntax, lets push out options into a PHP array, then we'll do the array limits and offsets ourselves! PHP On = Output <?php $options = array(); function print_options($limit, $offset){ ...


1

One quick and easy way to glean a Calendar ID is just to go to CP > Add-ons > Modules > Calendar > Calendars and look at the output there. It gives you a list of all your calendars by name, and includes Calendar ID's.


1

huge thanks to ellis labs support, they pointed me to increasing the pcre.backtrack_limit beyond the default 100000 and it now processes all the tags. in retrospect i should have checked that sooner, but run into issues with it so infrequently it never crossed my mind. edit system/expressionengine/config/config.php and add this just after the initial line (...


1

This is actually a HTML/CSS issue. You're forgetting that just the first tab content should have the class active. The tabs have a conditional, {if count == '1'}class="active"{/if}, but the contents doesn't. You should use the var_prefix parameter on playa to avoid conflicts.


1

Use the parse="inward" parameter. {exp:gwcode_categories cat_id="{category_id}" incl_self="no" style="linear" parse="inward"} Which will ensure {cat_id} is set prior to the channel:entries tag being run.


1

That code should work but you might want to use the var_prefix parameter to avoid variable name conflicts. Also, because Low Alphabet is a plugin and EE's quirky template parser, you'll need to add parse="inward" to the opening low_alphabet:entries tag if you're using other tags inside it (as per the docs).


1

Right, so essentially, you've got two channel entries loops going here, and they're not at all related. You'll either need to reconfigure your code to use only one, or try to pass a row_id parameter from the first set of images into the modal. You could do this several ways - via embed, or stash potentially, etc, etc. I'm not familiar with the gallery you'...


1

I think you'll need to enable PHP in the template, set it to parse on input and use it to store the value of {state} on each iteration of the loop, at the top of the loop check to see if state is equal to itself or not, if not the write out the value as a heading. :) It's possible you might be able to achieve the same result with Stash but I'm not really ...


1

There has to be something else at play. Using your exact example A code in empty template + site/template embed code, I get as expected: 1 / The parent category ID is 1. 2 / The parent category ID is 2. 3 / The parent category ID is 3. Try it yourself using empty templates.


1

Jason, is JavaScript totally out of the picture for this? Also, what's your PHP expertise like? I've solved similar issues in the past using a custom plugin and a static PHP variable. Basically, you can try setting the channel:entries field around the matrix to parse="inward", so it runs first, and have a plugin with a method that outputs and increments a ...


1

If you have a second site on this hosting account, the cookies are probably getting in the way. Add this to your new site's config file and set the prefix to something unique: $config['cookie_prefix'] = "new"; EDIT I just saw this was an EE1 site. Use this instead: $conf['cookie_prefix'] = "new";


1

The EE way is to do multiple exp:channel tags and pull out the relevant info. It's no big thing if you're site has average hits per day or you're not querying 1000 items. The 'new' way involves Stash which you basically set a series of variables to the fields you want to record in one pass of exp:channel tags then output those variables wherever you like ...


Only top voted, non community-wiki answers of a minimum length are eligible