Can Not Re-order Blocks

JamesKB - July 9, 2008 - 02:22
Project:Block Reference
Version:6.x-1.2
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I can not re-order Blocks in the Block list. As I create Blocks they are listed alphabetically. For example, if I create blocks named A, B, C, D, E, they are listed alphabetically. When I drag them to this order, C, E, A, D, B, and then click the Save Blocks button, I get the green message saying the blocks where updated/saved. But when I look at the block list again they have returned to this order, A, B, C, D, E.

Any ideas?????

Thanks for your time.
--
JamesKB

#1

pramudya81 - July 9, 2008 - 02:53

You must order the "weight" column.

the smaller means the lighter (go to the top)
The biggest number will sink the block to the most bottom part.

Regards

#2

JamesKB - July 9, 2008 - 14:55

I'm using version 6.2 and there is no weight column in the block list.

Any ideas??

Thanks for your time.
--
JamesKB

#3

JamesKB - July 9, 2008 - 23:38

Anyone have an idea about this problem??? I sure hope so.

#4

danielb - July 10, 2008 - 00:28

I will investigate it.

#5

danielb - July 10, 2008 - 00:58

I can't seem to replicate your problem.

I have made a block reference autocomplete text field, with 'unlimited' choices, and I selected several regions to pick blocks from.

The weight column doesn't show up - this is normal caused by content.module handling drag-n-drop ordering.

When you say "Block List" are you refering to the table of autocomplete fields?

When you say "Save Blocks" do you actually mean "Save" ? Because there is no "Save Blocks" button. There's a "Save Blocks" button on the blocks config page..-

wait.. what are we talking about here

#6

danielb - July 10, 2008 - 02:38
Status:active» postponed (maintainer needs more info)

#7

JamesKB - July 18, 2008 - 18:35

When I create a Block, I click Save, then I go to the blocks config page and set the location for the blocks region to Content, the block jumps up to the Block Content list. Then I click Save Blocks. Then I drag the blocks to positions I want it and click Save Blocks again, but when I look at the list it is back where it started in its alphabetic position. Very strange. :)

I've attached a very small image of part of the Block list. Notice they are in alphabetic order. I can drag them in to a different order but as soon as I click Save Blocks they simply return to the alpha order, i.e., I can not reorder them. :(

Ideas??

Thanks for your time.
--
JamesKB

AttachmentSize
Partial screen shot of my block config list 10.29 KB

#8

JamesKB - July 13, 2008 - 22:02

HELP. Anyone have any ideas about this????????

#9

JamesKB - July 18, 2008 - 18:46
Component:User interface» Code

URGENT!!!! I'm using ver 6.3 and STILL can not reorder blocks. See my above post. ANYONE, PLEASE. :)

#10

danielb - July 20, 2008 - 22:35

Are you saying this started happening when you installed blockreference.module ? The screen shot you posted is not from blockreference.module and should not be affected :/

#11

JamesKB - July 21, 2008 - 13:24

I have not installed the blockreference.module. Sigh. Now it seems that I can not reorder any blocks by dragging them. The only way I can reorder them is to turn off javascript in the browser, then the weight column displays. I am able to reorder the blocks by changing their weights. Then when I turn javascript back on they hold their position.

Any ideas?? THanks for your time in this matter. -- JamesKB

#12

dman - July 21, 2008 - 13:37

So the underlying finctionality is there, but the drag and drop is playing up.
I was going to suggest you see what happens with JS off :-)

So it may come down to your browser and a JS error or conflict. You've seen no JS errors? Little red cross in the bottom or top right of FF? They are nowadays suppressed by default and you need to turn the debug options on in your browser to see them.

#13

JamesKB - July 21, 2008 - 21:03

I have tried in both FF ver 3.01 and IE ver 7 with the same results. I do not see any indications of JS errors as you described. I've installed the FF Web Developer tool bar and it reports NO JS errors.

I've looked in options for FF and do not find "turn the debug options on" anywhere listed under Options? Maybe I'm not looking in the correct place??

Thanks for your time -- JamesKB

#14

dman - July 22, 2008 - 01:28

There's (or was) a lightweight "show script errors" option somewhere on a plain install, but with the developer toolbar you are much better served so that's moot.
At this point I guess it's a code bug. Probably not against block_reference but the core blocks GUI.
Unless you've narrowed it down to ONLY these types of blocks? Other normal system blocks shuffle around as expected?

Heck I dunno. I've only got troubleshooting tips, no contact with either lump of code.

#15

danielb - July 28, 2008 - 23:06
Status:postponed (maintainer needs more info)» closed

From what I can tell it is probably more like an issue with the drag'n'drop functionality in drupal, than either blocks or block_reference module.
Feel free to reopen if you know that I'm wrong.

#16

jkatko - June 8, 2009 - 19:07

I am having the same problem as JamesKB: as of today I am unable to *save* changes to my block ordering, though I have been using drag-and-drop successfully to order my blocks for a month now. I do not know how to go about accessing a weight option for this function, but then why would weighing the blocks be useful to me, when the problem is that I need to move specific blocks into specific regions? If anyone can figure out why this problem is occurring, I would be extremely grateful. It looks to be a serious impediment to the development of my site (future site of ach.org).

Thanks!
Jkatko

#17

jmonkfish - December 14, 2009 - 17:26

I have modified the module to use the standard Drupal select widget for multiple values and re-ordering. Is this worth making a patch for?

#18

danielb - December 14, 2009 - 23:56

Do you mean a multi select lists for values and weights? Or a better way to do drag'n'drop? I'm sure the code would be helpful for someone even if you don't want to supply a patch.

#19

danielb - December 14, 2009 - 23:57
Priority:critical» normal
Status:closed» active

#20

jmonkfish - December 15, 2009 - 16:28

Yes, the widget with 6.x-1.14 was just a standard HTML multi select, which only allowed me to select multiple values by holding down shift or cntrl.

My fix turned it into a the Drupal select widget with the multiple attribute, so that you just select one value, and then click "Add another" and another select box appears... at which point you can drag-and-drop to re-order them.

I supplied a patch at http://drupal.org/node/659584

I just looked at View Reference module's code for how it does the Drupal select widget, and I got it working for Block Reference. I was hoping you could look at my code to ensure that it works well. I never touched Autocomplete

 
 

Drupal is a registered trademark of Dries Buytaert.