FORUM IS CLOSED. PLEASE USE QUESTIONS / ANSWERS PAGE INSTEAD
Login  |  Forum  |  Search   

Board index » Development » Help requests




Post new topic Reply to topic  [ 5 posts ] 
 
Author Message
 Post subject: Permanent Newsletter in 2.x
 Post Posted: Fri Jul 13, 2012 7:10 am 
Offline

Joined: Wed May 11, 2011 4:51 pm
Posts: 3
Hello,
I'm having trouble defining the newsletter block in main.php in version 2.x.
I noticed It's now a widget but I would prefer not having to place it manually in every page of the site.
Is there a way to make it part of the template ?


PS. Thank You ImpressPages Team for all your efforts and hard work.


Top 
 Profile  
 
 Post subject: Re: Permanent Newsletter in 2.x
 Post Posted: Fri Jul 13, 2012 7:49 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
Add this to your template file:

<?php

echo $site->generateBlock('ipNewsletter');

?>


Top 
 Profile  
 
 Post subject: Re: Permanent Newsletter in 2.x
 Post Posted: Sat Jul 14, 2012 4:06 am 
Offline

Joined: Wed May 11, 2011 4:51 pm
Posts: 3
maskas wrote:
Add this to your template file:

<?php

echo $site->generateBlock('ipNewsletter');

?>


Thx alot Maskas, unfortunately I get an error:

Fatal error: Call to undefined method Modules\community\newsletter\Zone::generateRegistrationBox() in C:\xampp\htdocs\imp20\ip_cms\modules\community\newsletter\system.php on line 54


Top 
 Profile  
 
 Post subject: Re: Permanent Newsletter in 2.x
 Post Posted: Sat Jul 14, 2012 3:52 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
Congratulations!!! You have found a bug :)

Here is a fix that will be included in ImpressPages 2.4. You can do the same changes on your installation and it will work: https://github.com/impresspages/Impress ... b81d4c580e


Top 
 Profile  
 
 Post subject: Re: Permanent Newsletter in 2.x
 Post Posted: Sat Jul 14, 2012 4:08 pm 
Offline

Joined: Wed May 11, 2011 4:51 pm
Posts: 3
maskas wrote:
Congratulations!!! You have found a bug :)

Here is a fix that will be included in ImpressPages 2.4. You can do the same changes on your installation and it will work: https://github.com/impresspages/Impress ... b81d4c580e


Haha, thanks alot :) it works now.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 5 posts ] 

Board index » Development » Help requests


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: