Git Product home page Git Product logo

Comments (6)

doniz avatar doniz commented on July 30, 2024

did you add variables in your template as example below ?

`

$BlockArea(BeforeContent)
<% if $Content %><div class="row form">$Content</div><% end_if %>
<% if $Form %><div class="row form">$Form</div><% end_if %>
$BlockArea(AfterContent)

`

from silverstripe-blocks.

sheadawson avatar sheadawson commented on July 30, 2024

Yeap none of those will work. Read the documentation, there are very clear examples ;)

from silverstripe-blocks.

brasileric avatar brasileric commented on July 30, 2024

Well, when I follow the documentattion exactly, the Blocks tab at the pages disappear and didn't set exclude_from_page_types for any page type.

from silverstripe-blocks.

brasileric avatar brasileric commented on July 30, 2024

Update: when I use version 1.0.7. everything is working well. But with version 1.0.8. and dev my experience is that the Blocks tab disappears once you add an area to the page type. I experience this in SilverStripe 3.2.1 and 3.3.1.

from silverstripe-blocks.

sheadawson avatar sheadawson commented on July 30, 2024

Hmm... I've just done a test with 1.0.8 and was unable to replicate the issue. Can you paste in your config for me and I'll test with that

from silverstripe-blocks.

witschko avatar witschko commented on July 30, 2024

I can replicate this issue when I have not set the theme I use for blocks in my config.yml but only in the cms.

This has been set after a fresh installation of SilverStripe 3.3.1 without selecting the Simple theme:

SSViewer:
  theme: 'tutorial'

I then installed the blocks module, created a new theme and selected it via the CMS. Then I followed the documentation and configured the blocks module (1.0.7). The blocks tab is shown but I get the message "This page type has no Block Areas configured". I then set the theme in config.yml to my new theme and it worked.

But when I install 1.0.8 or 1.0.9 the Blocks tab is not visible.

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.