Coder Social home page Coder Social logo

Comments (8)

unclecheese avatar unclecheese commented on August 30, 2024

That's a really good question. I don't know. Have you tried it with a headless framework?

from silverstripe-dashboard.

dhensby avatar dhensby commented on August 30, 2024

I just did a quick test and it appears to "work" but some of the default widgets depend on SiteTree (recent edits, for example).

Is there a way to just wrap them in if (class_exists('SiteTree')) so they don't appear if you don't have the SiteTree?

v3.2.1 sans CMS

from silverstripe-dashboard.

unclecheese avatar unclecheese commented on August 30, 2024

Yeah, that sounds like the simplest solution. Otherwise, we could break it off into two modules -- dashboard-core and dashboard-cms (with a dependency on the former).

There's a DashboardBlogEntryPanel in the core. That's even more presumptive than SiteTree!

from silverstripe-dashboard.

nedmas avatar nedmas commented on August 30, 2024

Love this module and the idea of slimming down it's dependancies sounds great. However is there any chance that in the mean time you could release an update that allows use in SS 3.2 (with dependancy on framework, cms, and siteconfig)?

from silverstripe-dashboard.

unclecheese avatar unclecheese commented on August 30, 2024

It's set to ~3.1.. that should allow minor release upgrades, right?

from silverstripe-dashboard.

unclecheese avatar unclecheese commented on August 30, 2024

Ah, maybe not. I think that should be ^3.1.

from silverstripe-dashboard.

dhensby avatar dhensby commented on August 30, 2024

~3.1 should allow 3.2 to work too or you can use ^3.1.1

from silverstripe-dashboard.

dhensby avatar dhensby commented on August 30, 2024

I think I tested the updating of canView checking for SiteTree and it did work... should get round to a PR some time...

from silverstripe-dashboard.

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.