2022 Developer Survey is open! Take survey.
5 votes
Accepted

PHP error when using Low Variables with Grid and Assets

Okay, this definitely is an Assets issue, but here's a temporary fix. Open up ft.assets.php and look up the grid_replace_tag method, around line 1771. In there, you can see this line of code: $...
user avatar
  • 11.3k
3 votes

Using Low Variables and Grid to return a count

You can use the Search parameter to return only rows that have the checkbox cell checked. {exp:low_variables:parse var="lv_homeslider" search:name_of_checkbox_cell="true"} {total_rows} {/exp:...
user avatar
  • 388
3 votes

Save As File & Low Variables

Enabling Save As Files in Low Variables does have a slight performance impact. In order to tie in to native EE functionalities, LV needs to update the native exp_global_variables table with the data ...
user avatar
  • 11.3k
2 votes
Accepted

Insert Low Variables Between Channel Entries

You might be able to do this with the help of Math: {exp:low_variables:parse var="banner_ads" offset="{exp:math formula='{count}-1'}" limit="1" parse="inward" }
user avatar
  • 11.3k
2 votes
Accepted

PHP errors displayed in CP when using an Assets filed within a Matrix within Low Variable

Andris was close to the solution: Add the following code right above the switch statement. `if (($context == 'grid' || $context == 'matrix') && !empty($this->var_id)) { $context = '...
user avatar
2 votes

No output on a Playa Low Variable

Adding to this, I had to put transcribe=“disable” inside of the Playa tag (not the ece loop) to get it to output. Credit goes to EE Harbor.
user avatar
  • 21
2 votes

No output on a Playa Low Variable

You could try and use the playa:children tag instead of the Parse tag: {exp:playa:children var="lv_book_slider_en"} {title} {/exp:playa:children}
user avatar
  • 11.3k
2 votes
Accepted

low:events excluding an entry

Using an early parsed var (or a Snippet for that matter) like that doesn't work. To illustrate, using the var you geva as an example, and using it like this: {exp:low_events:entries entry_id="not {...
user avatar
  • 11.3k
2 votes

Low Variables — Batch Creation

Check out the Variable creation options bit. Batch creation of multiple identical vars happens when using multiple suffixes when creating a variable.
user avatar
  • 11.3k
2 votes
Accepted

Variables overwritten by database

Low Variables variable syncing works like this. Note that each time you save a LV in the Control Panel, its DB edit date is updated: Vars marked save as file are fetched from the DB; Variable ...
user avatar
  • 11.3k
2 votes

Can one low variable be used across multiple sites (using MSM)

You can, but you will have to use the Parse tag or one of its aliases: {exp:low_variables:single var="my_site:my_var"}
user avatar
  • 11.3k
2 votes
Accepted

Trying to nest Low Variables

Ah, Parse Order. This particular issue takes place in phase #5 of the linked PDF: parsing of module and plugin tags. This works as follows: The first {exp:-tag encountered in the template is parsed. ...
user avatar
  • 11.3k
2 votes

Assets in Grid In Low Variables - multiple files

I reported this bug to Pixel & Tonic, and they right away got working on a "duct-tape" type fix. It seems, to get this working, in Assets 2.6, you can change line 1810 of system/expressionengine/...
user avatar
2 votes
Accepted

Low Variables causes php 7 warnings in ee 3.1

No, there is no roadmap for making LV—or any other Low add-on—compatible with PHP7.
user avatar
  • 11.3k
2 votes
Accepted

Table doesn't exist after upgrade

Seems related to this bug report. If you have a conditional checking for something like this: {if grid_field:total_rows > 0} try changing that to this: {if '{grid_field:total_rows}' > 0}
user avatar
  • 11.3k
1 vote
Accepted

Save As File & Low Variables

Lol wut? Unless your database is behind a caching service (like memcache) and therefore loaded in memory, grabbing your files from your database is much more overhead. Where do you think database ...
user avatar
  • 5,900
1 vote
Accepted

Using Low Variables & P&T Pill in a Conditional

Make sure Early Parsing is enabled for that Pill variable, then use this syntax: {if lv_metasocial_meta_title_display == "title_site_name"} ...which is EllisLab's recommended syntax for conditionals....
user avatar
  • 11.3k
1 vote
Accepted

Low Variables parsing grid

Alright, I did a fix. I renamed my en, fr and es fields with a prefix label_. In my template I did this: {/stash:nocache} {exp:low_variables:parse var="var_eleads_countries"} <option ...
user avatar
  • 71
1 vote

Assets and Low Variables not compatible?

Appears the problem was a conflict with another custom add-on that was installed. I've disabled it for the time being and I'll review the source code to fix at a later date.
user avatar
  • 1,986
1 vote

Passing a value to a low variable 'snippet'

Using preload-replace vars is possible, but the vars need to have early parsing enabled for it to work. If you're using the Textarea var type, you can also use Tag syntax (rather than the Variable ...
user avatar
  • 11.3k
1 vote
Accepted

The default field selection in a Content Elements variable in Low Variables keeps self-replicating

I then click on the "Save Changes" button, and it loads up the screen where I can begin to add the different CE types as I please and populate them with content... except after all the custom ...
user avatar
1 vote

Early Parsing with Low Variables and Member Export

If I understand correctly, you only want to execute the exp:ajw_export tag if the logged in member ID is 1. For this, you don't need the low_variables:parse tag. Instead, in the Low Variables settings,...
user avatar
  • 11.3k
1 vote
Accepted

using low variable as parameter in exp:channel:entries

The example you linked is a Select variable type, which stores its value as a pipe-separated list of items. You can use that as a parameter value. Your variable, on the other hand, contains ...
user avatar
  • 11.3k
1 vote
Accepted

How to write a conditional in template code evaluating the result of a Low Variable containing a conditional?

If I understand you correctly, the content of the lv-seg1-taxonomy-node-id variable is that big if-statement. Then you're using the LV as part of another conditional: the one in your first example. ...
user avatar
  • 11.3k
1 vote

advantage of using Stash with LVs or Low Variables by itself

There'll be a slight hit to the stash version but if used correctly it can be utilized to cache the results. So there's plus & minus to both versions.
user avatar
  • 3,163
1 vote
Accepted

Low Variables Error : "Field 'edit_date' doesn't have a default value"

That's probably because of MySQL running in Strict mode and only if LV was installed before version 2.3.3. You can work around it by setting a default value of 0 on the edit_date column in the ...
user avatar
  • 11.3k
1 vote
Accepted

Checking for custom field with conditional inside of an embed template

Your code works ok in EE 2.9 but versions below this, this should work: {exp:channel:entries channel="{embed:channel}" dynamic="yes"} {if "{{embed:meta_tag}}" } {{embed:meta_tag}} ...
user avatar
1 vote

Best practices: Location-aware Navigation in EE2?

Using segments as Anna described in her answer definitely works well for some sites. But it can get tedious on large or deep navigation trees and is not practical when the client needs to manage the ...
user avatar
  • 7,941
1 vote

Best practices: Location-aware Navigation in EE2?

I personally always take the route of using segment conditionals to set my active state CSS class. It's easy to code and manage since it's handled in one template. <li><a {if segment_1 == '...
user avatar
  • 12.6k
1 vote
Accepted

creating dynamic pages with Low Variables

I tend to agree with what's been said about LV versus regular Channel Entries in your case, but to actually answer your question... I'd add a column to the LV Grid var, eg. url_title, where you enter ...
user avatar
  • 11.3k

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