The comment in #110 works perfectly (I only use the GA portion).
Thanks!
This patch fixes this behaviour for me
Thank you for your swift reply and testing the patch.
π
I've added a patch to make sure "navigation_layout" can't be disabled anymore.
So for reasons beyond my control the "navigation_layout" seems to exist (core module navigation) and is something that is considered needed.
If that's the case it would be best to alter this module so you can't disable it (since it will throw the error I mention).
For now I disabled this module and disabled / hide the layouts with the following code in case somebody has the same problem as I do.
In this example I hide all the layouts except the one col layout.
/**
* Implements hook_layout_alter().
*/
function YOUR_MODULE_layout_alter(&$definitions)
{
// an array of layouts to keep.
$layoutsWhitelist = ['navigation_layout'];
// layouts that are required and cannot be removed.
$requiredLayouts = ['layout_onecol', 'layout_builder_blank'];
$layouts = array_merge($requiredLayouts, $layoutsWhitelist);
$definitions = array_filter(
$definitions,
static fn(string $id) => in_array($id, $layouts, true),
ARRAY_FILTER_USE_KEY
);
}
/**
* Implements hook_preprocess_item_list__layouts().
*/
function YOUR_MODULE_preprocess_item_list__layouts(&$variables)
{
// For some reason removing this layout breaks the website so we hide it.
$layoutToHide = ['navigation_layout'];
$variables['items'] = array_filter(
$variables['items'],
static fn(string $id) => !in_array($id, $layoutToHide, true),
ARRAY_FILTER_USE_KEY
);
}
You are welcome, enjoy the module!
The README file and the Project detail page have been updated to support installation via Composer.
Dear Duckydan
Thank you for this suggestion, this would indeed improve the developer experience.
I'll test this and add it the Readme after my vacation.
Thank for your patience
Fons
A configure link was added in the D11 release.
Thank you, i'll review this patch.
I just released a Drupal 11 update.
Just scanned the code of the module real quick and indeed this module would need a good portion of rewrites in order to work with Layout Builder.
Glad it worked!
Good luck with the project
I think this has to do with a z-index on your bg header.
Have you tried one of the following:
- Change z-index configuration from auto to for example 999.
- Alter the Header Z-index with Dev Tools in your browser to see if the issue is then resolved?
Best regards,
Fons
The patch in #45 did the trick and I could reinstall BigPipe. Thank you for the workaround!
Uninstalling Big Pipe fixed the issue for me so this is a temporary workaround.
I am experiencing the same issue after updating to Drupal 10.3
status-messages.html.twig is not being suggested.
I'm using a custom theme that I made.
Thank you!
I've updated the module page as it was still talking about the email address.
Hey nginex,
If it is a new platform with no users that will work.
If you have an existing platform with users in it already and all of a sudden they start using the Social Strava button login instead of their emailaddress this will create a new account instead of logging in their existing account (no match on email address) so I do think this will have an impact.
Good luck!
Hello nginex,
I just checked the existing module and API to have an idea of the changes that will be needed to make the module work again.
When investigating this I noticed the following notification:
"January 15, 2019
Email address is no longer part of the profile:read_all scope and is removed from the athlete model."
I also checked the API documentation and it looks like Strava does not return an e-mailaddress anymore. When you would authorize there is no way of checking/matching the e-mail with existing users. So you wouldn't know if you need to login an existing user or create a new user.
This is something to look into before putting effort in this module as I don't think it's possible anymore.
I look forward to your feedback.
Dear nginex, that would be awesome!
I added you as a maintainer, if I can be of any help (for example testing).
Feel free to contact me.
Thanks a lot in advance!
Thank you for your input.
I deleted the link on the module page, I wasn't aware that the site was hacked and/or redirects to a russian website without a https:// link.
The module still has a lot of use cases as you can create a sticky element without the need of custom css and/or a custom theme. It works out of the box with for example the Olivero theme with the following setup.
Thank you all for your input, I donβt think the initial patch adds any value to the module so Iβm closing this issue for now.
Thank you!
I'm sorry, I've added the release notes. This was a very small update that only adds D10 compatibility and doesn't change/add anything else to the module.