Git Product home page Git Product logo

Comments (11)

asecondwill avatar asecondwill commented on July 30, 2024

composer.json bits for ref

    "silverstripe/cms": "3.1.*@stable",
    "silverstripe/framework": "3.1.*@stable",
     "sheadawson/silverstripe-blocks" : "1.0.8"

from silverstripe-blocks.

sheadawson avatar sheadawson commented on July 30, 2024

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.

screen shot 2016-03-07 at 9 29 01 am

from silverstripe-blocks.

digitall-it avatar digitall-it commented on July 30, 2024

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"
}

screenshot 2016-11-04 alle 01 50 51

from silverstripe-blocks.

sheadawson avatar sheadawson commented on July 30, 2024

Can you paste you yml config here, that's probably where the misconfiguration is, if it's a miconfiguration problem

from silverstripe-blocks.

digitall-it avatar digitall-it commented on July 30, 2024
---
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.

digitall-it avatar digitall-it commented on July 30, 2024

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.

sonet avatar sonet commented on July 30, 2024

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.

digitall-it avatar digitall-it commented on July 30, 2024

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.

digitall-it avatar digitall-it commented on July 30, 2024

Thank you very much @sheadawson!

from silverstripe-blocks.

sonet avatar sonet commented on July 30, 2024

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.

digitall-it avatar digitall-it commented on July 30, 2024

thank you very much @sonet

from silverstripe-blocks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.