Giter Site home page Giter Site logo

Comments (8)

lukaskleinschmidt avatar lukaskleinschmidt commented on May 28, 2024

How does your blueprint file look like?
Are you using the modules or the sortable field type?

from kirby-sortable.

findthebug avatar findthebug commented on May 28, 2024

At the moment im testing it on the projects template with the sortable field type. I did the basic kirby installation and added just the sortable default definition to the blueprint.

Toolkit Version: 2.5.10
Kirby Version: 2.5.10
Panel Version: 2.5.10

projects.yml

title: Projects
files: true
options:
  preview: true
  status: true
  template: true
  url: true
  delete: true  
pages:
  hide: false
  template:
    - module.text
    - module.gallery 
fields:
  title:
    label: Title
    type:  text
  sortable:
    label: Sortable
    type:  sortable
    sortable: true
    layout:  base
    variant: null
    limit: false
    parent: null
    prefix: null
    options:
      limit: false

Here is the basic installation to reproduce the behaviour. login/pw root/root
kirby.zip

from kirby-sortable.

lukaskleinschmidt avatar lukaskleinschmidt commented on May 28, 2024

Please try to use the modules field type. Both fields ship with this plugin.
The modules field itself is an extended sortable field and overrides the prefix and parent options. This way the plugin knows which pages it should handle.

Your blueprint should look like this.

title: Projects
files: true
options:
  preview: true
  status: true
  template: true
  url: true
  delete: true  
pages:
  hide: false
  template:
    - module.text
    - module.gallery 
fields:
  title:
    label: Title
    type: text
  modules:
    label: Modules
    type: modules

Basically you could also use the sortable field if you set the prefix and parent option accordingly.

from kirby-sortable.

findthebug avatar findthebug commented on May 28, 2024

I tried that before but then the modules are displayed on the left side under "Seiten" and on the right side is shown "The parent page could not be found".

As you can see on the screenshot the title "modules" is on top of "Title". Maybe a Version problem?

bildschirmfoto 2018-04-17 um 17 13 57

from kirby-sortable.

lukaskleinschmidt avatar lukaskleinschmidt commented on May 28, 2024

It looks like you are using modules without the modules page wrapper. Did you configure the modules plugin accordingly?

You would neet to set c::set('modules.parent.uid', ''); like this to make modules work without the wrapper page.

from kirby-sortable.

findthebug avatar findthebug commented on May 28, 2024

Okay that was the problem, i missed that option.
But now the modules itself appears on the left side under the normal pages section. how can i hide it from that list? Thanks for you help!

bildschirmfoto 2018-04-17 um 18 03 38

from kirby-sortable.

lukaskleinschmidt avatar lukaskleinschmidt commented on May 28, 2024

You would need to set hide: true in each module blueprint.

from kirby-sortable.

findthebug avatar findthebug commented on May 28, 2024

Perfect. Now all is perfect. Thank you for the help and the great plugin!

from kirby-sortable.

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.