Formfields - main or sidebar
Description
Deployment actions
Technical tasks
add new field to Attribute/annotation (https://eactive.atlassian.net/browse/INTEGRATED-1801#icft=INTEGRATED-1801 will make attributes possible, so files might differ)
src/Common/Form/Mapping/Annotations/Field.php: add new field
src/Common/Form/Mapping/Driver/AnnotationDriver.php: process the field data
\Integrated\Common\Content\Form\ContentFormType
split the formfields in group main & sidebar, based on the newly added data
groups should be optional as this is not preferred by some contentType. For example content that has no editor. but configurations Video Image Person.
src/Bundle/ContentBundle/Resources/views/content/edit.html.twig:
render the new groups in the right places (instead of the individually rendered fields it currently has)
Activity
Gerben Bosch January 17, 2023 at 9:12 AM
@Maartje Wessels-Wouda @Marijn Otte Zegt mij ook niets. Marijn pak jij deze op?
Maartje Wessels-Wouda January 17, 2023 at 8:20 AM
@Marijn Otte @Gerben Bosch Kunnen jullie dit nog bekijken? Of mij laten weten waar ik het kan testen zodat ik het over kan nemen? Kom daar namelijk niet helemaal uit.
API January 13, 2023 at 10:32 AM
.Notificatie preview gestuurd naar Gerben Bosch (gerben@e-active.nl)
Koen Prins December 29, 2022 at 7:55 AM
@Marijn Otte List of places where annotations where removed:
Article.php:
Authors: location= "sidebar",icon= "feather",
source:
location= "sidebar",icon= "megaphone",
sourceUrl:
location = "sidebar",icon = "arrow-up-right-from-square",
Content.php:
slug:
location = "sidebar",icon = "link"
disabled:
location = "sidebar",icon = "copyright"
copyrightRestrictions
:location = "sidebar",icon = "copyright"
The rest was either possible, or moving the label to attr which was reverted
API December 22, 2022 at 11:32 AM
.Notificatie urenschatting gestuurd naar Gerben Bosch (gerben@e-active.nl)
Background
It should be possible to decide if a formfield is positioned on the main content area, or in the sidebar.
Requirements
Add an attribute to set the UI location and icon:
#[Type\Field(name: "Author", location="sidebar", icon="pin_alt")]
Split the content form in “main” and “sidebar” and replace the current rendering of separate fields (https://bitbucket.org/eactive/integrated/src/56b0c394ed46c3c5efdf9e086c069e34750f6a35/src/Bundle/ContentBundle/Resources/views/content/edit.html.twig?at=release%2F0.80) by rendering the whole area
When the attribute is not set “main” is the default
Note: it is possible that the main area or sidebar is empty in some cases
(it might be a future addition to override the UI location in the content type configuration)