Open joemoe opened 8 years ago
Any updates on this? Thank you
No, there are no updates until now...
Can you hint us on a sample implementation of a simple custom content type. Or which classes, template and config files are required to get it done and how to correctly register it to the sulu cms system.
If I look at SingleInternalLink (choose it to avoid naming collisions when searching through the whole project). I can find the following files:
There are 4 points you have to do.
sulu.content.type
) which implements the ContentTypeInterface
or extend SimpleContentType
.ContentType
(see vendor/sulu/sulu/src/Sulu/Bundle/ContentBundle/Resources/public/js/components/single-internal-link/main.js
)vendor/sulu/sulu/src/Sulu/Bundle/ContentBundle/Resources/public/js/validation/types/singleInternalLink.js
)vendor/sulu/sulu/src/Sulu/Bundle/ContentBundle/Resources/views/Template/content-types/single_internal_link.html.twig
) which starts the component.Example implementation can be found here: https://github.com/sulu/ExampleNewsBundle/pull/14
An example implementation for Sulu 2.0 is available in the sulu-demo repository: https://github.com/sulu/sulu-demo/pull/66
https://github.com/sulu-io/sulu/issues/451#issuecomment-147306832