-
Posts
70 -
Joined
-
Last visited
Posts posted by J_Szwarga
-
-
On 8/3/2015 at 3:50 PM, Macrura said:
you would need to:
1.) allow the form to accept GET params (in the form setting)
2.) Use a select field for the class, or a text field
3.) make your link to the form that references the page ID of the class, like:
/registration/intro-to-computers/?class=1298 (page select)
or url encode the title if using a text field
/registration/intro-to-computers/?name=Intro%20to%20Computers%22
and you probably would want to sanitize the input, though i think FB sanitizes input by default?
Can you give more detail on #3?
-
Rookie Question Alert:
Attached is my piece of code from my _main.php.
What do I need to do in this section of my code to remove the dropdown-toggle from the grandchildren of "Home" in my menu?
I don't want to remove the toggles from Home's children, but their children I do.
if($child->numChildren > 0 && $child->url <> "/"){$class .= " dropdown-toggle ";}if($page == $child){$class .= " active ";}elseif ($page->parents->has($child) && $child->url <> "/") {$class .= " active ";} -
1 minute ago, Zeka said:
It's not clear what do you want to limit? If you use the page reference field for assigning speakers, so you actually limit the list of speakers for certain event by this field.
Do you notice in my screenshot of my site, there's extra divs being generated? I think it's a problem with my foreach loop. I'm guessing the solution would be to stop the foreach loop after all the page references are echoed...if that makes any more sense.
-
No empty speakers. I'm using a page reference to assign certain speakers to certain camps
-
All new to Processwire and PHP so be patient!
I'm trying to display multiple speakers for some events using a foreach loop. Not all the events have multiple speakers though.
So, how can I limit the foreach loop so it stops running all the empty divs?
At the top of my php file is this code:
<?php namespace ProcessWire;foreach($page->speaker as $speaker):$thumb = $speaker->photo->width(310);endforeach;?>
FormBuilder Multi-page Form for logged in users
in General Support
Posted
What is the best practice for having a form (only accessible to a logged in user) save the user's progress between sections of the form? Fieldsets? Multiple forms?
Use case: I have a very long application form that would take 30 minutes for the applicant to fill out and I would hate for all progress to be lost due to user error. The progress needs to be logged into the user's page.
Thanks!