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)
- CP Member Count value is wrong
- CP Member pagination wierdness
- Members disappear from Member listing but remain in EE exp_members db table HOT 2
- File Uploads - successful uploads not displayed
- File Uploads - exiting batch image uploading, puts files into wrong folder HOT 2
- File Upload - No 'move' option available in 'All Files'
- Pending member approval issues in cp
- System default pending member - pending shouldn't be an option.
- Error backing up database if field is set() type HOT 1
- An entry with title "Academy Award®" cannot be saved when `Enforce automatic URL title` is enabled
- deprecation errors - php 8.2 / EE 7.4.9 HOT 4
- Email validation in the CP HOT 2
- member_process_reset_password and cp_member_reset_password hooks pass different information when firing ... why?
- Edit Channels - Category tab get: You are not authorized to access this page
- 7.4.9 Categories display issue on publish page
- 7.4.9 File upload replace existing file doesn't create image manips.
- EE 7.4.9 Trying to access array offset on value of type bool ee/legacy/libraries/Image_lib.php, line 1386
- 7.4.9 rte/ckeditor links can be malformed
- Losing Entry Data on Saving Entry Channel with Grid Fields HOT 3
- Stop eecli.php messing up capitalised words when generating addons ...
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.