File hide/show option

File hide/show option

by Jeff Wood -
Number of replies: 31

Would it be possible to provide a feature where by an instructor could upload ALL files, but only make them become active one at a time and remove the file (link only) once it is done, but leave it on the server? I think this is kind of available via adding/rmoving recources.

 

How about a file view.  Like explorer so that students can see a main file area, with subdirectories.  They would then be anle to navigate to the file they need and then download... all while having the first mentioned feature available?

 

As a suggestion.

 

Jeff

 

 

Average of ratings: -
In reply to Jeff Wood

Re: File hide/show option

by Eloy Lafuente (stronk7) -
Immàgine de Core developers Immàgine de Documentation writers Immàgine de Moodle HQ Immàgine de Particularly helpful Moodlers Immàgine de Peer reviewers Immàgine de Plugin developers Immàgine de Testers
Hi. Jeff.

Two days ago I started working on a resource-mod clone.

It implements an "viewable" option to show/hide it.

I'm analyzing the course php code, because I think that I'll have to modify a bit there (to show an show/hide button), but I think that it can be possible.

I'll tell you more in two or three days (or hours) smile

Ciao.
In reply to Eloy Lafuente (stronk7)

Re: File hide/show option

by Jeff Wood -

Eloy,

Sounds GREAT! I will keep an eye open for your MOD.

Make sure to enjoy the wekend!

Jeff

In reply to Jeff Wood

Re: File hide/show option

by Eloy Lafuente (stronk7) -
Immàgine de Core developers Immàgine de Documentation writers Immàgine de Moodle HQ Immàgine de Particularly helpful Moodlers Immàgine de Peer reviewers Immàgine de Plugin developers Immàgine de Testers
Hi again.

I have been talking with Martin about where to "patch" the code and the results are that is better to modify at "course" level, instead of creating "cloned" mods.

I'm restarting again to make the necessary changes. I'm newbie to "moodle" code, but I think that It'll be possible...soon.

Ciao.
In reply to Eloy Lafuente (stronk7)

Re: File hide/show option

by Eloy Lafuente (stronk7) -
Immàgine de Core developers Immàgine de Documentation writers Immàgine de Moodle HQ Immàgine de Particularly helpful Moodlers Immàgine de Peer reviewers Immàgine de Plugin developers Immàgine de Testers
Hi again.

You can see a preview about showing/hiding at:

http://www.contiento.com/elearn

It's a test server.

There is a "example course".

You can edit (teacher) with l/p = tea/tea
and browse as a student with l/p = use/use

It's far from be finished (I've to see how to remove the hidden items from activities menu, but, basically, it works...

Ok, the icons to show/hide are awful smile

To be continued...
In reply to Eloy Lafuente (stronk7)

Re: File hide/show option

by Eloy Lafuente (stronk7) -
Immàgine de Core developers Immàgine de Documentation writers Immàgine de Moodle HQ Immàgine de Particularly helpful Moodlers Immàgine de Peer reviewers Immàgine de Plugin developers Immàgine de Testers
Now "Activities Menu" only show "groups" with visible items (or everything if you are a teacher).

But, when listing items, all of them appear (visible and invisible). There are two options, the fast (bad) and the slow (good).

1.-The fast: Do not display "Activities Menu" at all. It's easy to implement, but it implies saying "sayonara" to that menu.

2.-Make changes to every "mod" source code to avoid showing non-visible items. It's harder, but the correct way, I suposse.

Martin, any idea or direction to continue, please ?
In reply to Eloy Lafuente (stronk7)

Re: File hide/show option

by Martin Dougiamas -
Immàgine de Core developers Immàgine de Documentation writers Immàgine de Moodle HQ Immàgine de Particularly helpful Moodlers Immàgine de Plugin developers Immàgine de Testers
Option 2 would be better. There is no need to modify each module - you can just modify the function get_all_instances_in_course() (in datalib.php) to take account of the new flag. For teachers, though, it should behave as it does now.
In reply to Martin Dougiamas

Re: File hide/show option

by Eloy Lafuente (stronk7) -
Immàgine de Core developers Immàgine de Documentation writers Immàgine de Moodle HQ Immàgine de Particularly helpful Moodlers Immàgine de Peer reviewers Immàgine de Plugin developers Immàgine de Testers
Thanks Martin.

Done. Everything seems to work fine now.

Everybody can take a look to my test server to try it
(I wrote the address and l/p 4 or 5 message above).

Please, comments apreciated...

Ciao.

Note: Icons are really awful. I'm not an artist... smile
In reply to Eloy Lafuente (stronk7)

Re: File hide/show option

by Martin Dougiamas -
Immàgine de Core developers Immàgine de Documentation writers Immàgine de Moodle HQ Immàgine de Particularly helpful Moodlers Immàgine de Plugin developers Immàgine de Testers
Getting there!

A few thoughts:

It might be easier if the icon showed the CURRENT state of the link (but the tooltip showed the ACTION of the button).

Also, it would be cool if the the whole link text became dimmed when it is inactive.

Finally, the icons aren't too bad, but possibly you could have a open eye and a closed eye ...
In reply to Martin Dougiamas

Re: File hide/show option

by Tom Murdock -
I agree with these suggestions, but really like the functionality, Eloy. This could be a really useful tool.
In reply to Martin Dougiamas

Re: File hide/show option

by Eloy Lafuente (stronk7) -
Immàgine de Core developers Immàgine de Documentation writers Immàgine de Moodle HQ Immàgine de Particularly helpful Moodlers Immàgine de Peer reviewers Immàgine de Plugin developers Immàgine de Testers
Ok. I'll try it.

- The icons will show the current status and thy will be renamed and php code updated.

- The tooltip will show the action (no changes).

- The link text became dimmed when it´s inactive (at teacher's wiew only (no at student's view), I suppose ? and this implies that teachers cannot see their work online ?).

- The icons will be changed to a open eye (visible) and a closed eye (invisible).

Waiting for answer...to third paragraph...

Ciao.

In reply to Eloy Lafuente (stronk7)

Re: File hide/show option

by Martin Dougiamas -
Immàgine de Core developers Immàgine de Documentation writers Immàgine de Moodle HQ Immàgine de Particularly helpful Moodlers Immàgine de Plugin developers Immàgine de Testers
Hi, Eloy.

By dimmed, I was only thinking of a different color:

This is an active link
This link is deactivated
This is another active link


... to make it really clear for teachers to quickly see what is deactivated. You could simply assign a new CSS style to the deactivated ones and that style could just define a different background colour, or something, while keeping the link working for teachers. What do you think?

Good work so far, anyway! approve I think a lot of people will be happy to see it!
In reply to Martin Dougiamas

Re: File hide/show option

by Eloy Lafuente (stronk7) -
Immàgine de Core developers Immàgine de Documentation writers Immàgine de Moodle HQ Immàgine de Particularly helpful Moodlers Immàgine de Peer reviewers Immàgine de Plugin developers Immàgine de Testers
Oh, okey.

Excuse my but I had understood to deactivate the link. Now, I know what you want. it's really better.

I'm going to see how css styles are working on moodle and apply changes.

Thanks.
In reply to Martin Dougiamas

Re: File hide/show option. Finished !!!

by Eloy Lafuente (stronk7) -
Immàgine de Core developers Immàgine de Documentation writers Immàgine de Moodle HQ Immàgine de Particularly helpful Moodlers Immàgine de Peer reviewers Immàgine de Plugin developers Immàgine de Testers
I think I've finished !!!

- I've changed the icons and the style for invisible items.
- It seems to be more useable, now.

Please, try it and feedback here.
(in the address at the beginning of this thread).

I'l send all the work to Martin in two days, if no comments or new requirements are written to the forum.

TIA.
In reply to Eloy Lafuente (stronk7)

Re: File hide/show option. Finished !!!

by Loren Winfrey -

This works great!!

This can make things alot easier when creating work-in-progress. I especially like the icons. Great Job!!

Is it simple to install?

In reply to Eloy Lafuente (stronk7)

Re: File hide/show option. Finished !!!

by Jeff Wood -
EXCELLENT Eloy!!!

Just what I had in mind! Job well done!

Now... how can I add this to my site?

Jeff
In reply to Eloy Lafuente (stronk7)

Re: File hide/show option. Finished !!!

by Martin Dougiamas -
Immàgine de Core developers Immàgine de Documentation writers Immàgine de Moodle HQ Immàgine de Particularly helpful Moodlers Immàgine de Plugin developers Immàgine de Testers
Looks excellent! Well done!

Yes, send the files when you like, and I'll merge them into the CVS tree for the next release.
In reply to Martin Dougiamas

Re: File hide/show option. Finished !!!

by Martin Dougiamas -
Immàgine de Core developers Immàgine de Documentation writers Immàgine de Moodle HQ Immàgine de Particularly helpful Moodlers Immàgine de Plugin developers Immàgine de Testers
I've merged Eloy's code into the current CVS code, so it will be in the next nightly and 1.0.9.

Jeff, you can take your pick based on urgency ... I would recommend holding out for the release if you can (more stable) but the nightlies are also pretty good at the moment.

Remember that you can't downgrade. smile
In reply to Martin Dougiamas

Re: File hide/show option. Finished !!!

by Jeff Wood -
Tnx Martin and Eloy - think I will wait to see what other wonderful things get added to 1.0.9

Any chance of a permanent admin edit feature for forums?

I must say that I am very pleased with your software and the quality and professionalism of "technical assistance" provided on this forum - tnx to ALL!!


Jeff
In reply to Eloy Lafuente (stronk7)

Re: File hide/show option. Finished !!!

by Przemyslaw Stencel -
Excellent work, Eloy!

Apologies for making a suggestion so late.

Just one little thing - the titles of pages which are hidden could also be dimmed in "Activities Menu" list (teacher view). What do you think?
In reply to Przemyslaw Stencel

Re: File hide/show option. Finished !!!

by Eloy Lafuente (stronk7) -
Immàgine de Core developers Immàgine de Documentation writers Immàgine de Moodle HQ Immàgine de Particularly helpful Moodlers Immàgine de Peer reviewers Immàgine de Plugin developers Immàgine de Testers
Done. Now every mod shows its hidden instances "dimmed" in "Activities Menu" (teacher view).

Bug 364 closed.

Ciao.
In reply to Eloy Lafuente (stronk7)

Re: File hide/show option

by Wendi Dunlap -

This is a great feature! smile

Just one suggestion -- I think that resources the students can't yet see should not show up in Recent Activity for students until they are made visible. Otherwise students are likely to get confused when they see Recent Activity items but can't find them on the site. I think they should show up in Recent Activity (for the students, at least) only at the time they are made visible. Then the students will see that there is a new resource available, and they will always know that they can go look at that resource.

More thoughts later, maybe...

In reply to Wendi Dunlap

Re: File hide/show option

by Eloy Lafuente (stronk7) -
Immàgine de Core developers Immàgine de Documentation writers Immàgine de Moodle HQ Immàgine de Particularly helpful Moodlers Immàgine de Peer reviewers Immàgine de Plugin developers Immàgine de Testers
All is done !!

Now Recent Activity is no showed for hidden modules.

And the "grades" option, hide them to students (total included) and it dimm them to teachers !!!

OK. Now every show/hide related bug are closed and everything seems to work fine.

Thanks for the suggestions to everybody and enjoy !!! smile

Ciao.
In reply to Eloy Lafuente (stronk7)

Re: File hide/show option

by Gustav W Delius -
I really like Eloy's hide/show feature! Therefore I want more. I would like to be able to hide whole courses from the students.
In reply to Gustav W Delius

Re: File hide/show option

by Martin Dougiamas -
Immàgine de Core developers Immàgine de Documentation writers Immàgine de Moodle HQ Immàgine de Particularly helpful Moodlers Immàgine de Plugin developers Immàgine de Testers
You can hide sections, too ... just use the eye next to each topic/week.
In reply to Martin Dougiamas

Re: File hide/show option

by Gustav W Delius -

Dear Martin,

I am very impressed by the promptness of your replies to posts in the forums.

I think you misunderstood my post. I would like to hide whole courses, not sections. What I mean is that courses that are not on offer in a particular term do not really need to clutter up the moodle homepage.

In reply to Gustav W Delius

Re: File hide/show option

by Daniel Mikšík -
I was planning to raise the same suggestion as Gustav. I am now trying another Moodle feature made by Eloy - backup/restore (http://moodle.org/bugs/bug.php?op=show&bugid=84)- and it works great! Yet it would be fine if, say, for one semester the "old" courses could be hidden from students and accessible only to teachers, without the need to backup/restore when the teacher wants to check a student's results/posts/assignments or whatever.
In reply to Daniel Mikšík

Re: File hide/show option

by Lev Abramov -

Folks,

this thread is fairly cold by now - but it includes a mention of course cloning which interests me a lot these days.

Has anyone found a cool easy way to clone a course in order to open it for another group with a new start date? If the answer is YES I'd love to hear it; if NO - then maybe it's time someone tried to solve the riddle. thoughtful.gif

Best -

Lev

In reply to Lev Abramov

Cloning course

by Gustav W Delius -
Use backup (in the Administration box on the course homepage of the course you want to clone). Then click on restore but choose to restore to a new course.