Non-core contributed modules

Book: converting href doesn't work

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Not a bug
  • Affects Version/s: 1.9
  • Fix Version/s: None
  • Component/s: Module: Book
  • Labels:
    None
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_19_STABLE

Description

During import the links to pics in the document are not converted.

In my case the pics were in the same folder like the html file (File > Send -> Html> Multipage document export with OO)

Infoline: at top: Importiert:imsrc:/moddata/book/2/Test.htmlimsrc:/moddata/book/2/Test1.htmlimsrc:/moddata/book/2/Test10.htmlimsrc:/moddata/book/2/Test11.htmlimsrc:/moddata/book/2/Test12.htmlimsrc:/moddata/book/2/Test13.htmlimsrc:/moddata/book/2/Test14.htmlimsrc:/moddata/book/2/Test15.htmlimsrc:/moddata/book/2/Test16.htmlimsrc:/moddata/book/2/Test17.htmlimsrc:/moddata/book/2/Test18.htmlimsrc:/moddata/book/2/Test19.htmlimsrc:/moddata/book/2/Test2.htmlimsrc:/moddata/book/2/Test20.htmlimsrc:/moddata/book/2/Test21.htmlimsrc:/moddata/book/2/Test22.htmlimsrc:/moddata/book/2/Test3.htmlimsrc:/moddata/book/2/Test4.htmlimsrc:/moddata/book/2/Test5.htmlimsrc:/moddata/book/2/Test6.htmlimsrc:/moddata/book/2/Test7.htmlimsrc:/moddata/book/2/Test8.htmlimsrc:/moddata/book/2/Test9.html

No error message

Activity

Hide
Ralf Hilgenstock added a comment -

I think I found the reason

The exported HTML file doesn't contain a correct link:

Thats the exported part from OO: <IMG SRC="Test_html_2673b7c6.png" ...

Show
Ralf Hilgenstock added a comment - I think I found the reason The exported HTML file doesn't contain a correct link: Thats the exported part from OO: <IMG SRC="Test_html_2673b7c6.png" ...
Hide
Petr Škoda (skodak) added a comment -

Hello,
the problem is that book files must not be inside the moddata directory because they are not processed by backup/restore. Users must not manipulate the files in any moddata directly, only PHP code should do that.

If you need to fix the existing course you need to move the file and then use the global search/replace hack to update the links.

Petr

Show
Petr Škoda (skodak) added a comment - Hello, the problem is that book files must not be inside the moddata directory because they are not processed by backup/restore. Users must not manipulate the files in any moddata directly, only PHP code should do that. If you need to fix the existing course you need to move the file and then use the global search/replace hack to update the links. Petr

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: