Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As you probably know there are about a zillion topics concerning the everlasting pain of the node title not being filled out in a Webform block.
There's some tacky solution out there, but I wondered if the Webform Patched module doesn't provide a clean way to this? In fact, that was what I thought when reading the description of the module on the project page (thought it would supply a node title-token).
Am I missing something or did I misinterpret the description?
(Probably the second...)
Comments
Comment #1
fizk CreditAttribution: fizk commentedFixed! http://drupalcode.org/project/webform_patched.git/commitdiff/1d2c258a61d...
It will be available in the next release.
Comment #2
fizk CreditAttribution: fizk commentedBy the way, the node title shows up fine for me in a webform block using
%title
.Comment #3
fizk CreditAttribution: fizk commentedIf you're looking for the page title or page URL, try
[current-page:title]
and[current-page:url]
.Comment #4
knalstaaf CreditAttribution: knalstaaf commented[current-page:title]
as default value in a hidden field works like a charm. And so does[node:title]
in the e-mail subject.Brilliant! Thank you.
This module pops out the cork of a bottleneck that has been around for years!
Comment #5
s1work CreditAttribution: s1work commentedDo clean URL's need to be on in order for this to work?
Because I can't get this to work at all. Every time I submit the form from a block, I get the webform's title and not the title of the page the form block is on.
Comment #6
knalstaaf CreditAttribution: knalstaaf commentedClean urls are not necessary AFAIK. Are you sure you're using the proper token (and is the Token module enabled)?
Comment #7
s1work CreditAttribution: s1work commentedI've used all different kinds of tokens, but to no avail.
Yes, token module is enabled.
Comment #7.0
s1work CreditAttribution: s1work commentedsearch query
Comment #8
drein CreditAttribution: drein commentedMe too, I obtain always the title of the base webform.
I'm using webform patched 3.19, not the dev.
The only way I can have the url of the page is with the %server variables.
The block is configured to be displayed only on some pages, not in all pages, perhaps is that?
very strange!