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

using AJAX to load hidden content in background

I'm trying to become more comfortable with AJAX outside of forms and have checked some helpful pages to get me to this point. In D7, I built a custom module that loaded up two HTML tables, one with a few hundred rows and a second with a few thousand rows. The latter was wrapped in a div that was hidden. That meant the user had to wait for both tables to finish before the page loads. 

videos on product listings

Hi

is there a way to add videos of a product i sell, sort of what amazon allows on their product listings?

i use drupal commerce on drupal 7

thank you

ben

Taxonomy and entity reference within it

I have added a taxonomy list and created an entity reference field within that taxonomy list under "manage fields". The idea was to set the default value of the field to an existing node. Now in the twig I've been trying to retrieve the url. By default the taxonomy name selected is out put {{ content.field_db_product_type }} but my field name for the entity reference is field_product_type_link which should have the url to the content the field is populating. I just cannot get the field constructed correctly to allow me to get some of the values. 

Why so many arrays and not Objects?

Hi,

I'm new to Drupal and just started creating my first modules.
My knowledge of Drupal is therefor a bit limited at this time, which is also why I ask this question.

Coming from Laravel, everything is built with Objects and fluent interfaces which makes development a breeze.
I have IDE code completion and know which methods I can call, which datatypes are expected, returned etc. except for some interchangeable drivers/adapters.

Module D7 to D8 upgrade (String Overrides)

Hi community,

I'm a student at HoGent studying applied informatics.

For an assignment we have to upgrade a D7 module to D8.

I choose for the module called "string overrides" its a small module to convert strings in an easy way.

I don't have lots of drupal experience but i am willing to learn.

Does anyone have some links or "tips &tricks" to succesfully upgrade this module, or is willing to help on this?

Kind regards,

Alex pieters

Drupal Cache: When $allow_invalid=TRUE is used in get and getMultiple?

Hi all,

I am working on the migration of a dedicated cache implementation module from D7 to D8/9 and I haven’t found yet use cases for $allow_invalid=TRUE when we fetch a value from the caches (when an entry has been deleted, it seems logical to receive a FALSE as answer). And as this parameter is in the API, I suppose that it is used, but when?

If someone could give me some information about the use cases for $allow_invalid=TRUE, it would be really helpful in order to finish this migration :)

Best

Pages

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