- Posts: 253
How To / General
what is this code?
- saman سامان
-
Topic Author
- Offline
- Elite Member
-
- samansamani2[at]yahoo.com
Less
More
8 years 7 months ago #1
by saman سامان
what is this code? was created by saman سامان
hi...when i load some course in the menu item, some of course has some link such as this:
mywebsite.com/index.php?option=com_joomd...e_id=24:3&Itemid=275
and you can see >> &course_id=24:3 << what is 3?
i see in the source , and that's variable name is $course_slug.
courses that has this variable in that's link, not loaded correctly and the course detail page is empty.
my question:
1-what is $course_slug and when use?
2-i remove that and my link correctly work.is my work harmful for other side of joomdle?
mywebsite.com/index.php?option=com_joomd...e_id=24:3&Itemid=275
and you can see >> &course_id=24:3 << what is 3?
i see in the source , and that's variable name is $course_slug.
courses that has this variable in that's link, not loaded correctly and the course detail page is empty.
my question:
1-what is $course_slug and when use?
2-i remove that and my link correctly work.is my work harmful for other side of joomdle?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7936
8 years 7 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic what is this code?
Hi,
Course slug is the URL-friendly conversion of the course name... so I am not sure why you would get a "3" there, or why it fails.
If you want, email me instructions on how to see the problem live.
Course slug is the URL-friendly conversion of the course name... so I am not sure why you would get a "3" there, or why it fails.
If you want, email me instructions on how to see the problem live.
Please Log in or Create an account to join the conversation.
- saman سامان
-
Topic Author
- Offline
- Elite Member
-
- samansamani2[at]yahoo.com
Less
More
- Posts: 253
8 years 7 months ago #3
by saman سامان
Replied by saman سامان on topic what is this code?
my website is in the non-english language and maybe not known for you.but i send as soon as possible to your mail.
tnx
tnx
Please Log in or Create an account to join the conversation.
- saman سامان
-
Topic Author
- Offline
- Elite Member
-
- samansamani2[at]yahoo.com
Less
More
- Posts: 253
8 years 7 months ago - 8 years 7 months ago #4
by saman سامان
Replied by saman سامان on topic what is this code?
i find new information
it seems $course_slug can't show non-english character...and in this case i have some number in my course title .
to clarify:
1- if i have a course with title for example "تست" it is not render at all in the $course_slug
2- if i have a course with title for example "2تست" then the $course_slug = 2
3- if i have a course with title for example "test" then the $course_slug = test
4- if i have a course with title for example "test2" then the $course_slug = test2
i send the demo of the problem in email.
it seems $course_slug can't show non-english character...and in this case i have some number in my course title .
to clarify:
1- if i have a course with title for example "تست" it is not render at all in the $course_slug
2- if i have a course with title for example "2تست" then the $course_slug = 2
3- if i have a course with title for example "test" then the $course_slug = test
4- if i have a course with title for example "test2" then the $course_slug = test2
i send the demo of the problem in email.
Last edit: 8 years 7 months ago by saman سامان.
Please Log in or Create an account to join the conversation.