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

Call function with params inside twig

Hi,

I have simple question, if i want call function with params inside twig like my example (galerie(article.id)), how i can achieve this?

{% for i, article in articles %}

{{ article.title}}

-->{{ galerie(article.id) }}<--

{% endfor %}

Thank you

Add selector for Ajax Views

I have updated the core/themes/stable/templates/navigation/pager.html.twig markup due to our requirements and this has caused the ajax functionality to stop working.

I have found that the Ajax selector is in core/modules/views/js/ajax_view.js line 99 and I need to add a new selector to make Ajax work on my view.

How could I achieve this?

How to automatically flag an entity when the form is submitted ?

I created a small custom module in Drupal 8 to moderate new entities and update entities.

The module is simple. It marks with the help of the flag module, the entities created or updated automatically.

Here is my module :

Duplicate a content

How to enable option to duplicate a content under /admin/content page

Basically under /admin/content in the content listing section there are options for edit , translate and delete.

I want to introduce an option -duplicate to duplicate any content with ease.

How to do it?

Suggestions are welcome

Google Merchant Center integration

I'm trying to search a module for Google Merchant Center integration. Previously, i tried with Google Feeds module but didn't have results.

Do you know about other modules or differents ways to do that?

Thanks in advance for the help.

Problem with cookie and session cache

I have a problem with the Drupal cache. The cache remembers session and cookie values. Everything works fine if I am logged into the backend or if I turn off the Drupal cache completely. Is it possible to use php cookies and they will not be cached if I am not a logged in user? The problem is with Drupal 8.

Pages

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