This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Webform custom handler response

Hello, I've wrote a minimal custom handler for drupal webform 8-x, it works as expected;

now I'd like to send back to the webform some custom text to display to the user; the text

depends from the webform submission fields values; I've read I could use the "[webform:handler:?]" token

but I don't understand how to put values in it from the module. I think the token will be something like:

[webform:handler:my_custom_module:completed:mytext]

but I'm unable to find a (simple) working example: I'm not a drupal programmer, the example could help me a lot

Output images in views-view-fields template with alt text

I'm using a view template that outputs an image along with a few other fields. views-view-fields--blogs--page.html.twig. Image is output using {{ fields.field_blog_image.content }} but the alt is blank (alt=" "). The nodes themselves output the image with the alt attribute. I don't see any template overrides where I could drill down more. Is there a way to construct these image tags to include other attributes?

Ajax multistep form skips second step

I have a three-step Drupal form that queries a public API and builds nodes based on user selection. I have pored over the Examples for multistepForm (which is not AJAX) and adapted mine to model after the AjaxAddMore example. But my second submit handler nominally gets called but not run.

The logic for form building is in buildForm() while the submit handlers are supposed to run the logic for the parameters of each buildForm(). For now, my validate function is empty.

400-499 http status code - while submitting the site in Search Engines

Need help here. I was trying to submit the URL in Bing, Yandex but both returned the error 200 forbidden or 400-499 http status code. I have updated the sitemap in robots.txt, whereas the site has indexed in Google. Except google none of the search engines are unable to crawl. Unable to identify the issue on what wrong on this URL. (www.travoline.com)

Programmatically triggering consecutive feeds Drupal 8/9.

Hi,

I have a series of feeds that need to run one after the other. The feeds consist of events, and then the speakers at those events. They are contained in the same CSV but the speakers are paragraphs. This means I cannot currently do it in one feed due to the current state of the Feeds module.

The way I have planned to do this is to listen for the "IMPORT_FINISHED" event and, based on the ID of the previous event, trigger the next one. I cannot get this to work as I cannot find any documentation or examples on how to programmatically trigger a feed.

Module Review For Drupal 9

My website: nguyenphudung.com need a module review and auto generate Review snippet. My site uses Drupal 9. Which module can do it? Thanks

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions