Comments (7)
Please check your yml block config against the example given in the readme. If you can't see the issue, paste your config here and I'll have a look at it
from silverstripe-blocks.
Hi sheadawson,
This is my block config in /mysite/_config/config.yml (as I said works fine till version 1.0.7):
BlockManager:
themes:
main:
areas:
AfterContent: true
Thanks!
from silverstripe-blocks.
I suspect this is an issue with how your themes are set, and how this module checks for which theme is set. I'm not sure at the moment if we should change how the module does this, need to think a bit more about it.
The blocks code in question is here https://github.com/sheadawson/silverstripe-blocks/blob/master/code/BlockManager.php#L143, the getTheme
method.
To fix the issue from your end, I think you need to choose how you want to set your theme. Either in yml config via SSViewer:theme
or in the SiteConfig (CMS Settings area), but not both. Let me know how you go :)
from silverstripe-blocks.
Thanks for reply.
I tried something with your suggestion in v 1.0.11, but I think this isn't the issue. I removed the theme set from the yml file. Even when I change this method to:
private function getTheme()
{
return "main";
}
So when I hard coded my theme, the Blocks tab doesn't appear, back to 1.0.7 it appears. I have this issue in multiple websites, so if this happens to me only I do something wrong structurally :) Well, for now 1.0.7 works fine for me.
from silverstripe-blocks.
Interesting. Yeah I've double checked my test: fresh install of SS 3.4.0, Blocks 1.0.11, your exact yml config and I see the blocks tab.
If you have a moment to check, it probably wouldn't be too hard to debug if you follow the code through from the logic at the top of BlocksSiteTreeExtension->updateCMSFields
method
from silverstripe-blocks.
I found the problem:
In line 68 of BlocksSiteTreeExtension->updateCMSFields there is no default translation for Blocks:
$fields->addFieldToTab('Root', new Tab('Blocks', _t('Block.PLURALNAME')));
So if the used language has a language yaml file the tab will have a name and will appear. But for my language (Dutch) there is no yaml file, so no name to display.
So this line should be:
$fields->addFieldToTab('Root', new Tab('Blocks', _t('Block.PLURALNAME', 'Blocks')));
In version 1.0.7 no translation is used yet :)
from silverstripe-blocks.
I see, thanks for that!
from silverstripe-blocks.
Related Issues (20)
- No blocks tab in page view on SS 3.5.3 HOT 4
- Misleading draft button state
- SilverStripe 4 alpha7 versioning - incorrect namespace
- CMSFields error adding blocks to DataObjects HOT 1
- Blocks don't show in edit page view HOT 6
- Update composer requirements for Symbiote vendor
- Symbiote - namespacing vendor updates in use statements
- Class 'SilverStripe\Core\Object' not found in BlockManager
- BlocksSiteTreeExtension - references BlockSet `PageTypesValue`
- SS4 - used Versioned buttons in CMS
- release tag, please HOT 1
- BUG incorrect symbiote package names in 1.1 branch HOT 1
- Default block area HOT 1
- After duplicating block, content is linked in original & duplicated block.
- Dependent issue Symbiotic 4.x-dev HOT 3
- Using silverstripe-blocks with blog module
- compatible issue with silverstripe-gridfieldextensions 3.1.1
- Silverstripe 4.1 and the future? HOT 3
- SS 3.7.2 / PHP 7.2 Compatibility HOT 1
- multivaluefield 3 is SS4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from silverstripe-blocks.