Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Variable a symbolic name associated with a value that may be changed
0
votes
Pass Variable back from Partial
I've solved it by using a different method:
STEP 1
Create a Global Variable (layoutWidth) with a field (layoutWidthIs) and give it the value: normalWidthNow
STEP 2
This is the partial:
<! … -- set layoutWidthCurrently to the global variable layoutWidth -->
{% set layoutWidthCurrently = _globals.get('layoutWidth.layoutWidthIs') %}
<! …
0
votes
1
answer
24
views
Pass Variable back from Partial
Whilst passing a variable to a partial is very useful, I need to be able to set a variable inside the partial that can be read by another partial. … So my strategy is to set a variable that knows whether it is full width or normal width. It's initially set to normal width. …