Is it possible to change the group id of a variable group?
I know you can change the order of variables within a group, and you can reorder the groups themselves, but doing so doesn't seem to change the id order. I'm looking for this functionality to affect parse order.
Replies
Low 20 Feb 2014 08:05
There isn't a way to change the group ID in LV, except if you manipulate the DB manually.
But if you can live with a small hack, you can achieve what you want.
Open up ext.low_variables.php and look up line 317. That's the query to get all early parsed vars. There are two lines commented out: 320 and 323. Uncomment those lines, and now the vars will be parsed, ordered by the group order, then var order.
The reason it's commented out, is that I found the query to be slower when enabled. So use at your own discretion.
Luke David 20 Feb 2014 14:58
Thanks for the tip! Low Variables has changed the way I look at building an EE site. Thanks for that!