You need to make the change in 2 places as I see you are running s9y 1.1.2. Both changes are made with a text editor. Both files to be edited are located in your template directory /templates/bex01/.
First file is config.inc.php, in which you will find this:
Code: Select all
$template_config = array(
array(
'var' => 'navlink1text',
'title' => 'Navlink #1 Text',
'description' => 'Enter the first navigation text',
'type' => 'string',
'default' => 'About',
),
array(
'var' => 'navlink1url',
'title' => 'Navlink #1 URL',
'description' => 'Enter the first navigation URL eg \'http://www.somesite.url\'',
'type' => 'string',
'default' => '#',
),
array(
'var' => 'navlink2text',
'title' => 'Navlink #2 Text',
'description' => 'Enter the second navigation text',
'type' => 'string',
'default' => 'Photos',
),
array(
'var' => 'navlink2url',
'title' => 'Navlink #2 URL',
'description' => 'Enter the second navigation URL eg \'http://www.somesite.url\'',
'type' => 'string',
'default' => '#',
),
array(
'var' => 'navlink3text',
'title' => 'Navlink #3 Text',
'description' => 'Enter the third navigation text',
'type' => 'string',
'default' => 'Projects',
),
array(
'var' => 'navlink3url',
'title' => 'Navlink #3 URL',
'description' => 'Enter the third navigation URL eg \'http://www.somesite.url\'',
'type' => 'string',
'default' => '#',
),
Using the existing as an example, continue creating as many as you need, creating both variables for the navlinktext, and the navlinkurl. For example, just after the existing navlink3url array, you would add this for a 4th:
Code: Select all
array(
'var' => 'navlink4text',
'title' => 'Navlink #4 Text',
'description' => 'Enter the third navigation text',
'type' => 'string',
'default' => 'Projects',
),
array(
'var' => 'navlink4url',
'title' => 'Navlink #4 URL',
'description' => 'Enter the third navigation URL eg \'http://www.somesite.url\'',
'type' => 'string',
'default' => '#',
),
You can keep going with 5, 6, upto whatever you want, but you will quickly reach the width of the navigation bar in that theme, and I am not sure how, if at all, the designer accomodated someone entering more links than what will fit. Chances are, the theme will "break". Anyway, be very careful with the parenthesis and commas, and note that the contents of the file ends with ); followed by ?>
Save the file and open index.tpl. Look for this block of code:
Code: Select all
<!-- ***** NAVIGATION AREA ***** -->
<div id="navigation">
<div style="float: left;">
<ul>
<li class="selected"><a href="{$serendipityBaseURL}" accesskey="h">{$CONST.HOMEPAGE}</a></li>
{if $head_version < 1.1}
<li><a href="#">About</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
{else}
<li><a href="{$template_option.navlink1url}" title="{$template_option.navlink1text}">{$template_option.navlink1text}</a></li>
<li><a href="{$template_option.navlink2url}" title="{$template_option.navlink2text}">{$template_option.navlink2text}</a></li>
<li><a href="{$template_option.navlink3url}" title="{$template_option.navlink3text}">{$template_option.navlink3text}</a></li>
{/if}
<li><a href="{$serendipityBaseURL}serendipity_admin.php">{$CONST.LOGIN}</a></li>
</ul>
</div>
This template has 2 possibilities for how to handle links. One for s9y less than version 1.1 (not you), and another for greater than 1.1 via the {else} statement. This is the portion you will edit, specifically this portion:
Code: Select all
{else}
<li><a href="{$template_option.navlink1url}" title="{$template_option.navlink1text}">{$template_option.navlink1text}</a></li>
<li><a href="{$template_option.navlink2url}" title="{$template_option.navlink2text}">{$template_option.navlink2text}</a></li>
<li><a href="{$template_option.navlink3url}" title="{$template_option.navlink3text}">{$template_option.navlink3text}</a></li>
{/if}
Before the {/if}, and using what is already there as an example, copy and paste one of the existing lines, and edit it to match what you added in config.inc.php, for example:
Code: Select all
<li><a href="{$template_option.navlink4url}" title="{$template_option.navlink4text}">{$template_option.navlink4text}</a></li>
Also note 2 things. Your "homepage" link is hard coded in this template, and is not one of the links in config.inc.php. That link is at the very top of the navigation block here:
Code: Select all
<li class="selected"><a href="{$serendipityBaseURL}" accesskey="h">{$CONST.HOMEPAGE}</a></li>
Your admin login is similarly hard coded at the bottom of the nav block here:
Code: Select all
<li><a href="{$serendipityBaseURL}serendipity_admin.php">{$CONST.LOGIN}</a></li>
I am merely pointing these 2 out should you wonder where those 2 links are coming from.
Save index.tpl and return to s9y admin window. Select "manage styles". Your new link variables should be there (ie, 4, 5, etc). Supply your text, and URLs, then "save". That should do it.