User login

action links

Adding action links to pages in Drupal 8

To add an action link for creating content of a given node type on a related listing view, you could add to 'example' module an example.links.action.yml file with contents like the following:

Poor theming of action links on node pages

Adding an action link to a node page has proven interesting, in that it does not show up on a stripped-down theme (but it is present in the HTML). (Note: action link code from the Definitive Guide to Drupal 7.)

We are adding this to a view called 'awards' and node number 20.

Syndicate content