module Page - doesnt recalculate ids?

module Page - doesnt recalculate ids?

by Henrik sune Pedersen -
Number of replies: 1

Hi we have a problem with recalculating the ids

If you in a section makes some pages with the page module. Then make a HTML link navigation in the top of the pages linking them all together. ( with a HTML menu)

Then copy it to sharing cart, make a new course and copy in the section with all the page entryes in.

You will see that all the page entries have new ids in the section, but the "navigation" in the pages is not updated.

It still redirects to the old ids in the old course?

 

Should the linkes be recalculated?

(They are if you make a backup/restore of the course)


On the images you can see the code for a link to another page, but the page after thecopy has change id - but its not recalculated in the link ( hope it makes sence)

Or maybe we do somethin wrong when making the links?

 


Attachment firefox_ZXnSpxwjm9.png
Attachment Y41grc5oD4.png
Average of ratings: -
In reply to Henrik sune Pedersen

Re: module Page - doesnt recalculate ids?

by Andreas Grabs -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Translators

Hi,

the ids will only be adapted to the new location if you backup and restore the whole course. While using the sharing cart it seems to me the elements will be restored one by one. In this case the ids can not be adapted.

Andreas