Git Product home page Git Product logo

silverstripe-menu's People

Contributors

gorriecoe avatar merwinpoulose avatar tractorcow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

silverstripe-menu's Issues

Sort gives error

Hi Gorrie,
Changing the order of the menu links gives an error, at least in SilverStripe 4.1.2:

[2018-07-03 10:05:10] error-log.ERROR: Uncaught Exception SilverStripe\ORM\Connect\DatabaseException: "Couldn't run query:  UPDATE "MenuLink" SET "Sort" = 1, "LastEdited" = '2018-07-03 10:05:10' WHERE "ID" = 1  42S22-1054: Unknown column 'LastEdited' in 'field list'" at /vagrant/www/vendor/silverstripe/framework/src/ORM/Connect/DBConnector.php line 64 {"exception":"[object] (SilverStripe\\ORM\\Connect\\DatabaseException(code: 0): Couldn't run query:\n\nUPDATE \"MenuLink\" SET \"Sort\" = 1, \"LastEdited\" = '2018-07-03 10:05:10'\nWHERE \"ID\" = 1\n\n42S22-1054: Unknown column 'LastEdited' in 'field list' at /vagrant/www/vendor/silverstripe/framework/src/ORM/Connect/DBConnector.php:64)"} []

It's looking for the column LastEdited, but that column doesn't exist in the table MenuLink. I don't know if this is an issue with this module or with gridfieldextensions?

SS4 depreciation ScaffoldingProvider and SchemaScaffolder

Hi Damian

I reckon Silverstripe 4 have removed ScaffoldingProvider and SchemaScaffolder and also they have updated GraphQL.
I have made a pull request, If you don't mind can you please look into this one as well.

Details:
Uncaught Error: Interface "SilverStripe\GraphQL\Scaffolding\Interfaces\ScaffoldingProvider" not found

Platoform Php 8.1
CMS Version : 4.11.0

Many thanks
Merwin

Error with GridFieldOrderableRows

In Silverstripe 4.12 (php 8.1) I get an error when I want to open a menuset. This is because $default_sort is set as an array in MenuLink.php line 86.

Changing private static $default_sort = ['Sort' => 'ASC']; to private static $default_sort = 'Sort'; will solve this.

As $default_sort should not be an array according this issue in gridfieldextensions: symbiote/silverstripe-gridfieldextensions#344

Latest release 1.2.0 crashes GraphQL when subtying Link dataobject

MenuLink extends Link, but if I have another class that extends Link (but is not scaffolded) it will crash graphql.

Eg..

<?php

namespace LittleGiant\Studio\Base\DataObjects;

use gorriecoe\Link\Models\Link;

class CallToAction extends Link {}

All graphql queries now produce Type 'LittleGiantCallToAction' is not a registered GraphQL type

I think you need to shift the graphql scaffolding off the subclass and onto the Link base class to fix it.

nested option

Hi,
Great module! Could you explain more about the nested option?

Thanks.

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.