Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Outside Links in Navigation
#7
Carlos Wrote::-? About option 1 (which I believe is the easier one), editing your template.php to have something like this should work fine:

Code:
<ul id="nav">
            <?php get_navigation(return_page_slug()); ?>
            <li><a href="http://external.link" target="_blank">link</a></li>
        </ul>

With option 1 you don't need to create any GS page nor have to patch the core (as with option 3)... However, if you select another theme the added link(s) would disappear. And you can only add links at the beginning or end of the menu.

In trying the above code the issue I ran into is the CSS formatting did not carry over properly. In looking back though I applied the CSS nav property to the href tag and not the li tag. I may retry it.

In regards to option 3 and the navigation location, the choice of where the link is will be set, if I understand correctly as I haven't tested, with the page level of the page that was created in the page options. Setting it to 20 should movie it to the end (as I did), so setting to 1 or anywhere in between I would think would move it to the correct location. As I said though, I have not tested this.

As for the patch to the core, I can see your point here. If I had other people other than I working on this then I may look into a different path other than this option. Since I am the only person and this link may not be a permanent feature, I am finding this to be the quickest way for me at the moment. I am still learning GS and how it works though so all this can easily change in the near future.

I am just glad for the quick feedback and support here. It has been very helpful and solidified my choice in using this package.

Also Carlos, I think I will use your search suggestion. The built in search has been less than friendly, especially with the 30 second timer between searches required.

Thanks for the help!
Reply


Messages In This Thread
Outside Links in Navigation - by GetSimple - 2010-08-05, 01:11:29
Outside Links in Navigation - by Zegnåt - 2010-08-05, 02:03:50
Outside Links in Navigation - by GetSimple - 2010-08-05, 02:45:11
Outside Links in Navigation - by cumbe - 2010-08-05, 03:08:36
Outside Links in Navigation - by Carlos - 2010-08-05, 05:59:20
Outside Links in Navigation - by Carlos - 2010-08-05, 06:12:40
Outside Links in Navigation - by GetSimple - 2010-08-05, 06:23:38
Outside Links in Navigation - by mvlcek - 2011-04-03, 00:24:56



Users browsing this thread: 1 Guest(s)