How to Add a Link for Home into top navigation

21 views
Skip to first unread message

efelo

unread,
Feb 3, 2012, 12:23:59 PM2/3/12
to apostrophenow
Is it possible to add a Link to the home page into the top navigation?
Could this also maybe solved by some configuration in app.yml. Maybe
someting like: home_in_nav: false # Set to true to add home to top
navigation.

Thanx and Greetings to all of you guys from P'unk Avenue.

Giorgos Tsoukalas

unread,
Feb 3, 2012, 3:59:26 PM2/3/12
to apostr...@googlegroups.com
add the extras param at the navigation in the layout.php like this:

<?php include_component('aNavigation', 'tabs', array('extras' =>
array('http://www.existanze.com' => 'Existanze'), 'root' => $root,
'active' => $page, 'name' => 'main', 'draggable' => true, 'dragIcon' =>
false)) # Top Level Navigation ?>

I don't think it can be done from the app.yml.

Tom Boutell

unread,
Feb 3, 2012, 4:03:03 PM2/3/12
to apostr...@googlegroups.com
Yep. You could use sfConfig::get to get your own app.yml setting if you wanted.

--
Tom Boutell
P'unk Avenue
215 755 1330
punkave.com
window.punkave.com

Giorgos Tsoukalas

unread,
Feb 3, 2012, 4:06:04 PM2/3/12
to apostr...@googlegroups.com
Right. I thought the question was for a setting that wouldn't require
changing the layout file
Good thinking!

efelo

unread,
Feb 4, 2012, 6:51:57 AM2/4/12
to apostrophenow
Thnks for the fast help fist!!!

Giorgos got it. Nearly all of our clients wanted an extra Link for
thier Home. So overriding is a solution, but I thought abaut a
standard boolean setting in app.yml that could turn the Home Link on
and off without changing the navigation in the layout file.




On 3 Feb., 22:06, Giorgos Tsoukalas <giorgosts...@gmail.com> wrote:
> Right. I thought the question was for a setting that wouldn't require
> changing the layout file
> Good thinking!
>
> On 03/02/2012 02:03 μμ, Tom Boutell wrote:
>
>
>
>
>
>
>
> > Yep. You could use sfConfig::get to get your own app.yml setting if you wanted.
>
> > On Fri, Feb 3, 2012 at 3:59 PM, Giorgos Tsoukalas
> > <giorgosts...@gmail.com>  wrote:
Reply all
Reply to author
Forward
0 new messages