Moodle

Formslib element: url

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Repositories
  • Labels:
    None
  • Difficulty:
    Easy
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

This form element consists of text field that expects a valid URL.

It includes a search button that pops up the filepicker and all repository instances that know how to return an external URL directly (no file copying via file API). After the user selects a file the URL is inserted into the text field.

We could also add some client-side checking of the text field to ensure that the URL is valid.

Issue Links

Activity

Hide
Tim Hunt added a comment -

Surely url is a better name for this type of field. That is what it is letting you input. I have never heard of a texturl before.

Show
Tim Hunt added a comment - Surely url is a better name for this type of field. That is what it is letting you input. I have never heard of a texturl before.
Hide
Dongsheng Cai added a comment -

please review, feel free to reopen it for fixing

Show
Dongsheng Cai added a comment - please review, feel free to reopen it for fixing
Hide
Martin Dougiamas added a comment -

Sorry, after some thought I agree this should be renamed after all.

Could you rename 'texturl' to 'url' please? And can there be a parameter to turn the "picker" button on and off?

Show
Martin Dougiamas added a comment - Sorry, after some thought I agree this should be renamed after all. Could you rename 'texturl' to 'url' please? And can there be a parameter to turn the "picker" button on and off?
Hide
Martin Dougiamas added a comment -

This is done, right? Thanks!

Show
Martin Dougiamas added a comment - This is done, right? Thanks!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: