Advertisement:

Author Topic: Custom Page with Menu Link  (Read 4206 times)

Offline Atheo

  • Jr. Member
  • **
  • Posts: 205
Custom Page with Menu Link
« on: May 16, 2008, 12:43:18 PM »
Hello, I'm new and learning so if this is a simple question I apologize.

What I am trying to do:

1.)  I'm using the current smf 2 beta.  I want to make a custom home page that displays nothing after the menu bar except what I put there (i.e. Articles, pics, etc.)  I want this page to have everything that appears from the menu and above and follow the current theme but as an editable content page.   1.1.5 had Home and Forum as separate pages but 2.X seems to have the forum as the home page.  I don't like this.

2.)  I want to have a link in the menu bar so that 'Home' links to this page and 'Forum' to the current home page(forum).

I am using the default theme with some custom graphics changes.
I have searched and searched for a solution and have found topics that touch on at least parts of this.  If this is a newbie question, I'm sorry.  At least tell me where to find the solution. 

Thanks!

Remember: I have only been doing this a couple of days but I catch on quickly.

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK

Offline Atheo

  • Jr. Member
  • **
  • Posts: 205
Re: Custom Page with Menu Link
« Reply #2 on: May 16, 2008, 12:49:44 PM »
THANKS!!!

Now how do I change the buttons on the menu so that 'Home' leads to a custom page and 'Forum' leads to the board?
« Last Edit: May 16, 2008, 12:52:14 PM by Atheo »

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: Custom Page with Menu Link
« Reply #3 on: May 16, 2008, 09:18:45 PM »
The menu buttons are in Sources/Subs.php
From about line 3682 onwards.

The one for home for example is
      'home' => array(
            'title' => $txt['home'],
            'href' => $scripturl,
            'show' => true,
            'sub_buttons' => array(
            ),
         ),