|
|
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 > General Support Requests > Articles styles
FlexCMS Support Forum
Articles styles Started February 12, 2008 @ 3:12pm by David
|
Post Message |
|
|
Articles styles | February 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: 625 |
|
|
| 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
FlexCMS v3.2 Has Been Released! |
|
|
|
|
|
|
| |
|
|
| 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 |
|
|
|
|
|
|
|
|
|
| MEMBERS
|
|
|