Pardner Posted November 10, 2008 Share Posted November 10, 2008 I would like to display an infobox on the main index page only. I looked the default infoboxes and noticed that they used "basename($PHP_SELF)" when displaying the tell_a_friend, specials, currency, and languages boxes. So I adapted that idea to what I would like to do, and this is what I have so far in my column_right.php: if (basename($PHP_SELF) == FILENAME_DEFAULT){ include(DIR_WS_BOXES . 'links.php'); } The problem is that it is displayed on my product listing pages as well, but not on the actual product pages them selves nor on any other page. How can i remove this box from my product listing pages, but keep it on my main index page? Any help would greatly appreciated, ~Pard Link to comment Share on other sites More sharing options...
FIMBLE Posted November 10, 2008 Share Posted November 10, 2008 You could add it in with the index,php file rather than the columns Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
Guest Posted November 10, 2008 Share Posted November 10, 2008 Try it like this if ((basename($PHP_SELF) == FILENAME_DEFAULT) && ($category_depth == 'top')) include(DIR_WS_BOXES . 'links.php'); Link to comment Share on other sites More sharing options...
Pardner Posted November 10, 2008 Author Share Posted November 10, 2008 Try it like this Thank-you very much. I realized shortly after posting that I needed to specify the depth, but I still did not know how to do it! It works great, thank-you. ~Pard Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.