OK gallery is working nicely with Matrix (I’m just using EE resizing rather than the ED thing) but complication with the SafeCracker form.
The form needs to submit to the gallery channel, which contains description, uploader’s email, uploader’s phone number and ‘gallery’ (Matrix field). It also needs to fill the ‘gallery’ Matrix field’s title field, image (file) field, image title field, caption field, uploader’s name, uploader’s company and location photo was taken. I’m leaving file field for the time being until the rest is working.
{embed='includes/header'}
<h1>Welcome and lets get started!</h1>
<hr >
<strong>Here at Bexon we like to get to know you and your project…</strong>
<div class="add-gallery-form">
{exp:safecracker channel="galleries" return="/add-gallery"}
<label>Gallery title:</label>
<input name="gallery" class="input" type="text"><br >
<label>Gallery description:</label>
<input name="gallery_description" class="input" type="text"><br >
<label>Image title:</label>
<input name="image_title" class="input" type="text"><br >
<label>Image description:</label>
<input name="image_caption" class="input" type="text"><br >
<label>Location:</label>
<input name="location" class="input" type="text"><br >
<label>Your name:</label>
<input name="uploader_name" class="input" type="text"><br >
<label>Company:</label>
<input name="uploader_company" class="input" type="text"><br >
<label>Email:</label>
<input name="uploader_email" class="input" type="text"><br >
<label>Telephone:</label>
<input name="uploader_telephone" class="input" type="text"><br >
<input type="submit" value="Submit" />
{/exp:safecracker}
</div><!-- .add-gallery-form -->
{embed='includes/footer'}
Results in:
A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: matrix/ft.matrix.php
Line Number: 1997
The form you submitted contained the following errors
The Title field is required.
Return to Previous Page
I’d really appreciate any guidance on where I’m going wrong!