Giter Club home page Giter Club logo

Comments (5)

texnixe avatar texnixe commented on May 29, 2024 1

I think this happens as soon as you create a page model for any page. In this case, the model only has a simple function that is not really that important, so I could work around this, but in other cases, that wouldn't be great.

/site/models/thema.php

<?php 

class ThemaPage extends Page
{
    public function lastUpdated()
    {
       // code here
    }
}

When trying to open a page with the thema.yml blueprint in the Panel, I get the error.

from enhanced-toolbar-link-dialog.

gearsdigital avatar gearsdigital commented on May 29, 2024

Thank you very much for bringing this up @texnixe! Very appreciated! 😊

Could you please provide a simple example? How do you access a page with a custom model?

from enhanced-toolbar-link-dialog.

gearsdigital avatar gearsdigital commented on May 29, 2024

Thanks! I’ve have guess what the problem could be. Let me fiddle a bit… I’ll come back to you 😊

from enhanced-toolbar-link-dialog.

gearsdigital avatar gearsdigital commented on May 29, 2024

The issues was that I've defined a (obviously) unnecessary model type declaration 🤷🏻‍♂️

Comparsion: v1.2.1...v1.2.2

from enhanced-toolbar-link-dialog.

gearsdigital avatar gearsdigital commented on May 29, 2024

It looks like the model type declaration wasn't unnecessary 🙈

Issue should now be fixed with 1.2.3

from enhanced-toolbar-link-dialog.

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.