Feature #5253
Show the path file +solution
Description
Solution:
after line 7513 of learnpath.class.php, add:
- $tbl_doc = Database :: get_course_table(TABLE_DOCUMENT);
$sql_doc = "SELECT path FROM " . $tbl_doc . " WHERE c_id = ".$course_id." AND id = " . Database :: escape_string($row['path']);
$result = Database::query($sql_doc);
$path_file = Database::result($result, 0, 0);
$path_parts = pathinfo($path_file);
$lang_path = get_lang ('doc_path');
$return .= $lang_path . $path_file ;*
Files
Associated revisions
Adding document path when editing a LP item see #5253
Minor doc path in LPs- see #5253
History
Updated by Julio Montoya over 8 years ago
- Status changed from New to Needs testing
- Assignee set to Yoselyn Castillo
- % Done changed from 50 to 80
Change added
Updated by Yoselyn Castillo over 8 years ago
- Status changed from Needs testing to Assigned
- Assignee changed from Yoselyn Castillo to Julio Montoya
- % Done changed from 80 to 50
This change doesn't work. Any path is shown.
Updated by Julio Montoya over 8 years ago
- Assignee changed from Julio Montoya to Yoselyn Castillo
you have to add a hotpotato exercise in the LP
Updated by Yoselyn Castillo over 8 years ago
it works only for hot potatoes excercises.
It would be useful for all other documents.
Working...
Drag and drop for Hotpotatoes doesn't work in LP
Updated by Yoselyn Castillo over 8 years ago
- File learnpath.class.php learnpath.class.php added
- Assignee changed from Yoselyn Castillo to Julio Montoya
- % Done changed from 50 to 80
Upload learnpath.class.php. Functionality is added for TOOL DOCUMENT TOOL QUIZ AND TOOL LINK
Updated by Julio Montoya over 8 years ago
- Assignee changed from Julio Montoya to Yoselyn Castillo
Code added, but when I select an exercise I see this "File: /document/shared_folder" which is not correct the same thing if a link is selected
Updated by Yoselyn Castillo over 8 years ago
- Status changed from Assigned to Needs more info
- Assignee changed from Yoselyn Castillo to Julio Montoya
i am going to check, but this functionality maybe is useful just for documents, not for excercises or links what do you thik?
Updated by Julio Montoya over 8 years ago
- Assignee changed from Julio Montoya to Andre Boivin
let's ask Andre he opened the task :)
Updated by Andre Boivin over 8 years ago
- Assignee changed from Andre Boivin to Julio Montoya
For HotPotatoes and documents, it is absolutely necessary for big learnpath, quizzes are recorded in folders as 2226745
Updated by Julio Montoya over 8 years ago
- Assignee changed from Julio Montoya to Yoselyn Castillo
yeah, only only for exercises (using a hotpotato) and documents
Updated by Yoselyn Castillo over 8 years ago
- File learnpath.class.php learnpath.class.php added
Upload this learnpath.class.php .fixed.
Updated by Yoselyn Castillo over 8 years ago
- Status changed from Needs more info to Assigned
- Assignee changed from Yoselyn Castillo to Julio Montoya
Updated by Julio Montoya over 8 years ago
- Status changed from Assigned to Needs testing
- Assignee changed from Julio Montoya to Yoselyn Castillo
file added, works for me
Updated by Yoselyn Castillo over 8 years ago
- File document.gif document.gif added
- File hotpotatoes.gif hotpotatoes.gif added
- Status changed from Needs testing to Bug resolved
- Assignee deleted (
Yoselyn Castillo)
It works fine, path is shown correctly for documents and hotpotatoes exercises.
See the screenshot
Adding hotpotatoe path see #5253