I’ve seen this question asked several times in other threads, but I couldn’t understand the answers.
Without using the ridiculously circuitous system of hooks and addons, how can I use a different stylesheet for my home page? I just need to make a few small changes to the layout to accommodate a flash element on the home page only. Do I need to start by editing the index.tpl file? Please excuse my ignorance but, nothing in there looks like a reference to a stylesheet.
I’d like to use hooks and hand-code smarty and all that, but it’s beyond my ability at this point. When it’s time to upgrade I’ll just redesign everything. Hopefully I will have learned how to use the software properly by then.
If someone would just take two minutes to say, “Put this code _____ in this place____” it would save me many hours of tedious trial and error.
This appears to be the missing link between me being a total moron and me starting to understand this stuff. I’ve literally read and re-read all the documentation on this software and it seems to go from very basic to extremely advanced in one step.
[quote name=‘plinkplink’]This appears to be the missing link between me being a total moron and me starting to understand this stuff. I’ve literally read and re-read all the documentation on this software and it seems to go from very basic to extremely advanced in one step.[/quote]You’re not alone in this. I’ve taken about a week to get to grips with the basics alone.
PM me and we’ll try and sort this out together - sort of blind leading the blind
Morons unite! Let’s give it a shot.
Simple Solution to this kind of Problems is that
First Understand the System that you are using.
CS-Cart is using the Controller based system
For example you have the Profile Controller and in that Controller there are a number of actions such as auth, forget password etc.
Same is for the Index page.
Use the smarty session variable to store the action that you are to set.
For example if you have
$_SESSION[‘view_video’]=‘Y’;
then
use smarty.session/view_video in the common_templates/styles.tpl to set the style sheet that you want for that.
{if this is true}
load this style sheet too.
{/if}
Hope you will get the Idea.
Thanks
Perochak
Anyone looking for a solution to the flash banner question, here’s what I did:
I just made a basic html document to hold the flash container and then I stuck it in the top block on the Home Page. I used the html to break it apart from the rest of the layout.
So, in the Admin Panel, go to Design>Blocks>Home Page and click Add Block. In the Block Content drop down menu select Special> HTML Block. Then dump your code in there.