Git Product home page Git Product logo

silverstripe-content-blocks's People

Contributors

chillu avatar dhensby avatar sanderha avatar thomasbnielsen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

silverstripe-content-blocks's Issues

unable to extend block

Don't know if its related, but i can't extend block anymore. Here's the code and result.
schermafbeelding 2014-06-03 om 09 51 22
schermafbeelding 2014-06-03 om 09 52 56

Warning: The folder ../themes/simple/templates/BlockTemplates/ was not found.

Hi,
This is really a great module! I just started to develop something simular, but stopped with that after I found this module.
One issue I experience: in the templates tab I get this error:

Warning: The folder ../themes/simple/templates/BlockTemplates/ was not found.

first: my theme is not called "simple".
second: I copied the folder BlockTemplates and block.css manually to my theme and just for sure also to the "simple" theme.
But still this error. I hope you can tell me what I did wrong.

Thanks in advance!

copy block.css issue

[Warning] copy(/Applications/MAMP/_/*******/themes//css/block.css): failed to open stream: No such file or directory
GET /dev/build?flush=all&flushtoken=b3a9e4ec426e14ab0702788682dffdfe
Line 78 in /Applications/MAMP//**********/content-blocks/code/ContentBlocksModule.php
Source
69 parent::requireDefaultRecords();
70
71 // If css file does not exist on current theme, copy from module
72 $copyfrom = BASE_PATH . "/".CONTENTBLOCKS_MODULE_DIR."/css/block.css";
73 $theme = SSViewer::current_theme();
74 $copyto = BASE_PATH . "/themes/".$theme."/css/block.css";
75
76 if(!file_exists($copyto)) {
77 if(file_exists($copyfrom)) {
78 copy($copyfrom,$copyto);
79 echo '

  • block.css copied to: ' . $copyto . '
  • ';
    80 } else {
    81 echo '
  • The default css file was not found: ' . $copyfrom . '
  • ';
    82 }
    83 }
    84 }
    Trace
    copy(/Applications/MAMP/
    /**********/content-blocks/css/block.css,/Applications/MAMP//**********/themes//css/block.css)
    ContentBlocksModule.php:78
    ContentBlocksModule->requireDefaultRecords(,,,,,,)
    Object.php:1000
    Object->extend(requireDefaultRecords,)
    DataObject.php:3150
    DataObject->requireDefaultRecords()
    SiteTree.php:1439
    SiteTree->requireDefaultRecords()
    DatabaseAdmin.php:233
    DatabaseAdmin->doBuild(,1)
    DatabaseAdmin.php:100
    DatabaseAdmin->build()
    DatabaseAdmin.php:80
    DatabaseAdmin->index(SS_HTTPRequest)
    RequestHandler.php:288
    RequestHandler->handleAction(SS_HTTPRequest,index)
    Controller.php:194
    Controller->handleAction(SS_HTTPRequest,index)
    RequestHandler.php:200
    RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
    Controller.php:153
    Controller->handleRequest(SS_HTTPRequest,DataModel)
    DevelopmentAdmin.php:146
    DevelopmentAdmin->build(SS_HTTPRequest)
    RequestHandler.php:288
    RequestHandler->handleAction(SS_HTTPRequest,build)
    Controller.php:194
    Controller->handleAction(SS_HTTPRequest,build)
    RequestHandler.php:200
    RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
    Controller.php:153
    Controller->handleRequest(SS_HTTPRequest,DataModel)
    Director.php:367
    Director::handleRequest(SS_HTTPRequest,Session,DataModel)
    Director.php:153
    Director::direct(/dev/build,DataModel)
    main.php:176
    block.css copied to: /Applications/MAMP/
    _/***********/themes//css/block.css
    ErrorPage

    The block template thumbnail path in block admin wrong for sites with Silverstripe in subdirectory

    On a site where Silverstripe is located in a subdirectory the template thumbnails are not shown in the admin interface. That's because the file detection uses the path on the server (which is working) but constructs a wrong URL for the browser. The subdirectory is missing.

    A possible solution would be to change the line 133 in file Block.php from
    $imgsrc = "/themes/".$theme."/templates/BlockTemplates/";
    to
    $imgsrc = Director::absoluteBaseURL()."themes/".$theme."/templates/BlockTemplates/";

    Best regards

    Conflict with installing this composer package and the userforms

    Hi,

    I was just trying to install this package today to give it a go and see how it works as this is a type of functionality I would really like to include in my sites... Unfortunately it looks as though there is a conflict in version for the gridfield extension. This package requires version 1.0.x I believe and the userforms module requires 1.1.x so I'm unable to install both at the same time... Though I would just mention this incase you missed it or you don't use userforms.

    Thanks,
    Colin

    unable to create blocktype in modeladmin

    When creating a block using the modeladmin section from the cms. I am unable to choose the block type (when there are custom blocks (extended block) defined.

    Add Versioning

    How about adding versioning of the blocks? Could be complicated with many_many and nested blocks though.

    Unable to "Add" a block to a page from "Block" tab

    SS Noob here so please bare with me!

    EDIT: removed original errors to update on current status.

    I have all the module and all dependencies installed. All "private" have been changed to "public" in .php files for content-blocks and all dependencies. Permissions have been fixed. No errors upon /dev/build.

    Block Admin is working. I can create a new block, navigate all tabs, use all buttons, and save. Thumbnails show.

    My problem is when I'm in the "Block" tab for a page. The drop down list is working. However, when I click the "Add" button it takes me to my home page. The button displays "WebsiteURL/#" and that's it. When I look at the "Add Block" button from within the Block Admin it shows "WebsiteURL/admin/blocks/Block/EditForm/field/Block/item/new". I'm not sure what is missing, and I'm not sure where I should be looking for it!

    Please help!

    Lock dependencies to minor versions rather than patch versions

    Related #21

    At the moment lots of your dependencies are locked to patch releases (1.2.*) rather than to minor releases (1.*)

    SemVer says that these releases should not cause breaking changes and so it should be safe to lock to.

    The current approach means that there can be incompatibility between modules or sites that have their own requirements.

    Only groups with "Full Admin" permissions can see/create/edit blocks

    If a group have all permissions set exclude the "full admin" option the user of this group can not see any blooks in the admin panel "Blocks" and can not see Blocks in the tab "Block" of a page.

    The selection field "choose type" and the field "+Add" above the "Content blocks" at the Blocks tab was not displayed if the "full Admin" permission was NOT set.

    The "can access Blocks" option permission only effects the "Blocks" Modul at the left menu.

    I am new to silverstripe and have build a midsize new website for a sports community. Now i would give access to the differents sports departments (authors) and now i am dealing with this problem many days.
    I do not want to reorganise the whole website without content-blocks.

    Please Help!

    Regards

    Linking and Color

    Got everything working now! Thanks for the module!

    In the Block>Settings tab there is a free form text field named "Link". What is the intended usage of this field? I entered a URL in hopes that it would link the image that I inserted, but the image only enlarges when clicked. I have got around this by adding the image into the "Main" tab, but was mostly curious if I'm using this correctly.

    Is there a way to create more space between blocks? if so, which file do I modify?

    Is there a way to add a colored border to blocks? I looked through block.css, but didn't see any reference to any color values. I looked at the ContentBlockModule.css file as well and do see references to color but wasn't sure if this was for CMS only or if it's just not applying.

    Thanks in advance for your help regarding these questions. I have uploaded a picture of a page I made using your module. Keep in mind that I'm very much a Noob!

    capture

    ss3.1.5 compatability

    The module doesn't work with ss3.1.5. I can't create a new block due to the buttons (betterbuttons).

    Twitterfeed block

    Hi NobrainerWeb,

    Do you already have an add-on to add a twitterfeed in a block? If not, I'm gonna try to develop.

    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.