Contact3 not in static post

Cryss1
Jr. Bludit
Posts: 5
Joined: Sat Feb 05, 2022 10:03 am

Hello!


I've tried for several hours yesterday to make my contact3 form to show up in a static post when accessing the main site (page is said to not work, is there a workaround for this?), but it doesn't work.

If I go to my main site it shows the first post, but without the form. I have to click the title of that post that is shown in the menu.

Can somebody point me into the right direction? Thank you.

What I want to achieve is to use Bludit as a single page contact sheet.


Cryss
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Can you please give the address of the website?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Cryss1
Jr. Bludit
Posts: 5
Joined: Sat Feb 05, 2022 10:03 am

User avatar
novafacile
Master Bludit
Posts: 110
Joined: Sat Oct 06, 2018 4:47 pm
Has thanked: 35 times
Been thanked: 10 times
Contact:

Currently Contact3 can only added to static pages. (I think I should change this...).

In Bludit settings, you can set the page with contact form as homepage.

Settings -> Advanced -> Homepage
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

I tried it, and it does not work. I think because the homepage has no slug.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Cryss1
Jr. Bludit
Posts: 5
Joined: Sat Feb 05, 2022 10:03 am

In Bludit settings, you can set the page with contact form as homepage.

Settings -> Advanced -> Homepage
This doesn't work. It is already set to the (static) contact page.

Is there any workaround like putting line yx into file xy and I'm good?
User avatar
novafacile
Master Bludit
Posts: 110
Joined: Sat Oct 06, 2018 4:47 pm
Has thanked: 35 times
Been thanked: 10 times
Contact:

Edi wrote: Sat Feb 05, 2022 7:42 pm I tried it, and it does not work. I think because the homepage has no slug.
Oh yes, that's the problem... let me think about to find a solution.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

As a temporary fix till the script of the plugin is fixed you can use in the file plugin.php in the directory /bl-plugins/contact3 the following (line 497):

Code: Select all

// Load contact form
public function pageEnd(){
   if(!$this->webhook($this->webhookUrl()) && $WHERE_AM_I=='home'){
      return;
   }
instead of

Code: Select all

// Load contact form
public function pageEnd(){
   if(!$this->webhook($this->webhookUrl())){
      return;
   }
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Cryss1
Jr. Bludit
Posts: 5
Joined: Sat Feb 05, 2022 10:03 am

Thank you so much for the help! It works.
User avatar
novafacile
Master Bludit
Posts: 110
Joined: Sat Oct 06, 2018 4:47 pm
Has thanked: 35 times
Been thanked: 10 times
Contact:

Edi wrote: Sat Feb 05, 2022 8:31 pm As a temporary fix till the script of the plugin is fixed you can use in the file plugin.php in the directory /bl-plugins/contact3 the following (line 497):

Code: Select all

// Load contact form
public function pageEnd(){
   if(!$this->webhook($this->webhookUrl()) && $WHERE_AM_I=='home'){
      return;
   }
instead of

Code: Select all

// Load contact form
public function pageEnd(){
   if(!$this->webhook($this->webhookUrl())){
      return;
   }
Thanks! I will add this possibility to the plugin config.
Post Reply