Quantcast
Channel: User Mark - Drupal Answers
Browsing latest articles
Browse All 15 View Live

Comment by Mark on Limit number of event registrations per month

I tried page redirect, but the registration still completed.

View Article



Comment by Mark on force image style generation on save node

D7's life is limited, but just in case someone comes across this as I did today, a correction. image_style_create_derivative() expects an array for the first parameter, so that line should be:...

View Article

Comment by Mark on How to get each field value in...

This works great. Well done!

View Article

Comment by Mark on Entity print get variable in twig template

Not sure if this changed over time, but shouldn't this line: $node = \Drupal::entityTypeManager->getStorage('node')->load($entity‌​_id); actually be: $node =...

View Article

Comment by Mark on Custom migration: image fields to media

@dibs Were you able to get this working for you? I'm getting the same error.

View Article


Comment by Mark on Altering paragraph field within revision using preprocess...

It's not surprising that I made it more complicated than it needs to be. For some reason, accessing entities programmatically has confused me. Thanks for the advice; I'll look into stripping it down to...

View Article

Comment by Mark on Altering paragraph field within revision using preprocess...

I added a little more context to my question. I'm trying to change some text strings (essentially token strings) in a few paragraph wysiwyg fields with values from another field (product data text...

View Article

Limit number of event registrations per month

I'm creating a membership-based site in D7, using Date, Calendar, and Entity Registration (which was very easy to setup). Only authenticated users may register for an event.I'm trying to limit the...

View Article


Image may be NSFW.
Clik here to view.

Answer by Mark for Send email after updating a field on a webform

I've been working with something that's similar enough that it might help. I'm using the FillPDF module to fill out an editable PDF and send it by email, all through rules. Different results, but I...

View Article


Answer by Mark for Migrate node with paragraph

You'll need to create a plugin within your custom module in order to migrate paragraph fields properly. I just finished this process on a large site. I'm paring down the module to make it a bit easier...

View Article

Answer by Mark for Automatically import fontyourface fonts

A few minutes after posing the question, I found a potential solution:dump the entire fontyourface_font table, and then import it during deployment.It's not quite as elegant as I had hoped, but it'll...

View Article

Automatically import fontyourface fonts

Is is possible to automatically import selected fontyourface fonts via config? Ideally, this would be just the fonts I've selected, not all from the source API.I'm in the middle of a D7 -> D9...

View Article

Answer by Mark for How do I display a node in a block?

There's a module for that now: Quick Node Block. \m/

View Article


Answer by Mark for Limit facets (exposed filters) based on contextual filters...

I was able to use hook_preprocess_facets_item_list./** * Implements hook_preprocess_facets_item_list(). */function mymodule_preprocess_facets_item_list(&$variables) { $facet_id =...

View Article

Limit facets (exposed filters) based on contextual filters in a view

I'm trying to limit terms in a view facet (exposed filter) based on a contextual filter.I have products with a 'category/type' taxonomy term. The terms are 2-level, looking roughly like this:Category...

View Article

Browsing latest articles
Browse All 15 View Live




Latest Images