Iâ??m trying to create a project management section for my client. The idea is to create a project that allow users to update images, videos, docs, pdfs and text.
The sequence would go, create project. Then via a matrix, add project entries to the project. Which can be just a note, â??Updated the presentation for tomorrow. Emailed to clientâ?. Or â??The file download contains the new logo from the client.â? With a jpg or png that they uploaded via the project page.
In a nutshell, I want to be able to add new matrix rows to an existing channel entry. And not allowing guest to be able to delete or edit any existing matrix rows.
â??client_accessâ? is the channel. â??project_entryâ? is the name of the matrix. With the matrix cells being, â??post_title,â? â??post_by_name,â? â??post_note,â? â??post_image,â? and â??post_upload.â?
My code:
{exp:channel:entries channel="client_access" url_title="{segment_2}"}
<div class="title">{title}</div>
Project Start Date: {entry_date format="%n / %j / %Y"}<br/>
{project_info}
Post Project Entry:<br/>
{exp:safecracker channel="client_access" return="/client_access/{segment_2}" url_title="{segment_2}"}
Title:<br/>
<input type="hidden" name="project_entry[row_order][]" value="row_new_0">
<input name="project_entry[row_new_0][post_title]" type="text" value="" placeholder="Post Title" /><br/>
Posted By:<br/>
<input name="project_entry[row_new_0][post_by_name]" type="text" value="" placeholder="Post By" /> <br/>
Note:<br/>
<input name="project_entry[row_new_0][post_note]" type="text" style="width:100px; height:100px;" value="" placeholder="Note" /><br/>
Upload Image:<br/>
<input type="file" name="project_entry[row_new_0][post_image]" size="40"><br/>
Upload File: PDF, Doc, Txt<br/>
<input type="file" name="project_entry[row_new_0][post_upload]" size="40"><br/>
<input type="submit" value="Submit" />
{/exp:safecracker}
Previous Project Entries</br>
{project_entry}
{post_title}<br/>
{post_by_name}<br/>
{post_note}<br/>
{/project_entry}
{/exp:channel:entries}
As shown above, I followed the above example. But, I canâ??t seem to get mine to work. I think Iâ??m missing something.
Thoughts?