Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show content across all drupal instances #12

Closed
fgeyer16 opened this issue Apr 28, 2019 · 4 comments
Closed

Show content across all drupal instances #12

fgeyer16 opened this issue Apr 28, 2019 · 4 comments
Assignees
Labels
BB: Marketplace myclimateservice.eu Marketplace
Milestone

Comments

@fgeyer16
Copy link
Contributor

Profile informations, Solutions offer, show cases, and so on have to available on all Drupal instances (CSIS, Marketplace,Profile,..). There are two posibilites to archieve this goal:

  1. Synchronise all content over all instances or
  2. Get content by REST and ajax where we need it.

To solution 1:
I found some modules which would do the job for 1 for us but they need an external pay service (https://www.drupal.org/project/entity_pilot)or relay on JSON API v1 while we already use v2 (https://www.drupal.org/project/entity_share). We can also archive the goal by using Drupal core functionality. The drawback of multiplicating content over the instances is, that we have an bigger maintenance workload since we have to do changes in structure on every instance: Changes in the content has also to be synchronized. This will not be a problem at the beginning, but if the site grows keeping all the content synchronized can get a performance problem.

To solution 2:
If we fetch the content to show from the drupal instance it originates, we have only one point to maintain structure and there is no need to synchronize content. Since drupal views provides a REST Display, we can filter the content in the same way if it is on the same drupal instance. Only complicated qureies which require heavy use of relationships are not possible over drupal instances then. I think this can be overcome by using more links to other views.

I prefer Solution 2 and already started to create a custom module, which allows embedding external content by a block or field.in an entity.

@fgeyer16 fgeyer16 self-assigned this Apr 28, 2019
@p-a-s-c-a-l p-a-s-c-a-l added the BB: Marketplace myclimateservice.eu Marketplace label Apr 29, 2019
@p-a-s-c-a-l p-a-s-c-a-l added this to To Do in T5.4 Climate Service Marketplace via automation Apr 29, 2019
@p-a-s-c-a-l
Copy link
Member

Thanks, imho Solution 2 is a reasonable choice.

@fgeyer16
Copy link
Contributor Author

fgeyer16 commented May 6, 2019

So the first Version of the remote content module is now available under https://github.com/fgeyer16/scc_remote_content
This is a private repo for know.
@patrickkaleta @p-a-s-c-a-l @therter
Since you three an me are the main active people in drupal you should have got an invitation to collaborate in this repo. So you can clone and test it (and check if the explaeinations are understandable...). For installation just clone the repo in the web/modules/custom directory of a drupal 8 installation.
If I missed somethging at the permissions on the repo and you can not access it please let me know.
Other way to get the module:

scc_remote_content-master (1).zip

@patrickkaleta
Copy link

@fgeyer16 just had a quick look at it. Pulling from your private repository worked fine. For the sake of completeness I'd just like to mention that after cloning the module it also has to be enabled in the Modules section (name of the module is "Remote Content").

Not sure I understand the "id" field on the RemoteSource page and how to fill that one out.

@fgeyer16
Copy link
Contributor Author

After a first feedback from @patrickkaleta I changed the configuration interface and the configuration handling in the background. The configuration pages move from /admin/config/system to /admin/config/services.
Since the module is not in wide use now I die not make a hook_update. so existing configurations will be lost un update.

scc_remote_content.zip

T5.4 Climate Service Marketplace automation moved this from To Do to Done Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BB: Marketplace myclimateservice.eu Marketplace
Projects
No open projects
Development

No branches or pull requests

3 participants