What is the code for the nav?

Hi, I’m looking for a link to contact us page but i don’t know what is the codes for the navagation.

Also i want to add one feild that so someone can chose to selece to contact to who like IT/Human Res./Support.

Link to contact page:

<a href="<? echo url('/contact'); ?>">Contact</a>

And the choice of email recipient was brought up a while back and I answered it. Do a quick search.

Hi, the code is here somewhere, im at work at the moment and cant look but its on here somewhere as i done it the other day on my site.

You just need to modify the contact.tpl and the contact.php in the core modules if i remember right.

Its a real easy mod to do just finding the post seems to be the hard bit

Meh I searched it:

Meh

are you trying to do a goat

sorry hope you don’t find it offensive.

i just found it funny

Haha no Never seen it like that, but true.. when said as read it sounds like a goat

I meant it as: http://www.urbandictionary.com/define.php?term=meh

Haha no Never seen it like that, but true.. when said as read it sounds like a goat

I meant it as: http://www.urbandictionary.com/define.php?term=meh

yeah i know what you mean.

but it sounded funny as i am from belgium and mostly need to read all 2 times so nothing gets lost in translation

Give me 5 and i will post the edits and code needed

Give me 5 and i will post the edits and code needed

Meh I searched it:

's all there.

contact_form.tpl

Add this where you want the dropdown,

<td><strong>To whom:</strong></td>
<td><select name="recipient">
<option value="your email" selected="selected">Please select</option>
<option value="your email">Flight Operations</option>
<option value="your email">IT Support</option>
<option value="your email">Human Resources</option>
<option value="your email">Events</option>
<option value="your email">CEO</option>
   </select>
</td>

Edit,

core/modules/contact/contact.php

Find this

Util::SendEmail(ADMIN_EMAIL, $subject, $message);

Replace with this,

Util::SendEmail($this->post->recipient, $subject, $message);

i started so ill finish

1 Like

Remember, whenever you update core/modules/contact/contact.php will be replaced so the code will need changing again.

Renamed file already in the folder for such an occurrence

I was just reminding everyone else who probably don’t