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

where to put base_table in drupal 8 module

Hello,

I'm using the Content_entity_example from the awsome https://www.drupal.org/project/examples module. I have created an alias in the settings file to `my_other_DB` Where in the code should I change the base_table `my_other_DB.my_table` and can I just use dot notation to specify the other DB and table?

Thanks

using a custom entity within an custom other entity

Hi, :)

So I created a module that creates a library entity with category (dewey classification), title, author date borrowed etc.. on one site and a module that creates an entity of subscribers on the other side. Now I will like to call subscribers_entities from the subscriber entitymodule to the library_entity module. 

I'm also wondering if it was possible to create several entities within a module of if it's better to separate them (like I'm currently doing). 

Thanks

Form with AJAX 'add/remove' buttons

I created a form with ajax buttons to add / remove a person.

Where to put PHP packages needed by a module ?

I'm developing a module , this module will need some php packages from packagist.org.

Where should I install these packages ?

Should I install it in the vendor folder next to the docroot ? Or install it inside the module folder?

I think it might be better to install package inside the module folder,  unless this package will be used in other modules.

Thanks for your advice.

How to create a view to display the nodes of a flagged group ?

I installed the Group, Message and Flag modules.

When a user creates content in their group, it generates a message.

On the group I created a personal flag "Follow".

I created a view to display on my user's home page, a news feed (with messages) to display the nodes of the group it follows. But I failed to display the nodes of the marked groups.

How can I do this ?

I managed to do this with the products of the stores flagged, but I did not succeed with the nodes of the groups flagged.

[![enter image description here][1]][1]

How to change view with ajax and a toggle ?

I created 2 block views:

message_activity_stream_timeline_public

message_activity_stream_timeline_private

I added the following code in the TWIG template of my homepage :

<div class="main-timeline">
{{ drupal_view('message_activity_stream_timeline_public', 'block_1') }}
{{ drupal_view('message_activity_stream_timeline_private', 'block_1') }}
</div>

Pages

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