sitegeist / sitegeist.archaeopteryx Goto Github PK
View Code? Open in Web Editor NEWThe missing link editor for Neos
License: MIT License
The missing link editor for Neos
License: MIT License
I don't know how this could be achieved, but it would be great to support the new Media UI if installed. This is already possible for the Image and Asset property editor in Neos, but it doesn't work here. I assume it's a hardcoded dependency to the "old" Media UI?
Hello,
the problem is a bit more complicated to describe, so a slightly different listing:
Initial situation:
What do I do that the error comes:
So I can continue working:
At the moment an option to restrict the allowed node types for the node link type editor is missing. A configuration option and a corresponding visual indication as well as a selection logic need to be added the the node link type editor.
i think we target ES5 (we can better straight go to 2020) also its not minified at all and might even be the dev build.
I already had some links on my site using the tel: ...
scheme.
After installing Archaeopteryx and trying to edit these links, the following error occurs:
TypeError: Cannot read property 'useResolvedModel' of null
at DialogWithValue (.../_Resources/Static/Packages/Sitegeist.Archaeopteryx/JavaScript/Plugin.js?f0f01c36:34134:27)
at oh (.../_Resources/Static/Packages/Neos.Neos.Ui.Compiled/JavaScript/Host.js?41a91e0c:2:1031880)
at xo (.../_Resources/Static/Packages/Neos.Neos.Ui.Compiled/JavaScript/Host.js?41a91e0c:2:1079133)
at Qj (.../_Resources/Static/Packages/Neos.Neos.Ui.Compiled/JavaScript/Host.js?41a91e0c:2:1071446)
at Kj (.../_Resources/Static/Packages/Neos.Neos.Ui.Compiled/JavaScript/Host.js?41a91e0c:2:1071371)
at yj (.../_Resources/Static/Packages/Neos.Neos.Ui.Compiled/JavaScript/Host.js?41a91e0c:2:1068278)
at .../_Resources/Static/Packages/Neos.Neos.Ui.Compiled/JavaScript/Host.js?41a91e0c:2:1018959
at w.unstable_runWithPriority (.../_Resources/Static/Packages/Neos.Neos.Ui.Compiled/JavaScript/Host.js?41a91e0c:2:1095451)
at cg (.../_Resources/Static/Packages/Neos.Neos.Ui.Compiled/JavaScript/Host.js?41a91e0c:2:1018668)
at fg (.../_Resources/Static/Packages/Neos.Neos.Ui.Compiled/JavaScript/Host.js?41a91e0c:2:1018904)
It would also be great to have the tel:
scheme as an option, similar to mailto:
Currently, all linkTypes are always visible in the Link Editor. I know that is meant more or less a drop-in replacement for the Link Editor, but the original is already hard to use. It would be a massive advantage if the tabs could be unset or disabled. That way the editor could be used for an external link, internal link, phone number etc. only.
Due to a core change in neos/neos-development-collection#4561 (comment), using abstract node types for contraints in Sitegeist.Archaeopteryx:Node
doesn't work anymore.
If you have an link with an hash (e.g. #newsletter
) the editor returns following error:
Could not find an editor suitable for "#newsletter"
And if I try to click + Create Link
I got the error:
TypeError
can't access property "useResolvedModel", linkType is null
That would mimic the behavior of the normal link editor.
As far as i can tell, this
In https://github.com/sitegeist/Sitegeist.Archaeopteryx/blame/a003751455ccd6759cd6968dea11c08481ee4296/Neos.Ui/core/src/application/Dialog/Dialog.tsx#L33-L40 we filter out unsupported link options, but as we declare the field relNofollow
internally with a different casing relNoFollow
, we always filter it out:
My thesis is that the relNofollow
has never worked before.
If you use a property with the RichTextEditor
, you cannot set a link because the link editor modal is behind the Rich Text Editor.
foo:
type: string
ui:
label: 'Foo'
reloadIfChanged: true
inspector:
group: foo
editor: 'Neos.Neos/Inspector/Editors/RichTextEditor'
editorOptions:
linking:
'Sitegeist.Archaeopteryx':
linkTypes:
'Sitegeist.Archaeopteryx:Node':
allowedNodeTypes: ['My.Site:Document.Mixin.LinkablePage']
When creating a link with the Sitegeist.Archaeopteryx Editor the Link overlay from the editor is stacked under the UI overlay. But the link overlay should be displayed first.
link:
type: string
ui:
label: Link
showInCreationDialog: true
help:
message: 'Create a link'
inspector:
editor: 'Sitegeist.Archaeopteryx/Inspector/Editors/LinkEditor'
The overlay of from the Archaeopteryx editor should be at the first.
The link overlay from the Archaeopteryx gets stacked under the UI overlay
[What actually happened]
Neos: 8.3
UI: 8.3.3
You can get this information by running composer show
or using the package management module within Neos.
The UI version can also be found inside the left sidebar after version 1.0.3.
Originally posted by @crydotsnake in neos/neos-ui#3583
In the Neos Core link editor, editors defined node links with additional hashs in the form node://XXXX#section-id
This is supported and work, now installing Archaeopteryx leads to error, e.g. "node://7b7a2070-0e85-44b6-92b7-c4135e3555b5#ausschreibungen" breaks like this making it impossible to edit:
The same error can be achieved by picking the custom editor and then entering "node://7b7a2070-0e85-44b6-92b7-c4135e3555b5#ausschreibungen"
As a minimum the editor should show this as a custom link and not fully break. Fixed with #60
It would be nice of an editor could be turned of:
editor: 'Sitegeist.Archaeopteryx/Inspector/Editors/LinkEditor'
editorOptions:
linkTypes:
'Sitegeist.Archaeopteryx:Node': false
'Sitegeist.Archaeopteryx:MailTo': false
With the current version, the sorting of the tabs is more in line with what we expect to be normally requirements, however I still think it would be great to have the editors sortable.
What do you think?
The node tree is not loading corretly, if the user role has node acces restricts and therefore can not acces every node in the document tree.
When an existing link is edited only the tab of this linktype is visible. The other tabs become visible once the link is cleared.
I would expect that all tabs are visible from the start and a link can be overridden by assigning a new target in any tab.
Thanks for the nice Link-Editor!
Am I missing something or is it not possible to activate the options "TargetBlank" and "RelNofollow" in the Inspector view?
inspector:
group: 'image'
editor: 'Sitegeist.Archaeopteryx/Inspector/Editors/LinkEditor'
editorOptions:
# doesn't work
# linking:
# relNofollow: true
# targetBlank: true
linkTypes:
# doesn't work
# 'Sitegeist.Archaeopteryx:Web':
# relNofollow: true
# targetBlank: true
'Sitegeist.Archaeopteryx:PhoneNumber':
enabled: false
The editor Sitegeist.Archaeopteryx:Node
is called "Document" in English and "Dokument" in German, which is in line with the term Document node type and also "Document tree"/"Dokumentenbaum". While I see this consistency, when setting a link, it can be misleading because at least in German, you would think that a "Document" is something like a PDF file.
I'm not sure what others think about the naming. Maybe it would just be good if there was a possibility to override the label.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.