Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Custom Contact Form
 
NELAGeek
Sr. Member
 
Avatar
Total Posts:  193
Joined:  2010-01-23
US
 

So I recently wanted to create a custom contact form with an extra image upload field.  I made a copy of the contacts.phtml as template/usergallery/gallerysubmit.phtml .  Here is the layout file code:

layout version="0.1.0">

    <
gallerysubmit_index_index translate="label">
        <
label>Submit Gallery Pictures</label>
        <
reference name="root">
            <
action method="setTemplate"><template>page/3columns.phtml</template></action>
            <
action method="setHeaderTitle" translate="title" module="gallerysubmit"><title>Submit Gallery Pictures</title></action>
        </
reference>
        <
reference name="content">
            <
block type="core/template" name="contacts" template="usergallery/gallerysubmit.phtml"/>
        </
reference>
    </
gallerysubmit_index_index>
</
layout>

But if i go to the url http://domain/gallerysubmit i get a page not found.  Any help would be greatly appreciated.

 
Magento Community Magento Community
Magento Community
Magento Community
 
TreInnova
Guru
 
Avatar
Total Posts:  465
Joined:  2009-02-20
Fano
 
NELAGeek - 02 February 2013 06:27 AM

So I recently wanted to create a custom contact form with an extra image upload field.  I made a copy of the contacts.phtml as template/usergallery/gallerysubmit.phtml .  Here is the layout file code:

layout version="0.1.0">

    <
gallerysubmit_index_index translate="label">
        <
label>Submit Gallery Pictures</label>
        <
reference name="root">
            <
action method="setTemplate"><template>page/3columns.phtml</template></action>
            <
action method="setHeaderTitle" translate="title" module="gallerysubmit"><title>Submit Gallery Pictures</title></action>
        </
reference>
        <
reference name="content">
            <
block type="core/template" name="contacts" template="usergallery/gallerysubmit.phtml"/>
        </
reference>
    </
gallerysubmit_index_index>
</
layout>

But if i go to the url http://domain/gallerysubmit i get a page not found.  Any help would be greatly appreciated.

Hi,
witch is the structure of your module? Have you got the right controller?
regards
FIlippo

 
Magento Community Magento Community
Magento Community
Magento Community
 
NELAGeek
Sr. Member
 
Avatar
Total Posts:  193
Joined:  2010-01-23
US
 
TreInnova - 02 February 2013 11:38 PM


Hi,
witch is the structure of your module? Have you got the right controller?
regards
FIlippo

I don’t have a new controller.  I tried this method.  http://stackoverflow.com/questions/5327037/multiple-contact-forms-on-magento

 
Magento Community Magento Community
Magento Community
Magento Community
 
kiatng
Enthusiast
 
Total Posts:  875
Joined:  2008-09-03
Kuala Lumpur, Malaysia
 

The way you declare the layout means that there is an IndexController and within it an indexAction

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top