Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-07-20 10:46:09

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

output form "job" doesn't show up in an individual article page

hi!

output form “job” (zem_contact_reborn) doesn’t show up in an individual article page (it does in an article list page). is something wrong with my code below?

<txp:if_individual_article>
<div class="article">
<h1><txp:title /></h1>
<txp:body />
<txp:if_article_image><txp:images auto_detect="article" form="article_album" wraptag="ul" break="li" class="article-album" /></txp:if_article_image>
<txp:output_form form="job" />
</div>
<txp:else />

<h2><txp:permlink><txp:title /></txp:permlink></h2>
<txp:body />
<txp:if_article_image><txp:images auto_detect="article" form="article_album" wraptag="ul" break="li" class="article-album" /></txp:if_article_image>
<txp:output_form form="job" />
</txp:if_individual_article>

Offline

#2 2016-07-20 14:57:07

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: output form "job" doesn't show up in an individual article page

Gallex wrote #300339:

hi!

output form “job” (zem_contact_reborn) doesn’t show up in an individual article page (it does in an article list page). is something wrong with my code below?

<txp:if_individual_article>...

I guess you have enabled the use of plugins in the preferences. Also… I think you may need an article tag in there… Find below.

Also can you post what you have in “job”? – deleting the email address of course:)

<txp:if_individual_article>
<div class="article">
<txp:article>
<h1><txp:title /></h1>
<txp:body />
<txp:if_article_image><txp:images auto_detect="article" form="article_album" wraptag="ul" break="li" class="article-album" /></txp:if_article_image>
</txp:article>
<txp:output_form form="job" />
</div>

<txp:else />

<txp:article>
<h2><txp:permlink><txp:title /></txp:permlink></h2>
<txp:body />
<txp:if_article_image><txp:images auto_detect="article" form="article_album" wraptag="ul" break="li" class="article-album" /></txp:if_article_image>
</txp:article>
<txp:output_form form="job" />
</txp:if_individual_article>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2016-07-21 08:27:13

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

Re: output form "job" doesn't show up in an individual article page

colak wrote #300340:

I guess you have enabled the use of plugins in the preferences.

of course

Also… I think you may need an article tag in there… Find below.

now it does output nothing – no title, no body text, no form. nowhere.

i use article tag on a page: <txp:article limit="100" /> – so, this should be no issue.

before posting the discussed article, i choose under advanced option>override form the discussed article form for it. the discussed article shows up correctly (title, body text, form) in article list page, but in individual article page only title and body text showing up – no form at the end.

Also can you post what you have in “job”? – deleting the email address of course:)

<txp:zem_contact to="..." label="0" subject="Job" thanks="Thank You!">
<txp:zem_contact_text label="Name" break="" />
<txp:zem_contact_email label="E-mail" break="" />
<txp:zem_contact_textarea cols="25" label="Message" break="" />
<txp:zem_contact_submit label="Send" />
</txp:zem_contact>

Offline

#4 2016-07-21 09:31:31

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: output form "job" doesn't show up in an individual article page

Hmmm! Is there a page we can see? Also could you put it in debug mode?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2016-07-21 10:00:09

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

Re: output form "job" doesn't show up in an individual article page

colak wrote #300348:

Hmmm! Is there a page we can see? Also could you put it in debug mode?

now it showed up , but only in individual article page. ;)

Offline

#6 2016-07-21 13:25:29

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: output form "job" doesn't show up in an individual article page

Hi Gallex it also shows on http://wermo.eu/various/

Could you direct us to an article_list page where it is supposed to be appearing?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2016-07-21 13:30:58

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

Re: output form "job" doesn't show up in an individual article page

colak wrote #300355:

Hi Gallex it also shows on http://wermo.eu/various/
Could you direct us to an article_list page where it is supposed to be appearing?

this /various is the article list page. what this error trying to say?

Offline

#8 2016-07-21 16:14:18

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: output form "job" doesn't show up in an individual article page

It’s saying Notice: Undefined variable: lang while parsing form job on page default for the zcr. I guess that you may have a variable to detect the language somewhere in the code but the page can not find it.

Is there a variable in your code?
Can anybody who knows the in-outs of zcr spot what might be going wrong?
Is the form working when in live mode?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#9 2016-07-22 02:22:10

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,079
Website

Re: output form "job" doesn't show up in an individual article page

A kinda stab in the dark: lang is a possible attribute for txp:zem_contact. It is used to specify the language of the form (for error message purposes (when it is different than the language used for the admin back-end). It is not required though, affect. What happens when you add lang="en-gb" to txp:zem_contact ? (check the help file for ZCR 5 )
Not that it is a notice not an error, so it should not cause any problem in live mode.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#10 2016-07-22 07:14:49

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: output form "job" doesn't show up in an individual article page

About the notice; there were 12 commits to master since the last release of zem_contact_reborn 4.5.0.0; here is the commit that should fix it. On my side I overrided the plugin code by pasting the last source.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#11 2016-07-22 07:49:25

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

Re: output form "job" doesn't show up in an individual article page

phiw13 wrote #300362:

What happens when you add lang="en-gb" to txp:zem_contact ? (check the help file for ZCR 5 )
Not that it is a notice not an error, so it should not cause any problem in live mode.

the notice disappeared. ;) thank’s guys!

ps. it worked in live mode with that “error”

Offline

Board footer

Powered by FluxBB