pecheney Posted November 1, 2005 Posted November 1, 2005 I have been looking since Friday. It is Tuesday. I bet the answer is easy... :-) HOW do I modify the information withing the mysterious $content variable. I have installed STS3 and I am modifying the site to fit my design somewhat successfully, but i cannot for t eh life of me figure out how to modify the $content variable's information. I can't even find where that variable is defined... This is the page I am trying to modify: http://www.lulakate.com/catalog/index.php?cPath=22 I simply want to remove the photo of belts on the right, or be able to control tyeh layout. Also I want to add verbiage per category where it says "Lulakate Catalog". According to my index.php.html file that is controlling the design of that page, all the info after the "Catergories" and "This is the indexDOTphpDOThtml pageThis is the indexDOTphpDOThtml " copy is found inside the $content variable. Can anybody help me simply with this? I feel like it it right under my nose!!! I want to get modify the layout in $content??? MAke any sense? THANKS!! Quote
Iggy Posted November 1, 2005 Posted November 1, 2005 (edited) Well... You don't. You modify the page $content is displaying. Probably the easiest way to get rid of that pic is to delete it from the category it represents. The hard way is to dig into index.php and remove the hunk of code that generates it. Iggy Edited November 1, 2005 by Iggy Quote Everything's funny but nothing's a joke...
pecheney Posted November 1, 2005 Author Posted November 1, 2005 Well... You don't. You modify the page $content is displaying. Probably the easiest way to get rid of that pic is to delete it from the category it represents. The hard way is to dig into index.php and remove the hunk of code that generates it. Iggy Thanks, Iggy. Very helpful and courteous of you. I am trying to simply make my site land on a list of categories with photos and text links. When you click on one of them, then you would go to the Category default page... This is what this is supposed to be: http://www.lulakate.com/catalog/index.php?cPath=22 I followed your directions and removed the image. I uploaded a 1x1 shim pixel gif to hold the space. I still get an awful gap of space and the copy "LulaKate Catalog" in a big blank area. I simply want to keep the products listed below and do this for like 6 catgories. I am using STS, and page's layout is controlled by a index.php.html page referncing the $content variable in it's own table. It is not nested or anything. The formatting is coming withing the $variable I assume. Almost ready to give up I am so frutrated! If you click on catalog index (http://www.lulakate.com/catalog/index.php) I have a page waiting to be modified. If you click on "LulaKate Belts in the Categories box, then I want to add a lil verbiage, a general pic of belts, and have ALL availabkle belts listed below. The same would go for every category. By simply dropping the $category variable in there, I get an unwanted "LulaKate Catalog," too much space, etc. A MUCH esier fix might be if i coudl JUST post the products in each category and make a template for each catgory using teh Cpath=??? technique.... But to do this I at least need to get rid of the "Lulakate Catalog" in teh left column and all that space. Does this make ANY sense?? Quote
Iggy Posted November 1, 2005 Posted November 1, 2005 One thing to know about STS (if you don't already) is that it just wraps various osC functions into those variables so basically you lay out a template and throw the chunks into it where you want them to go. The only way to alter the display of the chunks themselves though is to edit the corresponding osC file (index.php, product_info.php, /includes/modules/product_listing.php for example) I hope that's helpful, Iggy Quote Everything's funny but nothing's a joke...
pecheney Posted November 1, 2005 Author Posted November 1, 2005 One thing to know about STS (if you don't already) is that it just wraps various osC functions into those variables so basically you lay out a template and throw the chunks into it where you want them to go. The only way to alter the display of the chunks themselves though is to edit the corresponding osC file (index.php, product_info.php, /includes/modules/product_listing.php for example) I hope that's helpful, Iggy Very helpful. Iggy! I pretty much have the gist of STS. I have got my actual product listing looking pretty good: http://www.lulakate.com/catalog/product_in...&products_id=32 by tweaking the STS file called "product_info.php." I even have my cataog index page modified somehwat decently using the sts_template.html... i guess if i am trying to remove the "LulaKate Catalog" verboage and find teh awkward spacing (like on this page: http://www.lulakate.com/catalog/index.php?cPath=21 ) then i need to modify Catalog>Index.php's nasty code?? Quote
Iggy Posted November 1, 2005 Posted November 1, 2005 I think that's correct, yes. Likely some digging will be required to rearrange tables and inline php appropriately. Make a backup of the file so you have a fall back! Iggy Quote Everything's funny but nothing's a joke...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.