Comments (2)
After further testing, I believe none of the Automatic Variables are working.
Using the following template code:
<ul>
{powers}
<li>{count}/{total_results} - {switch="one|two|three"} - {power} </li>
{/powers}
</ul>
The expected result should be:
1/3 - one - Poisonous Breath
2/3 - two - Wealth
3/3 - three - Flying
The actual result is:
1/1 - one - Poisonous Breath
1/1 - one - Wealth
1/1 - one - Flying
from expressionengine.
@ssssct what you see is the correct behaviour. The "automatic variables" are only built for top level of variables array. If you need to have those available for some pair variable, you'd need to do that yourself (also you might want to give some sort of prefix to those, otherwise you'll run into naming conflict)
from expressionengine.
Related Issues (20)
- limit="30" not working for list of members HOT 3
- Color Picker bug when used as fieldtype in Grid HOT 2
- Getting e_wraning in preview mode when having an related entry with an members field HOT 5
- Replacement image uploads not updating CP thumbnails or on site frontend HOT 4
- Session expire_browser_on_session_close doesn't work with cookie consent
- Member can't add a category HOT 2
- Unable to Edit Entry instead its Giving Category, Categories Error! HOT 9
- Error when running conditional sync. HOT 4
- Watermark isn't working, fuzzy image
- url_title generated by ee('Format') urlSlug method fails validation (EE7.4.5) HOT 1
- Getting console warning: `[DOM] Found 2 elements with non-unique id #perpage` on entries listing page in CP
- Structure: `{structure:page:url}` tag is not working if the page is accessed through `/group/template/entry_id` URL
- EE cache->save operation faulting during writing of large files / file cache in use
- Inform user of issues when uploading a file in the Files area
- Addon "Sitemap" cannot be completely uninstalled HOT 4
- Updater fails when system folder and webroot folder are on different filesystems
- Mime type config doesn't affect .html files HOT 2
- category_group within {categories} loop not limiting output to group HOT 1
- count and total_results not working in {categories} loop HOT 1
- Ability to group individual fields with a grid field HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expressionengine.