Problem/Motivation
The module only allow to set a single Google Place ID and we need to be able to set different place id's for each of our locations.
Proposed resolution
Add place ID field for the `Google Reviews Rating` and `Google Reviews List` blocks.
Remaining tasks
Review
| Comment | File | Size | Author |
|---|
Issue fork googlereviews-3362535
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
gtr18 commentedComment #3
ptitb commentedHi @GTR18, Looks like a good feature! It might be a good idea to remove the place id from the settings altogether, and only use a place id in the blocks. I'll take a look at this!
Comment #4
christian deloach commentedThank you ptitb for this module. It works great!
My client has several location, and each location has their own set of ratings and reviews. It would be great to provide support for multiple Google Place ID's in the same block, combining the reviews and averaging out the rating.
Comment #5
ptitb commentedHi Christian,
This is a very specific use case which won't be supported.
Though it might be possible to add multiple blocks for multiple locations in the future.
Maybe you can alter this module or use it as a starting point to build the functionality you need!
Comment #6
frogdog_tech commentedTested and confirmed #2 works great. Was also able to pass in the google_place_id via twig tweak
drupal_block()params very nicely.Comment #7
drupaldope commentedwould this patch also work as a dynamic block in the manner of a view block, using a token or a node's place ID?
Comment #8
eric heydrichHi, I tested the patch. The following problem is coming up:
If no reviews exist at the configured location, the block produces an error. The page shows an error (WSOD). Even editing the page afterwards isn't possible any more.
Comment #11
sleitner commentedRerolled as a MR. Added schema and place url in rating template. Please review
Comment #13
sleitner commented