Code Monkey home page Code Monkey logo

kirby3-many-to-many-field's Issues

Sorting Structure leads to unexpected deleting of relations

When you sort the structure inside the many-to-many-field via drag'n'drop in the panel, the row-ID gets changed and the plugin doesn't find the corresponding entry in the related page anymore, which leads to faulty deleting the relation only on one side. The bug is fixed in the sortable-structure-bugfix which will be merged into the master as a new version. The bugfix is backwards compatible, you just need to pull the branch (or the master once it's merged) into your kirby plugin folder. I highly recommend doing this as the bug can lead to the loss of data.

Invalid field type ("relation")

I am using the plainkit with no plugins except "kirby3-autoid" and "kirby3-many-to-many-field" and tested it with the example files you provided. I get the error message Invalid field type ("relation") inside "work" or "artist" subpage. Same problem with the other blueprint examples.

Composer doesn't work

Hi,
if I try to install your plugin with composer it breaks with the following error:

[InvalidArgumentException]
  Could not find a matching version of package jonasholfeld/kirby3-many-to-many-field. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (stable).

Also I couldn't find your project on packagist. So it looks that you have forget to publish the plugin for composer.
It would be nice if you could added a working composer install possibility!

Cheers

Relations to draft pages appears broken

When I attempt to create a relation to a draft page, I get this error:

Screenshot 2022-03-09 at 12 02 35

The problem seems to be the use of page() in index.php, which will only return published pages according to the docs:

"The page() helper fetches published pages only. To fetch a draft, you have to use $kirby->page('somepage')."
Source: https://getkirby.com/docs/reference/templates/helpers/page

The solution seems to be to replace all instances of page() with kirby()->page().

Posting here instead of a PR just in case there's some side-effect I'm not thinking of.

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.