Hello everyone, a very simple query 🙈 ... how can I put an action call button on a node.
Let me explain myself, I have a content that is a file of a pet .. and I want to put a button that leads to a unique form, but whoever uploads the information cannot edit the link of this button ..
a unique bonton for all the entries of this content
Comments
Hi willof,
With or without coding? If you have a custom theme, anyway, you could do hook_node_view to add some markup.
You could also attach some custom markup in the layout (custom block...), and restrict it with visibility conditions.
You could also create a views block with contextual filter - depends, if you need some info from the current node, or if you really only need a link styled as button.
... I'm pretty sure, there are 10 more ways to achieve what you need. ;-)
Hello, thanks for answering.
I have already managed to put a link to the form, but now I cannot find the token to know where the form is filled from.
Ah, it's about the node form - didn't realize that.
Am I getting this right now, that you want to automatically fill a node form field? Which type of field?
There's for instance the Prepopulate module.