I am not strongly opposed to term "main" usage as the zone name and
the default page name for the content in that zone. Many of the other
systems I tried use the term "[[content]] or [[page_content]]" and not
specificially associated with any page or file, but there is no rule
fo it! I prefer the term [[pagecontent]]
The existing system though seems to work fine and consisitently
between all the zones. However, I did find it confusing that a zone
tag was also specifically associated with a specific default page. As
long as I say to myself [[zonename]] is associated with default page
named zonename, it keeps me on track. i.e. initially, default zone
[[side]] is associated with default page=side, and default zone
[[main]] is associated with default page [[main]], etc....
I employed the
>> if (!isset($_GET['p'])) $_GET['p'] = 'home';
in my config.php or index.php for a while now, so that I can make any
page I want the "main" start page of the site. The version you show
below is more complete.
I think all it takes in the future is a site config variable that
allows you to set the defaults for the "start" page of the site. Which
is what you are planning to do! > >
BOLTconfig('BOLTdefaultPage', 'main');
John
On Sep 10, 9:37 pm, "The Editor" <[EMAIL PROTECTED]> wrote:
> All right. Curiosity got the best of me. I went ahead and tested it.
> Just change the whole if statement to this:
>
> if ((!isset($_GET['p'])) || ($_GET['p'] == '')) $pageLink =
> BOLTconfig('BOLTdefaultPage', 'main');
> else $pageLink = $_GET['p'];
>
> I just tested it. Works great!
>
> Cheers,
> Dan
>
>
>
> On Wed, Sep 10, 2008 at 9:32 PM, The Editor <[EMAIL PROTECTED]> wrote:
> > According to line 55 of the engine.php script, you need to do
> > $defaultPage = 'notmain'; in your index.php before calling the engine.
> > Ok, but not ideal.
>
> > The line should be changed from
>
> > BOLTdefault($defaultPage, 'main');
>
> > to
>
> > BOLTconfig('BOLTdefaultPage', 'main');
>
> > Could you give it a test and see if this doesn't do what you want? If
> > so, I'll make the change to the core. Thanks in advance for saving me
> > a bit of work.
>
> > Cheers,
> > Dan
>
> > On Mon, Sep 8, 2008 at 7:29 PM, alinome.net <[EMAIL PROTECTED]> wrote:
>
> >> On 17 ago, 20:52, "The Editor" <[EMAIL PROTECTED]> wrote:
>
> >>> > (By the way, a configurabledefaultpageinstead of "main" would be
> >>> > great. I remember there's a hack to achieve it, in other thread.)
>
> >>> I think you can just put the following in your site.configpage:
>
> >>> defaultPage: notmain
>
> >> That never worked for me. I tried with several BW versions. Now I use
> >> 2.31. No matter what page I configure, I always get Main by default.
> >> Does it really work yet or maybe there's something wrong with my
> >> installation?
>
> >> Thanks
>
> >> Marcos
>
> >> --
> >>http://alinome.net- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---