Comments (2)
I am pretty sure there was a good reason for doing it this way. You shoulnd't if a processor anyway but rather use a control structure on the replacement ala value = ${value == 'abc' ? 123 : value}
. While I guess in this special case of processors it could make sense to have the value already I find in normal rendering cases you would want to first evaluate if before doing anything on the fusion object in question.
from neos-development-collection.
in my specific case i just wanted to quickly notate this:
# resource:// or http://
resourceUri = 'resource://Foo.Bar'
[email protected] = Neos.Fusion:ResourceUri {
@if.isResourceStreamWrapper = ${String.indexOf(value, 'resource://') == 0}
path = ${value}
}
in the end i build a full blown prototype:
prototype(Neos.Neos:Core.ImageSource) < prototype(Neos.Fusion:Component) {
path = ''
renderer = Neos.Fusion:Case {
resourcePath {
condition = ${String.indexOf(props.path, 'resource://') == 0}
renderer = Neos.Fusion:ResourceUri {
path = ${props.path}
}
}
default {
condition = true
renderer = ${props.path}
}
}
}
But i would be also fine with closing this as not planned, as my above prosed fusion config is not super easy to decipher i guess.
So to quickly move forward let met now if i should close this or well keep it open until we find the time to discuss this.
from neos-development-collection.
Related Issues (20)
- BUG: 9.0 `Neos.Fusion:Template`'s `attributes` now an array
- BUG: NodeTypeManager can crash in cli context
- TASK: Deprecate `Neos.Fusion:Plugin` HOT 2
- Migrating old cr data with additional root nodes and their children
- 9.0 DataTime property with string (defaultValue) like `now` HOT 6
- Adjust docs regarding 9.0 `Neos.Neos:Plugin`
- Ensure exceptions during CatchUpHook are properly handled HOT 1
- Neos 9.0 Sub-request on Neos.Neos Frontend page broken
- Feature refine php api for php fusion object implementations
- 9.0 `Node::hasProperty` might lie in combination with entity privileges where property will be null still
- BUG: 9.0 `cr:export` doesnt work with resource stream wrapper
- BUG: 9.0 `cr:prune` is a noop if projections are empty already or not up to date HOT 1
- Regression: 4838 Fusion `ParsePartials` cache broken in latest `8.3.10` release
- FEATURE: "Connect" new site entity to site node
- Flow Query Replacement HOT 1
- AssetUsage Interface
- TASK: Remove obsolete i18 label `content.inspector.editors.dateTimeEditor.apply` HOT 1
- BUG: Fusion translations not working in Neos 9 HOT 4
- 9.0 Test, (Refactor) and rename Neos' Fusion View
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 neos-development-collection.