Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2018-05-24 07:42:15

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

<txp:output_form form="..." />

somewhy this code not working anymore after upgrade to 4.7.0. it doesn’t output form ‘kuulutused’ (outputs default form). “no connection” between page code and form code. any ideas?

page:

<txp:if_section name="majad,talud,maad,korterid,aripinnad,uur">
<txp:output_form form="kuulutused" />
<txp:else />
....

form ‘kuulutused’:

<txp:if_individual_article>
<section class="content-1">
<div class="container">
<txp:article>
<div class="title">
<h6><txp:title /></h6>
</div>
<div class="tulbad-2 order">
<div class="one">
<txp:if_custom_field name="uus-hind">
<div class="uus-hind position"><txp:custom_field name="uus-hind" /></div>
</txp:if_custom_field>
<txp:if_custom_field name="hind">
<div class="hind position"><txp:custom_field name="hind" /></div>
</txp:if_custom_field>
<txp:if_article_image><txp:images auto_detect="article" form="article_album" wraptag="ul" break="li" class="article-album" /></txp:if_article_image></div>
<div class="two">
<txp:body />
<txp:article_custom id="7" form="special" />
</div>
</div>
</txp:article>
</div>
</section>
<txp:else />

<section class="content-2">
<div class="container-2">
<txp:article status="sticky" />
<h4 class="header-top-left"><txp:section title="1" /></h4>
<txp:article limit="12" sort="Posted desc" wraptag="div" break="div" class="tulbad-4 col-content">
<div class="article-img">
<txp:permlink><txp:article_image /></txp:permlink>
<txp:if_custom_field name="uus-hind">
<div class="uus-hind"><txp:custom_field name="uus-hind" /></div>
</txp:if_custom_field>
</div>
<div class="content-box">
<h2><txp:permlink><txp:title /></txp:permlink></h2>
<txp:if_excerpt><txp:excerpt /></txp:if_excerpt>
<p>Kategooria: <txp:section title="1" link="1" /></p>
</div>
<txp:if_custom_field name="hind">
<div class="hind"><txp:custom_field name="hind" /></div>
</txp:if_custom_field>
</txp:article>
<div id="navigation">
<p><txp:newer><i class="fas fa-angle-left nav-link"></i> <txp:text item="Uuemad" /></txp:newer>
<txp:older><txp:text item="Vanemad" /> <i class="fas fa-angle-right nav-link"></i></txp:older></p>
</div>
</div>
</section>
</txp:if_individual_article>

Offline

#2 2018-05-24 08:00:22

etc
Developer
Registered: 2010-11-11
Posts: 5,064
Website GitHub

Re: <txp:output_form form="..." />

It’s a silly bug patched in 4.7.1, I apologize. Meanwhile, you can add form="" to <txp:article /> to fix it.

Offline

#3 2018-05-24 08:13:43

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

Re: <txp:output_form form="..." />

etc wrote #312047:

It’s a silly bug patched in 4.7.1, I apologize. Meanwhile, you can add form="" to <txp:article /> to fix it.

still not working. copied the code below into page directly, but still not working. :( is it something wrong with this part of a code?
the rest of a code works well…

<txp:if_section name="majad,talud,maad,korterid,aripinnad,uur">
<txp:if_individual_article>
<section class="content-1">
<div class="container">
<txp:article>
<div class="title">
<h1><txp:title /></h1>
</div>
<div class="tulbad-2 order">
<div class="one">
<txp:if_custom_field name="uus-hind">
<div class="uus-hind position"><txp:custom_field name="uus-hind" /></div>
</txp:if_custom_field>
<txp:if_custom_field name="hind">
<div class="hind position"><txp:custom_field name="hind" /></div>
</txp:if_custom_field>
<txp:if_article_image><txp:images auto_detect="article" form="article_album" wraptag="ul" break="li" class="article-album" /></txp:if_article_image></div>
<div class="two">
<txp:body />
<txp:article_custom id="7" form="special" />
</div>
</div>
</txp:article>
</div>
</section>
<txp:else />
<section class="content-2">
<div class="container-2">
<txp:article status="sticky" />
<h4 class="header-top-left"><txp:section title="1" /></h4>
<txp:article limit="12" sort="Posted desc" wraptag="div" break="div" class="tulbad-4 col-content">
<div class="article-img">
<txp:permlink><txp:article_image /></txp:permlink>
<txp:if_custom_field name="uus-hind">
<div class="uus-hind"><txp:custom_field name="uus-hind" /></div>
</txp:if_custom_field>
</div>
<div class="content-box">
<h2><txp:permlink><txp:title /></txp:permlink></h2>
<txp:if_excerpt><txp:excerpt /></txp:if_excerpt>
<p>Kategooria: <txp:section title="1" link="1" /></p>
</div>
<txp:if_custom_field name="hind">
<div class="hind"><txp:custom_field name="hind" /></div>
</txp:if_custom_field>
</txp:article>
<div id="navigation">
<p><txp:newer><i class="fas fa-angle-left nav-link"></i> <txp:text item="Uuemad" /></txp:newer>
<txp:older><txp:text item="Vanemad" /> <i class="fas fa-angle-right nav-link"></i></txp:older></p>
</div>
</div>
</section>
</txp:if_individual_article>
<txp:else />
...so on

Last edited by Gallex (2018-05-24 08:17:15)

Offline

#4 2018-05-24 08:18:04

etc
Developer
Registered: 2010-11-11
Posts: 5,064
Website GitHub

Re: <txp:output_form form="..." />

You should replace <txp:article> with <txp:article form="">.

Offline

#5 2018-05-24 08:28:03

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

Re: <txp:output_form form="..." />

Hi Gallex,

Here’s the working code

<txp:if_section name="majad,talud,maad,korterid,aripinnad,uur">
<txp:if_individual_article>
<section class="content-1">
<div class="container">
<txp:article form="">
...

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

Offline

#6 2018-05-24 08:36:43

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

Re: <txp:output_form form="..." />

etc wrote #312052:

You should replace <txp:article> with <txp:article form="">.

aaaaaaa! :) working now! thank you!!!

Offline

Board footer

Powered by FluxBB