Can't drag and drop block

Can't drag and drop block

Tiffany Morgan發表於
Number of replies: 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!

評比平均分數: -
In reply to Tiffany Morgan

Re: Can't drag and drop block

Mary Evans發表於

Which version of Aardvark?

In reply to Mary Evans

Re: Can't drag and drop block

Tiffany Morgan發表於

Great Question! How can I check that?

In reply to 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


評比平均分數:Useful (2)
In reply to Donna Hrynkiw

Re: Can't drag and drop block

Tiffany Morgan發表於

Thanks!

Aardvark is 2014051300. The Moodle version is Moodle 2.6 (Build: 20131118)
In reply to 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.

In reply to 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!

In reply to Tiffany Morgan

Re: Can't drag and drop block

William Lu發表於
Particularly helpful Moodlers的相片

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.

In reply to 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. 

In reply to 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!


In reply to 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?


In reply to 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


In reply to 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
In reply to 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

In reply to 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


In reply to 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

In reply to 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!

In reply to 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

In reply to Mary Evans

Re: Can't drag and drop block

Christophe Scherrer發表於

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

Christophe

In reply to Christophe Scherrer

Re: Can't drag and drop block

Mary Evans發表於

It did...very much so!

I'm just updating the footer.php to send to Shaun.

Cheers

cheers!

Mary

In reply to 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?