Help with template= parameter
Posted: 23 April 2008 10:20 AM   [ Ignore ]
Member
RankRankRank
Total Posts:  52
Joined  2007-10-16

I’m trying to implement the template parameter via the following:

{exp:gallery_extended:entry_form gallery_name="Photos" template="photos/submit_message" override_resize="no" return="photos"}

If I attempt to upload without a photo I get an error stating:
Notice: Undefined index: 1 in /www/eh6627/public_html/eextreme/modules/gallery_extended/mod.gallery_extended.php on line 2168

Also, I do not receive any message on successful submission either.  Here is the code in the template:

{if success}
<p>Your submission was successful!</p>
<
p>{message}</p>
{/if}

{if failure}
<p>Oops, there was a problem with you submission.  Please review the following message for details and try again.</p>
<
p><strong>System Message:<br />{message}</p>
{/if}

Thanks for any suggestions.

Profile
 
 
Posted: 23 April 2008 01:09 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2751
Joined  2006-10-18

rmeder,

What is it you’re trying to do with that parameter?
It is meant for much more advanced things like use of Ajax… wink

 Signature 
Profile
 
 
Posted: 23 April 2008 01:25 PM   [ Ignore ]   [ # 2 ]
Member
RankRankRank
Total Posts:  52
Joined  2007-10-16

well… I not exactly sure what I’m trying to do with all this anymore grin I keep changing how I’m handling it.

Basically… I am calling the GX2 Form into a jQuery “thickbox” and I would like to accomplish one or more of the following:
1.  After submit, update the thickbox with a success or failure message
2. Update the thickbox with a gallery entry page showing the entry just submitted and a tag entry form under it.

I’m a bit green with ajax, so I just hack my way through it.  My main problem is that the return url in GX2 would bring back a regular href and I wouldn’t be able to tag the href with a class to let my ajax script know where to target it.

Do you have any examples as to how the template parameter might be used?  Maybe I would be able to resolve my issues by picking though something else.

Thanks,

Rick

Profile
 
 
Posted: 24 April 2008 06:27 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2751
Joined  2006-10-18

I don’t do Ajax.... so I wont be able to help you myself wink

 Signature 
Profile