Code Monkey home page Code Monkey logo

Comments (3)

james-cnz avatar james-cnz commented on August 13, 2024 1

Hi fxpar,

Moodle does actually have permanent links for sections that you can use. These won't work in a copy of a course though. If you turn editing on and click on the section Edit menu, then hover over the Edit section entry, you should see a URL of the form:
WEBSITE/course/editsection.php?id=SECTION_ID&sr=SECTION_NUMBER
You should get a permanent link if you take the SECTION_ID and put this into a URL of the form:
WEBSITE/course/view.php?id=COURSE_ID&sectionid=SECTION_ID

from moodle-format_onetopic.

james-cnz avatar james-cnz commented on August 13, 2024 1

Hi @fxpar,

Just be aware that if you use permanent section links within a course, these won't work in a copy of the course. e.g. If you make a backup of a course, and restore the backup as a new course, any permanent section links within the copy will have their course IDs updated for the new course, but won't have their section IDs updated, so trying to follow the link, Moodle will look for the old section in the new course, and won't find it, returning an error.

Also, for anyone using an older version of Onetopic, I just noticed that although support for this feature is included in the current version, san juan 2018010608, it doesn't seem to be included in san juan 2018010604, so you may need to upgrade to use it.

from moodle-format_onetopic.

fxpar avatar fxpar commented on August 13, 2024

Hi @james-cnz
Indeed, this works perfectly!
Thank you very much (I will link to your answer in the moodle onetopic plugin page) !
Cheers
François

from moodle-format_onetopic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.