Jump to content

Import contact-form.php into cms created page


Recommended Posts

Hi!

How do I import the contact us page (the contact-form) to another page, one I created on the CMS? When I paste the php-code from contact-form.php into my CMS-created blank page, the code shows up as plain text...

Please help!!

Link to comment
Share on other sites

I mean that I have a link called CUSTOMER SERVICE placed in the information box of my site, this is the CMS-created page. So far, so good. How do I do in order to link the CMS-page (CUSTOMER SERVICE) to the CONTACT US (contact-form.php) page?

Link to comment
Share on other sites

If I understant correctly, you want to add links to the blockinfo box that are not CMS created and therefore not configurable through the backoffice.

This is very easy to do and just requires you to edit the file modules/blockinfos/blockinfos.tpl. As below

>    </pre>
<ul>
       {foreach from=$cmslinks item=cmslink}
{$cmslink.meta_title|escape:htmlall:'UTF-8'}
       {/foreach}
</ul>



Change it look like this

>    
</pre>
<ul>
insert here to list above the cms pages
       {foreach from=$cmslinks item=cmslink}
{$cmslink.meta_title|escape:htmlall:'UTF-8'}
       {/foreach}
or insert here to list belowthe cms pages



Its important not to add the new links between the foreach commands otherwise it will mess up.

Link to comment
Share on other sites

  • 1 year later...

Mildly necromantic but... what happened to this in the end?

 

I wish to do the same thing - have the contact form came up within a CMS created page. Initially I was thinking something along the lines of just inserting "require_once('contact-form.php');" in the CMS html editor, but that's clearly not working. An iframe doesn't work either, not that I'd use it even if it did.

 

So, any ideas?

Link to comment
Share on other sites

  • 1 year later...

Hi there !

 

Even if the topic seems a bit old, I'm gonna reply to show it up.

 

 

  On 2/2/2012 at 4:30 PM, Bors said:

 

I wish to do the same thing - have the contact form came up within a CMS created page.

 

I need to do the same thing, so anyone has any idea on hot to complete this task ?

Link to comment
Share on other sites

  • 2 weeks later...

Same here, bors & billyjoe.

I have to create a CMS page for our contact info so mobile users can get to the contact-us form quickly (they can't otherwise, because of what my crazy custom theme does to navigation menus). All I need to do is insert that contact form into a CMS page (not a link to the form, I mean the entire actual form). I've got the page ready, all I need now is to figure out how to insert the form.

Edited by artofadornment (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
×
×
  • Create New...