paulbrause

Members
  • Content count

    5
  • Joined

  • Last visited

Community Reputation

3 Neutral

About paulbrause

  • Rank
    Newbie

Profile Information

  • Gender
    Female
  1. Thanks Soma! Will use $_POST["test"] instead...
  2. Hi! I have a formular like this: <form action="/test/" method="post"> <input type="text" name="test[1234]['value1']" /> <input type="text" name="test[1234]['value2']" /> <input type="text" name="test[1234]['value3']" /> <input type="text" name="test[2345]['value1']" /> <input type="text" name="test[2345]['value2']" /> <input type="text" name="test[2345]['value3']" /> ... <input type="hidden" id="_post_token" name="{$this->session->CSRF->getTokenName()}" value="{$this->session->CSRF->getTokenValue()}"/> <input type="submit" value="Submit" name="submit" /> </form> For testing the processing of the form looks likes this: if($input->post->submit && $session->CSRF->validate()) { $data_pw = $input->post["test"]; $data_post = $_POST["test"]; echo "<pre>"; print_r($data_pw); print_r($data_post); echo "</pre>"; } But i always get something like this... Array ( ) Array ( [1234] => Array ( ["value1"] => "Test" ["value2"] => "Hi" ["value3"] => "Hello again" ) [2345] => Array ( ["value1"] => "Oh no" ["value2"] => "Wait, what?" ["value3"] => "Bye bye" ) ) Why is $input->post["test"] returned as an empty array? Am i doing something wrong? (using PW 3.0.18)
  3. You're wrong, adrian! This is exactly what i was searching for, thank you very much! But I brought it to work only today... it's my first project with processwire and there is much to learn. But i can say right now: i love it.
  4. Yes, would be nice if upload of the images & creation of the pages could be automated. I thought of setting the maximum of photos per album to 48. Not sure, how often this maximum will be reached, mostly there will be ~20 pics. I guess there will be a new album 3-4 times a month. The workflow should be like this: - user logs in admin-panel - creates under "photos" new page like "my wedding". fields under this template should be "title", "date" & "cover image"... - uploads photos (perhaps possibility of rearranging, deleting and tagging of uploaded photos) - one click and the magic will happen (creating separate page for every uploaded photo, setting title of page to image-name and so on) This should be as simple as possible, cause my father and my mother will use this system too... Hope this answers your question.
  5. Hi! I'm new to ProcessWire and i need a "little" help with my family's website. What i want: The website of my family contains a gallery, where photos are shown in several albums. The current tree looks like this: ---photos ------ New Year 2013 ------ Going to the zoo ------ Dad's 60th birthday ------ Our Pug ------ ... Showing all pictures on one page is no problem for me, i got that working. But the photos should be Instagram-like "commentable" and "likeable". So i have to create a page for every single image, right? My questions are now: what's "the best" way to do this? Is it possible to automate this process? And how? I hope you understand, what i'm trying to do... my english is not that good, school is a few days ago... paulbrause