Embedding variables when calling Low Variables
Okay, so I've heard that EE embeds have a pretty high overhead on the server (relatively speaking). Instead I'd rather use Low Variables (and do a lot of the time).
However, there are times when I want to be able to define a variable in my EE embed tag and act upon it's value in the embedded code. It'll be fantastic if Low Variables could do this somehow as well.
For example, I use an embed for the header part of sites I build and sometimes want to include extra stuff in the header depending on the value of that variable:
{embed="includes/header" section="properties"}
Might we be able to do something similar with Low Variables in the future?
Replies
Low 4 Mar 2010 13:13
Hey Jim,
So, let's see if I'm getting this right. You want to pass variables to the Low Variables data. This could mean a tag like this:
{exp:low_variables:parse var="my_var" some_embed="some_value"}
This sounds doable, and is the only way to pass variables to the Low Variables data. However, this approach won't work for variables that need to be parsed early -- which would be the case if the variable contains other template tags or php.
I'll look into it some more. In the meantime, maybe you could share some examples?