Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2009-05-19 20:40:14
- lous
- Member
- From: Germany
- Registered: 2009-01-04
- Posts: 57
Sticky article in single view
Hey :)
I got on the top of my site one sticky article, but when i click on the title to show up the full article(single view) then i just see 2 times that the comment is closed and i just see the image.
Does anyone know the problem?
Offline
#2 2009-05-19 20:45:33
- lous
- Member
- From: Germany
- Registered: 2009-01-04
- Posts: 57
Re: Sticky article in single view
<txp:if_individual_article>
<txp:article />
</txp:if_individual_article>
<txp:if_article_list>
<txp:dzd_counter_view force=“1” />
<div class=“content_head”>
<h1><txp:category /></h1>
</div>
<div class=“content_main”>
<table class=“dllist” width=“657” align=“center”>
<tr class=“title”>
<td>Titel</td>
<td>Kategorie</td>
</tr>
<txp:article form=“article_list” limit=“10” />
</table>
</div>
<div class=“content_foot”></div>
</txp:if_article_list>
</div>
Sorry i dont know how to put a code tag on it. @ wont work
Offline
#3 2009-05-19 20:53:54
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Sticky article in single view
You can solve that by using two article tags (since it’s an individual article page, only one of both will be used):
<txp:if_individual_article>
<txp:article />
<txp:article status="sticky" />
</txp:if_individual_article>
Sorry i dont know how to put a code tag on it. @ wont work
Offline
#4 2009-05-19 21:10:58
- lous
- Member
- From: Germany
- Registered: 2009-01-04
- Posts: 57
Re: Sticky article in single view
Hmm i tried it, but now i got 3 times the comment function in the single view :D
Offline
#5 2009-05-19 21:16:03
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Sticky article in single view
Then there’s something wrong with your comment tags, I guess. What is in your article form?
Offline
#6 2009-05-19 21:18:07
- lous
- Member
- From: Germany
- Registered: 2009-01-04
- Posts: 57
Re: Sticky article in single view
Thats the code of the mainpage
<txp:article form="new_article" limit="1" pgonly="0" searchall="1" status="5" time="any" />
And thats the code of the form “new_article”
<div id="new_article">
<div class="new_article_img"><txp:permlink><txp:article_image style="border:0; width:80px" /></txp:permlink></div>
<div class="new_article_title">
<h1><txp:permlink><txp:title /></txp:permlink></h1>
</div>
<div class="new_article_describe"><txp:excerpt /></div>
</div>
Offline
#7 2009-05-19 21:24:50
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Sticky article in single view
lous wrote:
And thats the code of the form “new_article”
Is that the form for your individual article? Can you post a tag trace of a page that shows the comments 3 times?
Offline
#8 2009-05-19 21:29:44
- lous
- Member
- From: Germany
- Registered: 2009-01-04
- Posts: 57
Re: Sticky article in single view
<!-- txp tag trace:
[SQL (0,011167049408): select name, data from txp_lang where lang='de-de' AND ( event='public' OR event='common')]
[SQL (0,000669002532959): select name, code, version from txp_plugin where status = 1 AND type IN (0,1) order by load_order]
[SQL (0,000457048416138): select ID,Section from textpattern where url_title like 'illuminatitelesyncgermanxvid-pleaders' AND Section='filme' and Status >= 4 limit 1]
[SQL (0,000180959701538): select page, css from txp_section where name = 'filme' limit 1]
[SQL (0,000305891036987): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where ID=2 and Status in (4,5)]
[Artikel 2]
[SQL (0,000316858291626): select ID, Title, url_title, unix_timestamp(Posted) as uposted
from textpattern where Posted > '2009-05-17 20:31:37' and Section = 'filme' and Status=4 and Posted < now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') order by Posted asc limit 1]
[SQL (0,000247955322266): select ID, Title, url_title, unix_timestamp(Posted) as uposted
from textpattern where Posted < '2009-05-17 20:31:37' and Section = 'filme' and Status=4 and Posted < now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') order by Posted desc limit 1]
[SQL (0,000181913375854): select user_html from txp_page where name='default']
[Seite: default]
<txp:output_form form="head" />
[SQL (0,000159978866577): select Form from txp_form where name='head']
[Baustein: head]
<txp:page_title />
<txp:site_slogan />
<txp:output_form form="titlebar" />
[SQL (0,000158786773682): select Form from txp_form where name='titlebar']
[Baustein: titlebar]
<txp:output_form form="header" />
[SQL (0,000180959701538): select Form from txp_form where name='header']
[Baustein: header]
<txp:site_url />
<txp:output_form form="navi" />
[SQL (0,000161170959473): select Form from txp_form where name='navi']
[Baustein: navi]
<txp:link_to_home>
</txp:link_to_home>
<txp:section link="1" name="Kontakt" url="1" wraptag="li" />
<txp:section link="1" name="Partner" url="1" wraptag="li" />
<txp:section link="1" name="RSS" url="1" wraptag="li" />
<txp:article form="new_download" limit="1" pgonly="0" searchall="1" status="5" time="any" />
[SQL (0,000160932540894): select Form from txp_form where name='new_download']
[Baustein: new_download]
<txp:permlink>
<txp:article_image style="border:0; width:80px" />
</txp:permlink>
<txp:permlink>
<txp:title />
</txp:permlink>
<txp:excerpt />
[SQL (0,000158071517944): select Form from txp_form where name='comments_display']
[Baustein: comments_display]
<txp:text item="comment" />
<txp:comments_invite textonly="1" showalways="1" showcount="0" />
<txp:comments />
<txp:if_comments_preview>
[<txp:if_comments_preview>: false]
</txp:if_comments_preview>
<txp:if_comments_allowed>
[<txp:if_comments_allowed>: false]
<txp:text item="comments_closed" />
</txp:if_comments_allowed>
<txp:article form="top5" limit="5" pgonly="0" searchall="1" sort="Posted desc" status="5" time="any" />
[SQL (0,000148057937622): select Form from txp_form where name='top5']
[Baustein: top5]
<txp:permlink>
<txp:article_image style="border:0; width:91px" />
</txp:permlink>
[Baustein: comments_display]
<txp:text item="comment" />
<txp:comments_invite textonly="1" showalways="1" showcount="0" />
<txp:comments />
<txp:if_comments_preview>
[<txp:if_comments_preview>: false]
</txp:if_comments_preview>
<txp:if_comments_allowed>
[<txp:if_comments_allowed>: false]
<txp:text item="comments_closed" />
</txp:if_comments_allowed>
<txp:if_section name="kontakt">
[<txp:if_section name="kontakt">: false]
</txp:if_section>
<txp:if_individual_article>
[<txp:if_individual_article>: true]
<txp:article />
<txp:article status="sticky" />
[SQL (0,000181913375854): select Form from txp_form where name='default']
[Baustein: default]
<txp:if_individual_article>
[<txp:if_individual_article>: true]
<txp:title />
</txp:if_individual_article>
<txp:php>
</txp:php>
<txp:article_image style="border:0; width:120px" />
<txp:body />
<txp:comments_invite wraptag="p" />
[Baustein: comments_display]
<txp:text item="comment" />
<txp:comments_invite textonly="1" showalways="1" showcount="0" />
<txp:comments />
<txp:if_comments_preview>
[<txp:if_comments_preview>: false]
</txp:if_comments_preview>
<txp:if_comments_allowed>
[<txp:if_comments_allowed>: false]
<txp:text item="comments_closed" />
</txp:if_comments_allowed>
</txp:if_individual_article>
<txp:if_article_list>
[<txp:if_article_list>: false]
</txp:if_article_list>
<txp:output_form form="vote_new" />
[SQL (0,0001540184021): select Form from txp_form where name='vote_new']
[Baustein: vote_new]
<txp:output_form form="cats" />
[SQL (0,000167846679688): select Form from txp_form where name='cats']
[Baustein: cats]
<txp:adi_cat_menu categories="filme" active_class="active-cat" />
[SQL (0,000249147415161): select name, title from txp_category where type = 'article' and name in ('filme') order by field(name, 'filme')]
<txp:article_custom category="Filme" form="adi_cat_menu_articles" />
[SQL (0,000392913818359): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and (Category1 IN ('Filme') or Category2 IN ('Filme')) order by Posted desc limit 0, 10]
[Artikel 4]
[SQL (0,000141143798828): select Form from txp_form where name='adi_cat_menu_articles']
<txp:article_custom category="Filme" form="adi_cat_menu_articles" /> -> Textpattern Notice: Baustein nicht gefunden: adi_cat_menu_articles on line 1517
<txp:adi_cat_menu parent="filme" class="subcats" active_class="active-cat" />
[SQL (0,00019383430481): select lft, rgt from txp_category where name = 'filme']
[SQL (0,00023889541626): select name, title from txp_category where (lft between 2 and 9) and type = 'article' and name != 'default' and name not in('filme') order by lft ASC]
<txp:article_custom category="DVD" form="adi_cat_menu_articles" />
[SQL (0,000354051589966): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and (Category1 IN ('DVD') or Category2 IN ('DVD')) order by Posted desc limit 0, 10]
<txp:article_custom category="HD" form="adi_cat_menu_articles" />
[SQL (0,000362873077393): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and (Category1 IN ('HD') or Category2 IN ('HD')) order by Posted desc limit 0, 10]
<txp:article_custom category="XviD" form="adi_cat_menu_articles" />
[SQL (0,000355005264282): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and (Category1 IN ('XviD') or Category2 IN ('XviD')) order by Posted desc limit 0, 10]
[Artikel 4]
[SQL (0,000136852264404): select Form from txp_form where name='adi_cat_menu_articles']
<txp:article_custom category="XviD" form="adi_cat_menu_articles" /> -> Textpattern Notice: Baustein nicht gefunden: adi_cat_menu_articles on line 1517
<txp:adi_cat_menu categories="spiele" active_class="active-cat" />
[SQL (0,000334978103638): select name, title from txp_category where type = 'article' and name in ('spiele') order by field(name, 'spiele')]
<txp:article_custom category="Spiele" form="adi_cat_menu_articles" />
[SQL (0,000385999679565): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and (Category1 IN ('Spiele') or Category2 IN ('Spiele')) order by Posted desc limit 0, 10]
<txp:adi_cat_menu parent="spiele" class="subcats" active_class="active-cat" />
[SQL (0,000161170959473): select lft, rgt from txp_category where name = 'spiele']
[SQL (0,000212907791138): select name, title from txp_category where (lft between 28 and 37) and type = 'article' and name != 'default' and name not in('spiele') order by lft ASC]
<txp:article_custom category="Adventure-Action" form="adi_cat_menu_articles" />
[SQL (0,000310897827148): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and (Category1 IN ('Adventure-Action') or Category2 IN ('Adventure-Action')) order by Posted desc limit 0, 10]
<txp:article_custom category="Rennspiele" form="adi_cat_menu_articles" />
[SQL (0,000309944152832): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and (Category1 IN ('Rennspiele') or Category2 IN ('Rennspiele')) order by Posted desc limit 0, 10]
<txp:article_custom category="Rollenspiele" form="adi_cat_menu_articles" />
[SQL (0,000301122665405): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and (Category1 IN ('Rollenspiele') or Category2 IN ('Rollenspiele')) order by Posted desc limit 0, 10]
<txp:article_custom category="Sport" form="adi_cat_menu_articles" />
[SQL (0,00029993057251): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and (Category1 IN ('Sport') or Category2 IN ('Sport')) order by Posted desc limit 0, 10]
<txp:adi_cat_menu categories="programme" active_class="active-cat" />
[SQL (0,000288009643555): select name, title from txp_category where type = 'article' and name in ('programme') order by field(name, 'programme')]
<txp:article_custom category="Programme" form="adi_cat_menu_articles" />
[SQL (0,000391960144043): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and (Category1 IN ('Programme') or Category2 IN ('Programme')) order by Posted desc limit 0, 10]
<txp:adi_cat_menu parent="programme" class="subcats" active_class="active-cat" />
[SQL (0,000170946121216): select lft, rgt from txp_category where name = 'programme']
[SQL (0,000209093093872): select name, title from txp_category where (lft between 14 and 19) and type = 'article' and name != 'default' and name not in('programme') order by lft ASC]
<txp:article_custom category="mac-osx" form="adi_cat_menu_articles" />
[SQL (0,00030517578125): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and (Category1 IN ('mac-osx') or Category2 IN ('mac-osx')) order by Posted desc limit 0, 10]
<txp:article_custom category="windows" form="adi_cat_menu_articles" />
[SQL (0,000301122665405): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and (Category1 IN ('windows') or Category2 IN ('windows')) order by Posted desc limit 0, 10]
<txp:adi_cat_menu categories="xxx" active_class="active-cat" />
[SQL (0,000185966491699): select name, title from txp_category where type = 'article' and name in ('xxx') order by field(name, 'xxx')]
<txp:article_custom category="XXX" form="adi_cat_menu_articles" />
[SQL (0,000309944152832): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and (Category1 IN ('XXX') or Category2 IN ('XXX')) order by Posted desc limit 0, 10]
<txp:adi_cat_menu parent="xxx" class="subcats" active_class="active-cat" />
[SQL (0,000149965286255): select lft, rgt from txp_category where name = 'xxx']
[SQL (0,000202894210815): select name, title from txp_category where (lft between 38 and 45) and type = 'article' and name != 'default' and name not in('xxx') order by lft ASC]
<txp:article_custom category="bilder" form="adi_cat_menu_articles" />
[SQL (0,000308990478516): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and (Category1 IN ('bilder') or Category2 IN ('bilder')) order by Posted desc limit 0, 10]
<txp:article_custom category="clips" form="adi_cat_menu_articles" />
[SQL (0,00029993057251): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and (Category1 IN ('clips') or Category2 IN ('clips')) order by Posted desc limit 0, 10]
<txp:article_custom category="xxx-filme" form="adi_cat_menu_articles" />
[SQL (0,00029993057251): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and (Category1 IN ('xxx-filme') or Category2 IN ('xxx-filme')) order by Posted desc limit 0, 10]
<txp:output_form form="footer" />
[SQL (0,000139951705933): select Form from txp_form where name='footer']
[Baustein: footer]
[ ~~~ secondpass ~~~ ]
-->
The form is called new_download, not new_article
Offline
#9 2009-05-19 21:53:34
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Sticky article in single view
You have two more article tags (outside the if_individual_article tags). I’m not sure what you want them to do but you could try and change the first two article tags (form ‘new_download’ and form ‘top5’) to article_custom tags and add a section and/or category attribute to show the right articles. And part of the problem may lie in your preferences setting ‘Automatically append comments to articles’, try setting that to ‘no’.
Offline
#10 2009-05-20 16:52:24
- lous
- Member
- From: Germany
- Registered: 2009-01-04
- Posts: 57
Re: Sticky article in single view
Els is there a way to contact you in IM ?
Offline
Pages: 1