changing url dispaly options

changing url dispaly options

by susan cheng -
Number of replies: 3

We have bunch of url links need changing the url display option from "In pop-up" to "embed", It seems just need to update the "mdl_url" table:

In pop-up setting:

display: 6

displayoptions: a:2:{s:10:"popupwidth";i:620;s:11:"popupheight";i:450;}

embed setting:

display: 1

displayoptions:  a:2:{s:12:"printheading";i:0;s:10:"printintro";i:0;}

I did this changing but it doesn't work although it shows "embed" in editing page in front end, you must make the in front end.


We use Moodle 2.4, anybody can help? appreciated.


Susan


Attachment Capture.JPG
Average of ratings: -
In reply to susan cheng

Re: changing url dispaly options

by susan cheng -

It seems must click "save" button at edit page to get it work.

Any possible ways if only update the database table?


In reply to susan cheng

Re: changing url dispaly options

by Torsten Händler -

hey

try this 


 update `your database name`.`mdl_url` set displayoptions = 'a:2:{s:10:"popupwidth";i:620;s:11:"popupheight";i:450;}' where display = '1';

and then

 update `your database name`.`mdl_url` set display = '6' where display = '1';


so every display options for the url which are embed (display = 1) will change,

then it will change from embed (display = 1 ) to popup (display = 6)


you can also change the width and the height for the popup

this work for me but I give no guarantee

In reply to Torsten Händler

Re: changing url dispaly options

by susan cheng -

Hi Torsten,

Thanks for your reply, the issue is: I did changed the display method from 6(pop-up) to 1(embed).  At front end in url editing page it shows embed(before was pop-up), but the problem is the new page is still remain the old setting(pop-up).

That means only change the two column "display" and "displayoptions" in mdl_url table didn't make any differences.