hahamobile Posted January 5, 2014 Share Posted January 5, 2014 dear Milos and other experts, is there any way to add a modified Contact Form to our website's top menu bar. in other words, we have now one default Contact Form. and we need another Contact Form (we will call this 2nd form --- Repair Quotation Form). this is what I have done:: 1. I have copied and pasted the entire contents of the contact-form.tpl into a new file called repair-form.tpl. 2. then I have edited the contents of this Repair-form.tpl to reflect the changes. 3. then I have made a new top menu link to that repair-form.tpl. but all this has not worked. any ideas please? thanks guys! Link to comment Share on other sites More sharing options...
vekia Posted January 5, 2014 Share Posted January 5, 2014 hello im interested in last point of your know-how 3. then I have made a new top menu link to that repair-form.tpl. how you added link to repair-form.tpl ? have you created controller for this template file? how it is handled by controllers? can you shed some more light on it please? Link to comment Share on other sites More sharing options...
hahamobile Posted January 5, 2014 Author Share Posted January 5, 2014 dear Milos. I have added the link to the file "repair-form.tpl". but the link does not work. I did not know that we had to create controller for the template file. is there any easier way to achieve what I want, which are the following: 1. we want to add a new tab in the "topmenu bar", called "repair service". (Note: this step is already done. it was easy. ) 2. when clicking on the "repair service" tab, it will go straight to the repair service form. now, my question is how to make the link work? in other words, if the repair form is an XLS file, or a word file. how can we link to this file. how to make it work? thanks for your patience. Link to comment Share on other sites More sharing options...
vekia Posted January 5, 2014 Share Posted January 5, 2014 hello as i said before, without php code it will not work. its necessary to create module with front controller - this is the best way to achieve it. unfortunately without coding skills it will not be easy to achieve. then in top menu module configuration page you have to add link to this controller, not to the .tpl file. 1 Link to comment Share on other sites More sharing options...
hahamobile Posted January 5, 2014 Author Share Posted January 5, 2014 say if we want to modify the Contact form, and use this modified contact form as the repair form. in this case, which PHP file I should modify. so that we can achieve our goal? thank you. Link to comment Share on other sites More sharing options...
hahamobile Posted January 7, 2014 Author Share Posted January 7, 2014 anyone has any good suggestions? / Link to comment Share on other sites More sharing options...
vekia Posted January 7, 2014 Share Posted January 7, 2014 say if we want to modify the Contact form, and use this modified contact form as the repair form. in this case, which PHP file I should modify. so that we can achieve our goal? thank you. if you want to modify default contact form, you have to modify contact.tpl located in your theme directory and also contactController.php located in /controllers/front/ directory Link to comment Share on other sites More sharing options...
hahamobile Posted January 7, 2014 Author Share Posted January 7, 2014 dear milos, thanks for your reply. I looked into the default theme directory. but could not find contact.tpl. there is only blockcontact.tpl. and contact-form.tpl. we are currently using the contact-form.tpl as our main contact form. but we need to modify it, changing a few details in it, and turning it into repair-quotation-form. thanks for your patience with an ignorant like me. Link to comment Share on other sites More sharing options...
hahamobile Posted January 10, 2014 Author Share Posted January 10, 2014 any more good suggetions please? Link to comment Share on other sites More sharing options...
hahamobile Posted January 10, 2014 Author Share Posted January 10, 2014 how can we create an link to that modified repair form, so that when someone clicks on the topmenu "repair" button, that repair form will be opened up? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now