Hi all,
I’m encountering 2 (I hope) sperated issues with Neos prototype inheritance.
-
Following the first 2 examples on the page http://neos.readthedocs.io/en/stable/HowTos/SelectingPageTemplate.html I created:
prototype(My.Package:Page) < prototype(Neos.Neos:Page){
all the common options
}
prototype(My.Package:Page2) < prototype(My.Package:Page){
_extensions/overrrides
}
The problem si that when I create a page with this last prototype, in the DOM appears a string with the properties of the page, like:
<body class="bodyContent coverPage" id="Page-node-57bf0374c9ca1">
resource://My.Package/Private/Templates/NodeTypes/Page2.htmlPage:TitleOtherOptions
The problem seems only resolved if I transform the prototype declaration in:
prototype(My.Package:Page2) >
prototype(My.Package:Page2) < prototype(My.Package:Page){
extensions/overrides
}
but I found no documentation on this, anyone can point me in the right direction?
-
Can anyone tell me why the following snippet is completely ignored?
prototype(Neos.Neos:Page){
body.javascripts.[key] = Neos.Fusion:Tag{
tagName = 'script’
attributes{
src = Neos.Fusion:ResourceUri {
path = ‘resource://My.Package/Public/Js/FlameViewportScale.js’
}
}
}
}
Obviously the file exists and is publicly reachable (the resource is correct), I cleared any kind cache I could think of but it is never added.
i took inspiration from: https://github.com/daniellienert/DL.Gallery/blob/master/Resources/Private/Fusion/Themes/BootstrapLightbox.fusion
A side note I posted the two issues together as I’m facing them in the same project at the same time and I’d like to avoid any connection.
Thanks,
Nicola