Comments (11)
composer.json bits for ref
"silverstripe/cms": "3.1.*@stable",
"silverstripe/framework": "3.1.*@stable",
"sheadawson/silverstripe-blocks" : "1.0.8"
from silverstripe-blocks.
Hi Will,
I've just tested and seems to be working for me, with those same cms/framework versions.
Is this the view where you are not seeing an add button? Got a screenshot? Can you paste in your block yml config.
from silverstripe-blocks.
Hello, thanks for making this wonderful module.
I got the same problem, installed three times on two different blank new sites to test it.
Here's my composer.json
file
{
"name": "silverstripe/installer",
"description": "The SilverStripe Framework Installer",
"require": {
"php": ">=5.3.3",
"silverstripe/cms": "3.4.1",
"silverstripe/framework": "3.4.1",
"silverstripe/reports": "3.4.1",
"silverstripe/siteconfig": "3.4.1",
"sheadawson/silverstripe-blocks": "^1.1",
"unisolutions/silverstripe-copybutton": "^1.0",
"micschk/silverstripe-gridfieldsitetreebuttons": "^1.0",
"micschk/silverstripe-excludechildren": "^1.1"
},
"require-dev": {
"phpunit/PHPUnit": "~3.7@stable",
"oddnoc/silverstripe-artefactcleaner": "^3.0"
},
"config": {
"process-timeout": 600
},
"prefer-stable": true,
"minimum-stability": "dev"
}
from silverstripe-blocks.
Can you paste you yml config here, that's probably where the misconfiguration is, if it's a miconfiguration problem
from silverstripe-blocks.
---
Name: mysite
After:
- 'framework/*'
- 'cms/*'
---
# YAML configuration for SilverStripe
# See http://doc.silverstripe.org/framework/en/topics/configuration
# Caution: Indentation through two spaces, not tabs
SSViewer:
theme: 'simple'
BlockManager:
themes:
simple:
areas:
Sidebar: true # a Sidebar area will be available on all page types in simple theme
BeforeContentA:
only: HomePage # a BeforeContent area will be available only on HomePage page types in simple theme
AfterContentB:
except: HomePage # a AfterContent area will be available on all page types except HomePage in simple theme
Footer: true # a Footer area will be available on all page types in simple theme
use_blocksets: true # Whether to use BlockSet functionality (default if undeclared: true)
use_extra_css_classes: true # Whether to allow cms users to add extra css classes to blocks (default if undeclared: false)
prefix_default_css_classes: 'myprefix--' # prefix the automatically generated CSSClasses based on class name (default if undeclared: false)
#pagetype_whitelist: # Enable the Blocks tab only pages of these types (optional)
# - HomePage
#pagetype_blacklist: # Disable the Blocks tab on pages of these types (optional)
# - ContactPage
#disabled_blocks: #allows you to disable specific blocks (optional)
# - ContentBlock
use_default_blocks: true # Disable/enable the default Block types (ContentBlock) (default if undeclared: true)
block_area_preview: true # Disable block area preview button in CMS (default if undeclared: true)
from silverstripe-blocks.
I think it is not picking up the default ContentBlock
, so it doesn't have something to add and the Add button doesn't show up. Note that use_blocksets
, use_extra_css_classes
,prefix_default_css_classes
are tabbed under \BlockManager\themes\simple
, while use_default_blocks
,block_area_preview
are tabbed under \BlockManager
. Also note I'm using the default simple
theme
from silverstripe-blocks.
I ran into the same issue. The yaml config logic is not working correctly. The default content block and the button do show up when "use_default_blocks" is not the config. When it is there the content block is hidden and the button doesn't show up (assuming that there are no other blocks).
from silverstripe-blocks.
So I can either comment out use_default_block: true
or add a custom block type to have the add button show up?
from silverstripe-blocks.
Thank you very much @sheadawson!
from silverstripe-blocks.
Just ran into another config issue causing the button not to show up. The module requires the same theme name in the block manager conf that the SSViewer is set to:
SSViewer:
theme: 'mytheme'
BlockManager:
themes:
mytheme:
Hope this helps.
from silverstripe-blocks.
thank you very much @sonet
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.