-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup basis Context Help Display #13
Comments
Patrick please create a module help_widgets (best using drupal console). The widgets classes have to be located in the forlder src/Plugin/Field/FieldWidget. For the beginning we will make a widget for text fields and text area fields. The widget classes for them are located in
We add two new fields to the widget one for the help text and one for the example. A list of render and Form elemnts in Drupal : https://api.drupal.org/api/drupal/elements/8.2.x |
@fgeyer16: |
@patrickkaleta |
@fgeyer16 I didn't include any CSS (I guess we only need 2 icons and adjust their position in the form) since I'm not sure whether we should put this inside the module itself or more globally inside the theme. What would be the proper way, Florian? Note: The entered paths are being validated before saving, so they have to already exist before being used in the form display. |
Maybe some basic styling could be done in the module.
Just for the widget I would do the later. For curiosity I would do the first :-) |
@fgeyer16 Now I see 2 possible options:
personally, I'm in favour of option 2a. |
Hm maybe I forgot to flush the cache. |
This comment has been minimized.
This comment has been minimized.
To update the module you have to su to docker and then issue a git pull. Editing the module code directly in |
I implemented option 2a. I created a new content type called "Contextual help" with just a body field, where text and images can be added. Then I set up Pathauto to automatically create paths for this content type in the following manner: /help/[Node ID] Those paths can then by used for the help-widgets module. Right now the module is configured for plain textareas and textfields. If we don't need any additional fields for the moment, I guess that we could close this issue? |
Do you need anything for my side or as suggested @patrickkaleta, can we close this issue? |
Provides facilities to show content in popup (Lightbox, ...) with help messages.
The text was updated successfully, but these errors were encountered: