, Guest!
Already a Member? Login or Register.





Menu



Clients



Showcase



Rate FlexCMS

ScriptSearch.com Rating:

Hotscripts Rating
Excellent!
Very Good
Good
Fair
Poor



FlexCMS eNews

To subscribe to our enewsletter, please enter your email address in the box below and click the "Subscribe" button.


Note:  You may easily remove yourself from the newsletter list at any time by following the instructions included with every mailing.

LATEST DEVELOPMENT NEWS:  FlexCMS 2.5 has been released!!! Click here to read the official announcement!

Home > FlexCMS Support Forum > User Help > General Support Requests > Articles styles

FlexCMS Support Forum


Articles styles
Started February 12, 2008 @ 3:12pm by David
Post Message 
David


Posts: 10
 
Articles stylesFebruary 12, 2008 @ 3:12pm
Hi,

I'm trying to create a 5th style set to the "Add Article to a Page" section to include only Title and Teaser.

I've added the following to inc-na-admin-articles-generate.php around line 57:

<input type="radio" name="StyleCode" value="5"> <b>5</b> - '.$MsgText[7][200].'<br>

... and the following to inc-core-lang-english.php around line 1629:

$MsgText[7][200] = 'Title, Teaser';

... but I can't figure out how to amend the index.php (or if there are any other relevant files) to display it properly.

Can anybody please help?

Thanks,
David
 
DCSun
Administrator

Posts: 392
 
February 12, 2008 @ 5:42pm
David,

The portion of code where they're actually included in pages is located in index.php. The section you're interested in starts around line 1417. You should see "if ($StyleCode == 1) {", with a block of code under that. Just follow that section down and create a copy of the fourth one, then modify to suit.

Hope that helps.

David
 
David


Posts: 10
 
February 13, 2008 @ 3:15am
Thanks for the prompt feedback. Much appreciated. I also had to change the two lines containing the code:

if ($StyleCode == 1 || $StyleCode == 2 || $StyleCode == 3 || $StyleCode == 4) {

to:

if ($StyleCode == 1 || $StyleCode == 2 || $StyleCode == 3 || $StyleCode == 4 || $StyleCode == 5) {

Works like a charm ... !!

//David
 

Post Message 







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

Processing Time: 0.09104 seconds.
 

Powered By FlexCMS
Powered By FlexCMS


Valid CSS!