Comments (2)
It is not specific to pagetable, if you try outputing this statusLabel
in the info
option of a Pages section, the issue will still occur.
The issue you're having definitely comes from the field name, I don't know what's going wrong with underscores and numbers in field names (I never use any), but switching local_image_save_to_s3
to localImage
fixed the issue.
Also, the value stored in a toggle won't be your displayed terms. To display them, you can change your field method to:
'statusLabel' => function($field) {
$value = $field->isTrue() ? 'Ja' : 'Nej';
return '<span class="status-label" data-status-type="'. $value .'">' . $value . '</span>';
},
from kirby-pagetable.
Closing this issue, please reopen if the answer above doesn't help. :)
from kirby-pagetable.
Related Issues (20)
- Incompatible with 3.6.0 HOT 4
- Add files to the table HOT 1
- use different URL in table HOT 2
- Amazing plugin: just a little question about the mobile view HOT 1
- Delete button deactivated HOT 2
- Translation Error
- Version 1.1 breaks compatibility with Kirby 3.5. HOT 2
- Prevent clicking on cells/rows HOT 1
- rowsPerPage custom translation in blueprint doesn't work HOT 1
- SortBy column data? HOT 2
- Setting "create: true" throws error on adding a page HOT 1
- Image via query not working HOT 1
- 3.7 Compatibility HOT 5
- Cannot read properties of undefined (reading '_wrapper') HOT 2
- Bug: 'undefined array key "text"' HOT 1
- New pages not created in the correct folder HOT 4
- Search input outside container
- Performance when storing pages with SQLite HOT 1
- Query Outdated HOT 3
- [K4] 4.0 Compatibility HOT 1
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 kirby-pagetable.