Comments (8)
How does your blueprint file look like?
Are you using the modules
or the sortable
field type?
from kirby-sortable.
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.
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.
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?
from kirby-sortable.
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.
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!
from kirby-sortable.
You would need to set hide: true
in each module blueprint.
from kirby-sortable.
Perfect. Now all is perfect. Thank you for the help and the great plugin!
from kirby-sortable.
Related Issues (20)
- Inline editing of modules HOT 1
- Make readme more clear
- Multilang titles in module overview HOT 3
- Drag axis HOT 3
- Easier way of disabling default actions HOT 6
- Disable field when readonly is set to true in the blueprint HOT 1
- Error 500 on update if status:false in child's blueprint HOT 2
- Long module titles break the layout HOT 1
- Copy Page / recursively endless spinn HOT 3
- Skipping modal (hacky solution) HOT 3
- Error on pasting modules using the Modules field HOT 1
- Add page title for new entries HOT 1
- Role based actions in layouts HOT 2
- Drag and Drop not working in IE 11 HOT 2
- Disable sorting based on roles HOT 5
- Error: mb_strpos(): Empty delimiter HOT 8
- in the add modal are modules and page templates shown mixed HOT 1
- Rename modules & update blueprint in filestructure HOT 2
- PHP 7.4.x and Kirby 2.5.13 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kirby-sortable.