Comment by Mark on Limit number of event registrations per month
I tried page redirect, but the registration still completed.
View ArticleComment 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 ArticleComment 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 ArticleComment 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 ArticleComment 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 ArticleComment 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 ArticleLimit 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAutomatically 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 ArticleAnswer by Mark for How do I display a node in a block?
There's a module for that now: Quick Node Block. \m/
View ArticleAnswer 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 ArticleLimit 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
More Pages to Explore .....