This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Fibonacci
Fibonacci

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.

Martin
Martin

Hi, did you stopped at some specific step?

  1. Add to your model October\Rain\Database\Traits\Sortable
  2. Add to your controller $implement & $reorderConfig
  3. Create config_reorder.yaml
  4. Add reorder button to _list_toolbar.htm with link .../reorder (similar as for create)
  5. Create reorder.html
  6. Add toolbar (_reorder_toolbar.htm) for reorder.html page with back button In general thats it.

Last updated

jane10535
jane10535

@Martin thank you for the reply! This works for me

Fibonacci
Fibonacci

@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

djetson
djetson

There should be the field "title" in the table.

johnytributante17670
johnytributante17670

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?

Octo
Octo

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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.