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

Search Replace serialized data in DB

Some modules use serialized data in DB. And we need to replace text throughout in the system.

When using SED or other text based search and replace, the serialized byte count does not get updated

Regular sed or text based replacing would do:

   s:9:"oldstring";

   s:9:"this is my new string";

But if serialized is used, the counter must as well be re-run to mark 21

   s:9:"oldstring";

   s:21:"this is my new string";

Any ideas !?

Google Analytics report from AB Test

Hello, may someone please care to assist with the output of my Drupal AB Test setup.

I wanted to follow a simple AB Test UI setup for which I:

- Created an AB test UI on Drupal 8

- Created a custom dimension on Google Analytics, copied the JS code and pasted it on Drupal under Config>>System>>Google Analytics under Advanced settings

var dimension14Value = getTestDataForUser();
ga('set', 'dimension14', dimension14Value);

custom rule action help please

I use the rules module, and I need to execute custom php code when the rule "after user is updated" is triggered.

I followed the steps described here
https://codimth.com/blog/web/drupal/how-create-custom-rules-event-drupal-8

and managed to get as far as being able to run PHP code, but I'm unable to reference the user that has been updated.

I guess I need the right contextual variable.

The example code looks like this

How to RESTful Node Creation via POST in Drupal 9?

Hi,

I have developped a module based on this project here. I can load the list of views and I can delete them using the same mechanism as the project, i.e getting the token from

/session/token

My axios object looks like this:

How to RESTful Node Creation via POST in Drupal 9?

Hi,

I have developped a module based on this project here. I can load the list of views and I can delete them using the same mechanism as the project, i.e getting the token from

/session/token

My axios object looks like this:

I can't get "Embed view shortcodes" module to display a block

In the description for the module, "Embed view shortcodes" it says:

"The syntax for embed block is [block id="block_id"][/block]"

I have tried to apply this shortcode to this page:

https://www.pasocolombia.org/draft-jan-29-2021

The shortcode I'm using is:

[block id="md-slider-14-block"][/block]

Pages

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