Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-03-03 13:09:04

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

[SOLVED] div appears twice

I have a form containing

<div class="announce">
<txp:linklist category="active,ongoing" sort="id desc" limit="10" break="li" wraptag="ul">
<txp:variable name="external" value='<txp:link_description />' />
<txp:if_variable name="external" value="ext">
<a href="<txp:link_url />" rel="external"><txp:link_name escape="html" /></a>
<txp:else />
<a href="<txp:link_url />"><txp:link_name escape="html" /></a>
</txp:if_variable>
</txp:linklist>
</div>

which I then call into the pages via the output_form tag. The problem is that the initial div is rendered twice and I have no idea why. Deleting the div from the form and adding it to the page template fixes the issue but I do not think that it is the proper way to go about it. You can view the behaviour in the source of the front page of the neme site.

Is this a txp bug?

> Solved. This idiot was the bug as I was looking at the wrong page template!!!

Last edited by colak (2020-03-03 14:28:04)


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

Offline

Board footer

Powered by FluxBB