This is a discussion on Alphabetical links within categories/sub-categories within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Originally Posted by basnyd Based upon another post, I believe I should be looking in the index.php for the query ...
Last edited by basnyd; 03-18-2008 at 05:25 AM. Reason: added more to the answer
I'm working on the if statement to display the alphabetical links only within certain categories. I found each category has a categories_id set in the categories table. How can I reference this in an if condition?
I tried this, but it doesn't work. I'm open to suggestions. I'm guessing I'm not referencing something properly.
<?php
if ($categories_id = '1') {
?>
I would like the if statement to work for multiple categories_id. For example for, 4 , 8 & 11.
Thanks,
__________________
cheap wii games
download wii games
You will probably need to use the cPath= variable in the url.
So something like:
I have not tried this nor do I fully understand what you are trying to achieve but this should hopefully get you started.Code:$yourcheck = $_GET('cpath'); if ( ($yourcheck = '4') || ($yourcheck = '8') || ($yourcheck = '11') ) { // Do your alpha sort thing }
Regards,
pgmarshall
_______________________________
Bookmarks