Re: Lets lets add a home page!
Reply #15 –
Hey question: has anyone tried shoving this into an elk yet? Just curious, since the last change on the repo was 3 months ago, and elks these days may protest at the intrusion.
Re: Lets lets add a home page!
Reply #17 –
Aha. It hasn't added any admin shiz for the portal. D'oh. No settings, tabs or anything. Looks like it still needs a fair bit of work before it's usable.
Re: Lets lets add a home page!
Reply #18 –
No, we haven't made a decision because we're still debating going paid - though if we do go open source, it'll be MPL 2.0 with Exhibit B.
Re: Lets lets add a home page!
Reply #24 –
Me thinks this needs to be revisited. The way the current hook works, will not allow you to push the forum off to another action. The hook is only called if $_GET['action'] is empty. Which means, your front page hook works great if you hook into it because the $_GET['action'] is empty. I think the hook needs to be pushed up before the empty() check for action. Maybe right after the $default_action[] array is set. This way, the default action can be overridden. But this would mean that whoever hooks into the frontpage will need to make sure they take care of setting the default action if not on the frontpage. Hope that makes sense. And please tell me if I'm not thinking right about this.
Re: Lets lets add a home page!
Reply #25 –
meh... looks like that won't work either to move the hook up. $default_action never gets set either, unless $_GET['action'] is empty...
Re: Lets lets add a home page!
Reply #26 –
First thought (which doesn't answer the issue, I think): if we add a home page, I'd think it has to be the default action for Elk no-hooks install, right? We can also set 'action=home' on it. So, that changes the scenario to: the default action will be "the action when no valid ;action= is set", and the home page will be "action=home".
By default, the default action (=the action when no valid ;action= param is set) would be redirected to 'home'. The hook overrides that.
Does that make sense? (disclaimer: 3 am!)
How should it all behave instead?
ETA: please note, Elk recognizes actions with no 'action' set, but another forum-ish parameter: index.php?msg=321.
Re: Lets lets add a home page!
Reply #29 –
Does everyone want to be able to enable/disable the homepage option? I was thinking a nice little checkbox to give the option in Features and Options > Layout > Enable homepage. Then we could just provide a basic html layout welcome page so that people know they can customize their own homepage.