BlazeMiskulin Posted February 5, 2007 Posted February 5, 2007 I'm trying to modify the design/theme of an installation of OSC, and I've hit a major stumbling block. I'm using STS 4.4 On the main entry page ("catalog") where does "$content" get pulled from? It appears to be pulling the "what's new" box and rendering it as the main content section. How do I change that and have it render something else? On every other page, it's rendering the content the way I want it to. For reference: https://www.donsmarine.com/catalog/index.php Entry page = yuck "New boats" category = closer to what I want -- Blaze Miskulin
BlazeMiskulin Posted February 5, 2007 Author Posted February 5, 2007 Actually, let me simplify the question: How do I make "what's new"/"new products" go away entirely? From every page.
kgt Posted February 5, 2007 Posted February 5, 2007 Did you download the user manual? It describes in great detail how sts works. Contributions Discount Coupon Codes Donations
BlazeMiskulin Posted February 8, 2007 Author Posted February 8, 2007 Did you download the user manual? It describes in great detail how sts works. Yes, I did. And it reads like a engineering diagram for a fighter plane. After almost an hour of wading through flow-charts, I decided to come here and ask for help. I don't want to replace every page with something different. I simply want to modify (or failing that, remove) 1 tiny piece of code in order to make the page look appropriate to the design. I'm not new to CSS or writing themes for applications. I can toss out a WordPress theme in day--including creating the graphics. I spent 6 hours this weekend trying to find out the answer to something I could do in 10 minutes for any other program. Who the #$%@ hard-codes styling into an application? And don't even get me started on the fact that everything is referred to by variables, and there's no simple way of finding out what those variables point to. I'm a designer, not a programmer. I shouldn't have to have an graduate degree in PHP in order to change the color of a table header. All I want to do is remove the "new products" from the middle of every page. How do I do that? What file/data/whatever is being called on to create that table (oh... and table-based layouts? wtf?) and how do I make it go away without breaking every thing else? Very simple question. Does anyone have an answer that doesn't boil down to "read the 30-page manual for the special plug-in that makes things 'simple'"? I'm sorry if I'm sounding bitchy, but this is costing me hundreds of dollars in lost time (I can't, in good conscience, bill a client for time I spend wading through a manual). So, I will ask once again: How do I remove the "what's new" table from the center of every page without created entirely new files for every page?
bill110 Posted February 8, 2007 Posted February 8, 2007 catalog/index.php find and delete this <tr> <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> </tr> There are two instances of it each controls a different page. The last instance displays it on the main page the other controls the display if you click on a category. Hope this helps. My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
BlazeMiskulin Posted February 10, 2007 Author Posted February 10, 2007 Thank you! That is exactly what I needed. I had commented that section out, but it didn't disappear. I didn't realize it had to be completely deleted in order to vanish.
bill110 Posted February 10, 2007 Posted February 10, 2007 You shouldnt have to but since that part is html you have to comment it out like this: <!-- code to comment out //--> My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
BlazeMiskulin Posted February 12, 2007 Author Posted February 12, 2007 I'm quite familiar with how to comment out code; I actually make extensive use of comments in most of the projects on which I work. That's why the first thing I did was to comment out what I (correctly, as it turns out) figured was the "offending" code. However, commenting out the code didn't work. I'm not sure why not, nor (to be honest) do I care much at this point. I've got the site working the way I want. Later, I can come back and try to dig through the files to figure things out in more detail.
mazoo Posted February 13, 2007 Posted February 13, 2007 I'm trying to modify the design/theme of an installation of OSC, and I've hit a major stumbling block. I'm using STS 4.4 On the main entry page ("catalog") where does "$content" get pulled from? It appears to be pulling the "what's new" box and rendering it as the main content section. How do I change that and have it render something else? On every other page, it's rendering the content the way I want it to. For reference: https://www.donsmarine.com/catalog/index.php Entry page = yuck "New boats" category = closer to what I want -- Blaze Miskulin just checked your link using i.e 7 and get the following error below, might put some customers off using your site There is a problem with this website's security certificate. The security certificate presented by this website was not issued by a trusted certificate authority. The security certificate presented by this website was issued for a different website's address. Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server. We recommend that you close this webpage and do not continue to this website. Click here to close this webpage. Continue to this website (not recommended). More information
BlazeMiskulin Posted February 17, 2007 Author Posted February 17, 2007 just checked your link using i.e 7 and get the following error below, might put some customers off using your site Heh heh.. yeah... :) I know about the certificate. The site isn't live yet, so it's not an issue (it's not linked anywhere, only accessible directly). That also explains why there's no content yet. We'll have a valid SSL Cert when we go live. I'm one of those people who actually asks for help *before* the site goes live. I know, I know.... "radical thinking". ;)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.