If I have my draggable view as a block display, not a page display I can't save the order.

When you click save you get redirected to the home page and nothing saves. It needs to submit to the same page the form is on to save properly.

If it turns out for whatever reason it isn't possible to have it work in a block then there should be a known issues section of the readme to notify people of this.

Comments

medden’s picture

Status: Active » Closed (duplicate)

duplicate issue here.

It did used to work, and hopefully someone can find a fix.
Temporary solution is to get the older version from the repository.

rooby’s picture

Status: Closed (duplicate) » Active

If you look closely you will see that I created both this issue and the one you referenced as a duplicate.

This is a different issue with a different title and a differnet description.
They are most definitely unrelated.

Even if both features used to work and broke at the same time, they are different and need different issues so it is easy to keep track of things.

Nolza’s picture

I can confirm similar problems on my end as well. I am using an entity content configuration to attach the views to node. I am able to drag, but not able to submit the save. I am also taken back to the front page with no change save to the views.

rooby’s picture

I imagine it is just that $form_state['redirect'] needs setting for block views in draggableviews_views_form_submit().

I will take a look sometime soon if it doesn't get solved before.

jasonawant’s picture

Hi,

I'm experiencing a similar issue, but it maybe different. Let me know if I should create a new issue if this is different.

I'm using Content: Draggable views in a view block display, but there is no Save button. When inspecting the containing div is empty.
<div class="form-actions form-wrapper" id="edit-actions"></div>

Whereas on a view page display, the div contains the submit element.
<div class="form-actions form-wrapper" id="edit-actions"><input type="submit" id="edit-submit" name="op" value="Save Order" class="form-submit"></div>

Without a save button in the view block display, I can not save the order.

Any help would be greatly appreciated.

Thanks, Jason.

ygerasimov’s picture

Status: Active » Fixed

I believe problem was in #action element of the draggableviews form if it is in block. Now it is fixed. Commit http://drupalcode.org/project/draggableviews.git/commit/a488170

@c4jwant I have a feeling that your problem is not really related to this issue. Could you please open new ticket if your problem still remains?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.