, Guest!
Already a Member? Login or Register.

Menu



Showcase


Due to the volume of spam happening on our forums, posting is now restricted to verified members only.  If you're not verified, drop us a note with your username.

Home > FlexCMS Support Forum > User Help > FAQ's: Templates > Template Code Changes from v1.2 to v1.3

FlexCMS Support Forum


Template Code Changes from v1.2 to v1.3
Started April 6, 2005 @ 11:31pm by DCSun
(This thread is currently Locked) 
DCSun
Administrator



Posts: 625
 
Template Code Changes from v1.2 to v1.3April 6, 2005 @ 11:31pm
Several important changes have taken place in the FlexCMS templates to accommodate new features which appeared in version 1.3. These include better control of link colors in the menu and footer areas, link hover colors, link underline options, and more. Simply follow the steps below, and your templates will be ready to take advantage of these new features.

1. Near the top of your template, in the section defining text and link colors, add these two lines:

Code

$Colors['LinkHover'] = '#ffffff';
$Colors['BLinkHover'] = '#ffffff';

(and, of course, insert your own colors in place of ffffff above.)


2. Look for "function BuildTemplate() {" (usually about three quarters of the way down the template code), and locate this line:

Code

Global $FV, $VD, $FontFace, $FontSize, $Colors, $ColumnSpacing, $LeftColumnWidth, $RightColumnWidth;

To the end of it, just before the semi colon, add:

Code

, $TextDecoration

so the line looks like this:

Code

Global $FV, $VD, $FontFace, $FontSize, $Colors, $ColumnSpacing, $LeftColumnWidth, $RightColumnWidth, $TextDecoration;



3. Remove this line from your template:

Code

<!-- Software Version: '.$FV.' ('.$VD.') -- Use subject to the license agreement available at http://www.flexcms.com/index.php/pages/license.html -->

(located just above the html headers section)


4. Update your style section (just above the body of the html page) to look like this:

Code

<style>
a { text-decoration:'.$TextDecoration[1].'; }
a:hover { color:'.$Colors['LinkHover'].'; text-decoration:'.$TextDecoration[2].'; }

.BlockColors { color:'.$Colors['BText'].'; text-decoration:'.$TextDecoration[3].'; }
a.BlockColors:link { color:'.$Colors['BLink'].'; }
a.BlockColors:visited { color:'.$Colors['BVLink'].'; }
a.BlockColors:active { color:'.$Colors['BALink'].'; }
a.BlockColors:hover { color:'.$Colors['BLinkHover'].'; text-decoration:'.$TextDecoration[4].'; }

.FooterColors { color:'.$Colors['Text'].'; }
a.FooterColors:link { color:'.$Colors['Link'].'; }
a.FooterColors:visited { color:'.$Colors['VLink'].'; }
a.FooterColors:active { color:'.$Colors['ALink'].'; }
</style>

(you may wish to adjust the colors pulled in for the footer and hover, depending on the way your template looks)



That's it! Your template is now up to v1.3 specs and ready to enjoy the cool new features that go along with it. If you require any assistance with this, post a message in these forums with the details and we'll be happy to help you get it sorted out.


FlexCMS v3.2 Has Been Released!
 

Last Edit: April 6, 2005 @ 11:32pm by DCSun

(This thread is currently Locked) 




Try & Buy FeedForAll - Easy to use RSS Feed Creator - great for iTunes users!

MEMBERS




All Contents, Code, Scripts and Technologies Copyright 2003-2009 FlexCMS.
All Rights Reserved. Software License Agreement

Processing Time: 0.07967 seconds.
 
Management Login

Powered By FlexCMS
Powered By FlexCMS