sytcher Posted June 16, 2014 Share Posted June 16, 2014 Hi there, i'm using processwire 2.4.0 with LanguageSupport (id=150, version=1.0.1) and FormBuilder (version=0.2.2): There are following possibilities to embed a form in html: Optiona A (Embed in Text): form-builder/contactform primary language --> ok secondary language --> not ok (Notice: Trying to get property of non-object in /..../wire/core/Page.php on line 1253) Option B (echo in some-template.php) echo $forms->embed('contactform'); primary language --> ok secondary language --> not ok (Notice: Trying to get property of non-object in /..../wire/core/Page.php on line 1253) Option C (echo in some-template.php) echo $forms->load('contactform')->render(); primary language --> ok (but no styles and no theme) secondary language --> ok (but no styles and no theme) All three possibilities don't work as expected. Does anybody know how to solve this problem? The PageObject seems to be null in secondary language.. object(NullPage)#461 Link to comment Share on other sites More sharing options...
Soma Posted June 16, 2014 Share Posted June 16, 2014 Maybe activate the hidden formbuilder page for all languages. Not that if you use option c you'll have to add styles and scripts manually to your site. 2 Link to comment Share on other sites More sharing options...
sytcher Posted June 16, 2014 Author Share Posted June 16, 2014 Thank you! you saved my day Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now