Extra navbar links for the Smallbiz01 template

Carl discovers the world

  • RSS Feed
  • Login
  • Contact
Ning Themes
Skins 4 Ning, CSS tips, PHP hacks, howto's and theme doc's
Keyword Elite
I use Keyword Elite to find profitable
niches for my online business
Serendipity Directory
Add your site to the Serendipity
Users Directory
Welcome
Herzlich Willkommen


Hi, Welcome to my site, please bookmark me, and feel free to comment on my posts
  • Home
  • About
  • Serendipity
  • Blogger
  • Wordpress
 

Friday, July 28. 2006

Extra navbar links for the Smallbiz01 template

Robert Lender has published a short tutorial on adding an extra navbar link in the smallbiz01 template for users of Serendipity 1.1

For my English visitors, the gist of the tutorial is fairly simple to follow and involves editing the config.inc.php and index.tpl files from the template folder.

In config.inc.php add the following code, making sure to start adding additional links from number 6 since 5 is already used for one of the footer links.

array(
'var' => 'navlink6text',
'title' => 'Navlink #6 Text',
'description' => 'Enter the sixth navigation text',
'type' => 'string',
'default' => 'Downloads',
),
array(
'var' => 'navlink6url',
'title' => 'Navlink #6 URL',
'description' => 'Enter the sixth navigation URL eg \'http://www.somesite.url\'',
'type' => 'string',
'default' => '#',
),

Then, open index.tpl and add the following line after the existing list items within the second part of the navbar (these are the bits that have the smarty code which includes a reference to the $template_option's

<li><a href="{$template_option.navlink6url}" title="{$template_option.navlink6text}">
{$template_option.navlink6text}</a></li>

Robert's tutorial mentions that adding as many extra links as you need is possible by simply repeating the process described above, and incrementing the numbers in the variables navlink6text and navlink6url. Easily done and this will extend your template navbar to include as many links as you require.

Thanks to Robert for sharing his experiences.
If you enjoyed this post, make sure you subscribe to my RSS feed.
Posted by Carl in Theming Serendipity at 22:51   Comment (1)
Defined tags for this entry: s9ytechnorati, serendipitytechnorati, smartytechnorati, Templatestechnorati, Themestechnorati
Related entries by tags:
Pixabella04 for Wordpress
Add This Bookmark and Share Widget Code for Serendipity Templates
Hawaii Template for Serendipity Released


Trackbacks
Trackback specific URI for this entry

No Trackbacks

Comments

  1. Robert said,

    Sunday, July 30. 2006 at 05:08 (Reply)

    It´s a honour to me to be mentioned at your blog. And thanks to you for your wonderful themes.

Add Comment

Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
 
 
Submitted comments will be subject to moderation before being displayed.
 
 

Categories

  • Blogger
  • Blogger Templates
  • Carl's Journal
  • Christmas
  • Humanity
  • Italian
  • Ning Templates
  • Palm z22
  • Science/Nature
  • Technology
  • Screencasting
  • SEO, Traffic
  • Serendipity Blog
  • Basic html/css
  • Download Themes
  • Theming Serendipity
  • Using Serendipity
  • Small Business
  • Spain
  • Spanish
  • Travel
  • Wordpress
  • Xampp WebServer

All categories




U COMMENT
I FOLLOW






My Feedburner Feed
Subscribe to my Feedburner

© 2005-7 Carl Galloway.Template by Carl, artwork by Pixabella. Valid XHTML, CSS