Can't drag and drop block

Can't drag and drop block

על ידי Tiffany Morgan בתאריך
מספר תגובות: 20

Hi all

We are on 2.6 and are using the Aardvark theme and can't drag and drop blocks. I have ajax enabled and am able to drag and drop other items, just not blocks. When I grab the cross-hair icon it just doesn't move. I have debugging turned on and am not getting any errors. Any ideas? I made a quick screen cast to explain: http://screencast.com/t/5lEHGLuV1k


Thanks!

ממוצע דרוגים: -
בתגובה ל: Tiffany Morgan

Re: Can't drag and drop block

על ידי Mary Evans בתאריך

Which version of Aardvark?

בתגובה ל: Mary Evans

Re: Can't drag and drop block

על ידי Tiffany Morgan בתאריך

Great Question! How can I check that?

בתגובה ל: Tiffany Morgan

Re: Can't drag and drop block

על ידי Donna Hrynkiw בתאריך

Administration > Site administration > Plugins > Plugins overview

Themes are right at the bottom of the page. It's a 10-digit number, which I think consists of the date (e.g. 20140203) + a build number (01).

The Moodle version can sometimes be useful too. You'll find that under Administration > Site administration > Notifications also at the bottom of the page.

Hrynkiw
Kwantlen Polytechnic University


בתגובה ל: Donna Hrynkiw

Re: Can't drag and drop block

על ידי Tiffany Morgan בתאריך

Thanks!

Aardvark is 2014051300. The Moodle version is Moodle 2.6 (Build: 20131118)
בתגובה ל: Tiffany Morgan

Re: Can't drag and drop block

על ידי Mary Evans בתאריך

I cannot test this until later today however can you tell me if there is a setting called autohide.

בתגובה ל: Mary Evans

Re: Can't drag and drop block

על ידי Tiffany Morgan בתאריך

Thanks for your reply--sorry for my delay

I don't see that I have a site or course setting called autohide. Did a quick search of the forums to see where you and others had commented on that with respect to css, but I'm not using any custom css, if that is what that relates to. If there is somewhere else that I need to check for that I'm happy to. 


Thanks again!

בתגובה ל: Tiffany Morgan

Re: Can't drag and drop block

על ידי William Lu בתאריך

I have two sites are using Aardvark theme, one vision is 2014021400, another one is version 2014051300. Both are on Moodle 2.6.4.

The Hold & Drag never work for block. But it is not a problem.

We just simple (left-) click on the icon, then all available positions show as a blank holder, just (left) click you ideal position and the move done. It is quicker and easier than Hold & Drag.

I think the Aardvark is designed to behave like that.

בתגובה ל: William Lu

Re: Can't drag and drop block

על ידי Dan Jeffries בתאריך

Thanks for this workaround. Wasn't aware you could do this! Still not ideal but it helps. 

בתגובה ל: Dan Jeffries

Re: Can't drag and drop block

על ידי Tiffany Morgan בתאריך

Thanks to both! Confirm that I can move them that way, just thought it odd that the drag and drop icon was visible but not working. 


Thanks again!


בתגובה ל: Tiffany Morgan

Re: Can't drag and drop block

על ידי Steve Ambro v3.8 בתאריך

A while I had discovered this right-click option by accident however, when I dropped the block where I wanted it, I had to go find where Moodle decided to place it and try a few more times to get it right.

Sooner or later, it will work.

Has anyone else seen this?


בתגובה ל: Tiffany Morgan

Re: Can't drag and drop block

על ידי Dan Jeffries בתאריך

Hi

Just to confirm, I'm experiencing the same problem too. The Move icon is there but it's just not doing anything when clicked on.

Running 2.6.2 (waiting for admins to update to 2.6.4) and Aardvark 2014051300.

It's a bit frustrating because I've been working on the theming of Aardvark to then find we can't move blocks around, something I'm sure the tutors will want.

Hope someone can help!

חיוך

Dan


בתגובה ל: Dan Jeffries

Re: Can't drag and drop block

על ידי Christophe Scherrer בתאריך
Hi
I respond very late, but maybe this will be useful to someone.
I think the problem is the simultaneous use of core_renderer::blocks and core_renderer::blocks_for_region as shown in the console. Simply delete the references to "class =" block-region "and class =" region-content" in the file "footer.php" from Aardvark Theme.
So, everything come back in order.
חיוך
Christophe
בתגובה ל: Christophe Scherrer

Re: Can't drag and drop block

על ידי Mary Evans בתאריך

Answering a post from last year and also for a theme that has been updated since then, renderes this comment to be deleted, as it is neither useful nor valid. as the class ="block-region" is required so is the id="region-main".

Thanks

Mary

בתגובה ל: Mary Evans

Re: Can't drag and drop block

על ידי Christophe Scherrer בתאריך

No problem, delete my answer if you think it is neither useful nor valid.

Just wanna say that the problem of draggable blocks still remain in version 2015010800 of Aardvark Theme.

I didn't test the latest version (2015011900) because i'm on a moodle 2.7

Thanks


בתגובה ל: Christophe Scherrer

Re: Can't drag and drop block

על ידי Mary Evans בתאריך

Hi Christophe,

Appologies for my outburst...it seems you are correct and it is because of those changes to the core_renderer.

I have just been doing some hunting to see if those changes were mentioned in the theme/upgrade.txt for 2.6, It was but only for Maintenance, and then not specific to block regions in themes as such.

However there is a setting and an associated comment  in Moodle 2.6/themebase/config.php that was not as informative as it is in 2.7(see below)  which is where I first came across it, and since it is not used in Bootstrapbase themes we Theme designers don't need to use it.

MOODLE_26_STABLE - comment in ../theme/base/config.php (blocks_for_regions).

https://github.com/moodle/moodle/blob/MOODLE_26_STABLE/theme/base/config.php#L178-L180

MOODLE_27_STABLE - comment in ../theme/base/config.php (blocks_for_regions).

https://github.com/moodle/moodle/blob/MOODLE_27_STABLE/theme/base/config.php#L179-L181

So that said. there appears to be is a distict possibility that the setting found in theme/base/config.php that relates to the blocks_for_region needs adding to Aardvark/config.php.

Cheers

Mary

בתגובה ל: Mary Evans

Re: Can't drag and drop block

על ידי Mary Evans בתאריך

But then again...Aardvark version: 2014051300 is based on Bootstrapbase, so that setting is not relevant!

I've just downloaded it and going to test it out and see if it still behaves badly!

בתגובה ל: Christophe Scherrer

Re: Can't drag and drop block

על ידי Mary Evans בתאריך

OK...I see what you mean now.

I had assumed the Aardvark theme was still using Base theme as a parent. So that is way I said the footer needs class="block-region". 

So what you said is very relevant, and again I am very sorry for thinking otherwise.

I'll email Shaun and try and get him to fix this ASAP.

Many thanks,

Mary

בתגובה ל: Mary Evans

Re: Can't drag and drop block

על ידי Christophe Scherrer בתאריך

Hi Mary
I'm glad I could help a little.
Sincerely,

Christophe

בתגובה ל: Tiffany Morgan

Re: Can't drag and drop block

על ידי Toriton Shigant בתאריך

I'm wondering if the latest Aardvark theme (2.9.7) has resolved this. When I turned the editing on, it still doesn't seem like draggable. Is there any magic spell to make it work? Does anyone know?