Page 2 of 2
Re: Config Wizards Customization Question
Posted: Wed May 11, 2011 5:29 pm
by niebais
Nevermind, the two options:
define("CONFIGWIZARD_MODE_GETSTAGE4OPTS","get_stage4_opts");
define("CONFIGWIZARD_MODE_GETSTAGE5OPTS","get_stage5_opts");
Which should work, do not.

Any ideas? CONFIGWIZARD_MODE_GETSTATE3OPTS does hide the options like in the example, so just two pages more to go

Re: Config Wizards Customization Question
Posted: Thu May 12, 2011 9:55 am
by mguthrie
Are you looking to hide the whole stage of the wizard, or just the form elements?
Re: Config Wizards Customization Question
Posted: Thu May 12, 2011 11:28 am
by niebais
I'd like to hide the whole stages.
Re: Config Wizards Customization Question
Posted: Thu May 12, 2011 4:08 pm
by mguthrie
Just out of curiousity, did the trick with the hidden "nextstep" input work for skipping stages?
<input type="hidden" name="nextstep" value="commit" />
If not I'll have to dig into the code a little more and create a solution. I don't think we have an argument to skip ahead on stages, but I could be wrong. Our lead developer is out of town this week so I'll have to ask him when he gets back.
Re: Config Wizards Customization Question
Posted: Thu May 12, 2011 5:32 pm
by niebais
I put this in the GETSTAGE3HTML part in the output (<input type="hidden" name="nextstep" value="commit" />) , but it didn't seem to do anything. The only thing that has worked so far is this section:
case CONFIGWIZARD_MODE_GETSTAGE3OPTS:
//hide options for this stage
$result=CONFIGWIZARD_HIDE_OPTIONS;
break;
But that only hid one section and not all the stages. I alsy tried
case CONFIGWIZARD_MODE_GETSTAGE4OPTS: (and also 5)
//hide options for this stage
$result=CONFIGWIZARD_HIDE_OPTIONS;
break;
But this did nothing. I guess we'll just wait for what the lead developer says.
Re: Config Wizards Customization Question
Posted: Fri May 13, 2011 9:26 am
by mguthrie
We may have to do some work on our wizard framework to simplify some of this. I'm not sure the code exists yet to do what you're looking for, but you're definitely not the only person writing custom wizards. I'll put on our development TODO list to document how to create a custom wizard, and maybe we can flesh out some of the features so a simple argument can be passed to skip to a desired stage.