Guest Posted November 24, 2004 Posted November 24, 2004 Is there a simple way to extract the current category name in includes/modules/product_listing.php.? Having a helluva time finding this today. What I would like to do is images/ <?PHP echo "$categories_name_or_whatever_will_work_here"; ?> then add the extension .gif to pull an image from the images folder. Example Novelties.gif = <?PHP echo"$categories_name"; ?>.gif I would like it to work for a unique background: shopxbk1.gif as shown in the html below. <TD valign="top" width="100%" background="images/shopxbk1.gif"> Sorry if I bumped, but 3 hours later I still have no solution. Thanks for the assist. TJ
dburchm1 Posted November 24, 2004 Posted November 24, 2004 well there is always the variable from the aplication top that is used in the breadcrumb trail try <?php echo $categories['categories_name']; ?>
thecodingmonkey Posted November 24, 2004 Posted November 24, 2004 That is because no one understands the words that are coming out your fingers
Guest Posted November 24, 2004 Posted November 24, 2004 That is because no one understands the words that are coming out your fingers <{POST_SNAPBACK}> Been a long day, sorry :) God I tried that 3 hours ago - didn't work for me hehe. Finally got it to work. Check it out . <TD valign="top" width="100%" background=images/<?php echo $breadcrumb->last(); ?>.gif> Be sure to click on the dhtml "apparel" button to see the resulting background image. The background image is pulled by category name + .gif - seems simple enough, but it isn't to me. http://pacifichostingsolutions.com/Clients...ex.php?cPath=23 Thanks dburchm1 TJ
PopTheTop Posted November 24, 2004 Posted November 24, 2004 Hey man, nice looking osC shopping cart! But the shopping cart links in your flash are no good. L8r, PopTheTop Published osC Contributions: - eCheck Payment Module v3.1 - Reviews in Product Display v2.0 - Fancier Invoice & Packingslip v6.1 - Admin Notes / Customer Notes v2.2 - Customer Zip & State Validation v2.2 - Search Box with Dropdown Category Menu v1.0 Pop your camper's top today! It's a popup thing... You wouldn't understand
Guest Posted November 24, 2004 Posted November 24, 2004 Hey man, nice looking osC shopping cart! But the shopping cart links in your flash are no good. <{POST_SNAPBACK}> . The site is in beta for about another two weeks. Testing server is all. Just gluing it together.. :) Helluva project, Thanks... TJ
Recommended Posts
Archived
This topic is now archived and is closed to further replies.