Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2018-06-28 21:08:17

Wanderer
Member
Registered: 2009-02-06
Posts: 23

Re: Got 1 in html when txp:article is empty (TXP 4.7)

<txp:body /> always shows 1

(4.7.1.)

Offline

#14 2018-06-29 10:53:17

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

Re: Got 1 in html when txp:article is empty (TXP 4.7)

Wanderer wrote #312758:

<txp:body /> always shows 1

I guess you’ve put it outside an article context (check in debug mode)? Then yes, it outputs 1 in 4.7, but I don’t remember whether it really needs to, will check.

Offline

#15 2018-06-29 11:13:27

Wanderer
Member
Registered: 2009-02-06
Posts: 23

Re: Got 1 in html when txp:article is empty (TXP 4.7)

<h1><txp:title /></h1>
<txp:body />

… has worked for five years (single page).

Last edited by Wanderer (2018-06-29 11:17:58)

Offline

#16 2018-06-29 11:25:39

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

Re: Got 1 in html when txp:article is empty (TXP 4.7)

Wanderer wrote #312767:

… has worked for five years (single page).

It still works for single article page, but not for article lists, unless you put it inside an article form/tag. Outside an article context these tags are meaningless anyway.

Offline

#17 2018-06-29 11:56:36

Wanderer
Member
Registered: 2009-02-06
Posts: 23

Re: Got 1 in html when txp:article is empty (TXP 4.7)

(Sorry for DeepL translation.)

Thank you for pointing to <txp:article />

Previously: <txp:output_form form="textseite" />

New: <txp:article form="textseite" /> Works!

Thank you.

Offline

#18 2018-06-29 12:19:25

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

Re: Got 1 in html when txp:article is empty (TXP 4.7)

You are welcome, glad it’s solved. I am testing the previous behavior in dev now. We will restore it in the next release if everything is ok, but no rush, only improperly used tags are concerned.

Offline

Board footer

Powered by FluxBB