what determines the value of $id ?
Posted: Sat Dec 06, 2008 9:45 am
I'm trying to digg into a problem with my site, where the calendar module have some problems "problems" with the value in $id (which is used in f.ex. CreateLink())
The error occurs when I have a calendar on my front page, this is assigned a value of m4, When the user selects a date, they are redirected to another page (I have set detailpage to another page). On this other page, the calendar module expects the $id value in the links to be m3, instead of m4, and the m4 is actualy assigned to the menu manager, which then barfs a bunch of errors at the site user, because it doesn't support the extra parameters.
Right now I have hardcoded the $id to be m3 inside the module, but this is not an optimal solution, as the $id parameter changes from time to time.
I have searched through the documentation, but I can't find any places that describe the mechanism behind the $id value, so I hope that someone could shed some light on it here..
Regards
Thomas
The error occurs when I have a calendar on my front page, this is assigned a value of m4, When the user selects a date, they are redirected to another page (I have set detailpage to another page). On this other page, the calendar module expects the $id value in the links to be m3, instead of m4, and the m4 is actualy assigned to the menu manager, which then barfs a bunch of errors at the site user, because it doesn't support the extra parameters.
Right now I have hardcoded the $id to be m3 inside the module, but this is not an optimal solution, as the $id parameter changes from time to time.
I have searched through the documentation, but I can't find any places that describe the mechanism behind the $id value, so I hope that someone could shed some light on it here..
Regards
Thomas