Making link buttons go to correct page
Posted: Mon Nov 20, 2006 11:03 pm
Hello everybody, this is my first post. I have to say I am impressed with serendipity. I am using the Bex1 template, and it is fantastic. I am amazed at the work that goes in these things, and how nice they look.
Anyway, my question is: how do I set up the links to go where I want? Where, exactly, and in what file, do I add the web address I want the link to go to?
I assume it is in the config file, which looks like this:
$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
if (file_exists($probelang)) {
include $probelang;
} else {
include dirname(__FILE__) . '/lang_en.inc.php';
}
$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' => '#',
),
);
?>
(credit to Rebecca Hemstad)
So do I place http://www.somewebpage.com in the VAR, TITLE, DESCRIPTION, or DEFAULT lines? Or am I off base?
Obviously, I'm new at this, although I've managed to change backgrounds, font sizes and colors, etc.. I feel like a paint by numbers artist; as long as the framework is there, I can fill in the areas with what I need. Just don't ask me to draw anything on my own!
Thank you for the help, you people are amazing!
Anyway, my question is: how do I set up the links to go where I want? Where, exactly, and in what file, do I add the web address I want the link to go to?
I assume it is in the config file, which looks like this:
$probelang = dirname(__FILE__) . '/lang_' . $serendipity['lang'] . '.inc.php';
if (file_exists($probelang)) {
include $probelang;
} else {
include dirname(__FILE__) . '/lang_en.inc.php';
}
$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' => '#',
),
);
?>
(credit to Rebecca Hemstad)
So do I place http://www.somewebpage.com in the VAR, TITLE, DESCRIPTION, or DEFAULT lines? Or am I off base?
Obviously, I'm new at this, although I've managed to change backgrounds, font sizes and colors, etc.. I feel like a paint by numbers artist; as long as the framework is there, I can fill in the areas with what I need. Just don't ask me to draw anything on my own!
Thank you for the help, you people are amazing!