NB: I've already outlined similar problems in this thread...
$selectedCategory and Pagination conflict? I've now encountered another issue which also has the potential to mess things up.
When using a search query which includes a space, such as...
www.mysite.com/index.php?category=3&type=diesel engine ...the returned selectedCategoryNum is always
20.
Presumably this is because of the way URL encoding replaces spaces with
%20.
As
selectedCategoryNum is defined by
getNumberFromEndOfUrl, the system concludes that category 20 has been loaded.
Interestingly, it does this even though a category number has already been defined in the URL! The system seems to over-ride this information because %20 is the last number in the string.
I hate to keep banging on about this issue but it's proving to be a real thorn in my side. I'm trying to design dynamic pages which load/filter content based on specific criteria. Often the most important factor is the selected category as this dictates which sub-menus and supplementary page info is displayed.
If this framework isn't consistent, the whole thing falls apart - rendering it next to useless.
I really hope this issue is on the to-do list!
:0/
Perch