- Posts: 3
R0.25 No Longer Supported
[Solved] coursecategory router and detail pathway
- raimonesteve
- Topic Author
- Offline
- New Member
-
Less
More
15 years 7 months ago - 15 years 7 months ago #1
by raimonesteve
[Solved] coursecategory router and detail pathway was created by raimonesteve
1. In detail view, the pathway isn't good formating:
views/detail/view.html.php
Line 46. Replace:
$cat_slug = $this->course_info.":".JFilterOutput::stringURLSafe($this->course_info);
stringURLsafe convert string to url good formating.
2. In detail view, the pathway category not redirect correctly
router.php
Replace 155:
case 'joomdle' :
{
if($count == 2) {
$vars = 'coursecategory';
$vars = $segments[$count-1];
}
if($count == 3) {
// $vars = 'teachers', topics, coursestats, coursegradecategories;
$vars = $segments[$count-3];
$vars = $segments[$count-2];
$vars = $segments[$count-1];
}
} break;
count 2 it's necessary
Example:
www.aulaerp.com/cursos/coursecategory/3-...res-de-openeerp.html
note:
antonio, buen trabajo con el componente! me has sacado de un apuro y me has dado las luz de como conectar OpenERP con Moodle.
Felicidades por el código limpio (se agrecede!) y ser atrevido en trabajar con Moodle
views/detail/view.html.php
Line 46. Replace:
$cat_slug = $this->course_info.":".JFilterOutput::stringURLSafe($this->course_info);
stringURLsafe convert string to url good formating.
2. In detail view, the pathway category not redirect correctly
router.php
Replace 155:
case 'joomdle' :
{
if($count == 2) {
$vars = 'coursecategory';
$vars = $segments[$count-1];
}
if($count == 3) {
// $vars = 'teachers', topics, coursestats, coursegradecategories;
$vars = $segments[$count-3];
$vars = $segments[$count-2];
$vars = $segments[$count-1];
}
} break;
count 2 it's necessary
Example:
www.aulaerp.com/cursos/coursecategory/3-...res-de-openeerp.html
note:
antonio, buen trabajo con el componente! me has sacado de un apuro y me has dado las luz de como conectar OpenERP con Moodle.
Felicidades por el código limpio (se agrecede!) y ser atrevido en trabajar con Moodle
Last edit: 15 years 7 months ago by Chris.
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
15 years 7 months ago #2
by Chris
Replied by Chris on topic Re:[BUG] coursecategory router and detail pathway
Your making this easy will all the solutions 
I will highlight this to Antonio when he returns from holidays next week.
I will highlight this to Antonio when he returns from holidays next week.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
15 years 7 months ago #3
by Antonio Durán
Replied by Antonio Durán on topic Re:[BUG] coursecategory router and detail pathway
As Chris says, thank you very much. It's really great to get bug reports along with the fixes 
I applied this one for next release.
Gracias por tus comentarios. El código aún no es lo limipio que me gustaría, pero poco a poco iremos llegando.
Espero que sigas viniendo por aquí a contarnos las sugerencias que tengas para Joomdle.También, si te pones a conectar Moodle y OpenERP y crees que puedo ayudarte con alguna duda, dímelo!
I applied this one for next release.
Gracias por tus comentarios. El código aún no es lo limipio que me gustaría, pero poco a poco iremos llegando.
Espero que sigas viniendo por aquí a contarnos las sugerencias que tengas para Joomdle.También, si te pones a conectar Moodle y OpenERP y crees que puedo ayudarte con alguna duda, dímelo!
Please Log in or Create an account to join the conversation.