This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
How to implement the following doc http://octobercms.com/docs/backend/reorder to our plugin? I need more step by step to do it. Because I tried right the doc above and still can't resolve the problem.
thanks.
Hi, did you stopped at some specific step?
- Add to your model October\Rain\Database\Traits\Sortable
- Add to your controller $implement & $reorderConfig
- Create config_reorder.yaml
- Add reorder button to _list_toolbar.htm with link .../reorder (similar as for create)
- Create reorder.html
- Add toolbar (_reorder_toolbar.htm) for reorder.html page with back button In general thats it.
Last updated
@Martin, @Jane I have trying to follow your step Martin. Almost finish. But, maybe you forgot the step to add 'sort_order' column to table. I have do that.
But, I got the error with this message 'incorect integer value' and the name of my 'categories' (I want to reorder categories) doesn't appear. It's just show the button for reorder.
Hope you can give me more details step. Because I'm a very beginner.
Thanks,
Last updated
I did everything step by step but when I click on the page redirects me \reorder but nothing displays the page is blank. Where the problem can be?
johnytributante17670 said:
I did everything step by step but when I click on the page redirects me \reorder but nothing displays the page is blank. Where the problem can be?
Are you placing reorder.htm in the correct directory? I am pretty certain that it has to be placed in controllers directory i.e. Octo/Octolab/Controllers/category/
1-7 of 7