Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I can't install the module because the following error is output.
"Unable to install Paragraphs Table of Contents due to unmet dependencies: block.block.views_block__ptoc_block_1 (bartik)"
Hope this is helpful :)
Comment | File | Size | Author |
---|---|---|---|
#5 | 2875858-ptoc-5.patch | 289 bytes | benjifisher |
Comments
Comment #2
FleurJ CreditAttribution: FleurJ commentedHi kingfisher64,
I hope you solved the problem since then. Just in case : I had the same problem today and solved it by enabling bartik theme even if I don't use it.
Comment #3
Liliplanet CreditAttribution: Liliplanet as a volunteer commentedYes please, if we could remove dependency on Bartik would be awesome :)
Comment #4
DakwamineI am not sure if it is possible to remove the dependency to a theme as blocks are meant to be added to a theme layout.
I think it would be better to have this block not installed on module install and just tell in the README to add this block in a region of the current active theme. It is pretty obvious we, as site builders, would have to add this block somewhere, some time.
Comment #5
benjifisherThanks to @kingfisher64 for reporting the problem and to @FleurJ for explaining the work-around.
I think all we have to do is move the YAML file for the block from the
config/install/
directory toconfig/optional/
. I just did this, and the module installed cleanly on a site with Bartik disabled. Even better: once I installed Bartik (just installed, not made the default) the block was enabled for the Bartik theme.I thought I would also have to add a few lines to the README, but I already see this:
Please give this patch a try.
Comment #6
benjifisherFor reference: the change record for optional config is Optional configuration provided by modules and themes is now stored in config/optional.
Comment #8
benjifisherIt is time to get this issue fixed, even though I was not able to find anyone to test it.