Guest Posted January 16, 2006 Share Posted January 16, 2006 ...Now another question: how can I use meta tags within this STS, I tried some dynamic things but didn't get it to work and even with the standard <title>Test</title> in the HEAD nothing happens...........??? I've got NO clue were to do this right, do you?! thanks in advance, Chris If you are using Header Tags Controller (contribution 207), get the STS PLUS module from there and follow the instructions. If you are using another contribution, look anyway at this module to see how it works. Why HTC does not work: this contribution adds text in the header of the page, between <head> and </head>, but STS does not care of it as it takes the header from the html template. How it works in STS PLUS: The STS variable $headertags ($sts->template['headertags'] in the code) contains by default the TITLE meta tag (like in standard osC) and it will be automatically added to the header of your html templates (no need to put it yourself). You can now add code in sts_user_code.php, or create a module like the one for HTC, to overwrite or modify this variable like you want. It will be automatically displayed on your pages. Note 1: as mentionned, you do not need to place $headertags on your template, but the <!--$headcontent--> is needed! See template examples delivered with the contribution. Note 2: you do not need to modify all files in the catalog to call the HTC file, as STS PLUS will ignore the result! Hello, I've been trying to evaluate OSCommerce and Zen Cart for a while now. STS Plus makes me think OSCommerce is the system to go with I would be proud if you choose osCommerce because of STS PLUS! I've just tried adding STS Plus to a fresh OSCommerce install. In the Modules section of the Admin interface I clicked the Install button. It seems that nothing happened; however, when I view the cart I receive an error message: Warning: main(includes/classes/sts.php): failed to open stream: No such file or directory in /home/.hawthorn/dogsrule/dogsruleshop.com/test2/includes/application_top.php on line 508 In the STS Plus docs it said to enable the STS module, but I haven't seen an option to do that. It seems that you have missed something during installation, because at least one file is missing. Take the last release 4.0.6, copy the files from the 'upload' folder to your application, if you have a fresh install od osC you can also copy the files from the 'clean_osc' folder. Then you should see the 3 STS PLUS modules in your admin panel. I defined a own ALT-Tag for the Logo..Mow its overwrited with OSCOMMERCE again.. Can?t find where its declared.. It is declared in includes/modules/sts_inc/general.php. Find the line: $sts->template['cataloglogo'] = '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; Quite stupid piece of code, text should come from a language file! In fact it is same as in stock osC. One way is to modify this tag, the other way is to not use $cataloglogo on your template but place the logo yourself. Ouch, long reply, need coffee... - Rigadin Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.