We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How to customize form? - Contact Us | Forum

Valley Choirs
Valley Choirs Feb 1 '14
Hello - This may be a really simple request (I hope). I don't need to change the contact form itself, but want to add a custom message above the form. How would I go about doing that? I have good PHP knowledge. Thank you!
Oxwall Software
Oxwall Software Feb 12 '14
Valley,

Two important notes:

1. All custom modificaitons done in source code will be erased if you update the plugin. Always keep track of what and where you are changing.

2. Enable DEV mode in ow_includes/config.php before doing any changes. This clears cache on the server so that you can see your changes right away. Don't forget to disable ( set to false) DEV mode once you are done making/checking your changes.

File to edit:
ow_plugins/contactus/views/controllers/contact_index.html

Code to edit:
...

{form name='contact_form'}
Here comes custom text before the whole form
<table class="ow_table_1 ow_form ow_automargin" style="width: 500px;">
    <tr class="ow_alt1 ow_tr_first">
        <td class="ow_label">{label name='to'}</td>
        <td class="ow_value">{input name='to'}{error name='to'}</td>
    </tr>


...

Result:


The Forum post is edited by Oxwall Software Feb 12 '14
You do not have permission to reply this topic