Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2008-09-05 15:13:32

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: list problem

No, because I set my test site to messy also. I’m sure it must be something simple, can you post a tag trace of your page?

Offline

#14 2008-09-05 15:17:00

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: list problem

here’s the tagtrace of that page :

[SQL (0.001056): select name, data from txp_lang where lang=‘en-gb’ AND ( event=‘public’ OR event=‘common’)]
[SQL (0.000363): select name, code, version from txp_plugin where status = 1]
[SQL (0.000263): select * from txp_section where name = ‘default’ limit 1]
[SQL (0.000850): select host from txp_log where ip=‘82.75.40.237’ limit 1]
[SQL (0.000349): insert into txp_log set `time`=now(),page=’/’,ip=‘82.75.40.237’,host=‘82.75.40.237’,refer=’‘,status=‘200’,method=‘GET’]
[SQL (0.000320): select user_html from txp_page where name=‘default’]
[Page: default]
<txp:site_name/>
<txp:css format=“link” n=“tamara” title=“tamara” />
<txp:article_custom section=“article” form=“myform” sort=“Category1 asc, Posted asc” limit=“999” /> [SQL (0.000770): select *, unix_timestamp(Posted) as uPosted from textpattern where 1=1 and Status = 4 and Posted <= now() and Section IN (‘article’) order by Category1 asc, Posted asc limit 0, 999] [article 5] [SQL (0.000232): select Form from txp_form where name=‘myform’] [Form: myform] <txp:if_first_article> [<txp:if_first_article>: true] </txp:if_first_article> <txp:if_different> [<txp:if_different>: true] <txp:category1/> </txp:if_different> <txp:if_different> [<txp:if_different>: true] <txp:site_url/> <txp:section/> <txp:category1/> <txp:posted format=”%Y-%m” /> <txp:posted format=”%B” /> </txp:if_different> <txp:if_last_article> [<txp:if_last_article>: false] </txp:if_last_article> [article 4] [Form: myform] <txp:if_first_article> [<txp:if_first_article>: false] </txp:if_first_article> <txp:if_different> [<txp:if_different>: true] <txp:category1/> </txp:if_different> <txp:if_different> [<txp:if_different>: true] <txp:site_url/> <txp:section/> <txp:category1/> <txp:posted format=”%Y-%m” /> <txp:posted format=”%B” /> </txp:if_different> <txp:if_last_article> [<txp:if_last_article>: true] </txp:if_last_article>
<txp:article/> [SQL (0.000206): select name from txp_section where on_frontpage != ‘1’] [SQL (0.000255): select count(*) from textpattern where 1=1 and Status = 4 and Posted <= now() and Section != ‘about’] [SQL (0.000848): select *, unix_timestamp(Posted) as uPosted from textpattern where 1=1 and Status = 4 and Posted <= now() and Section != ‘about’ order by Posted desc limit 0, 10] [article 5] [SQL (0.000201): select Form from txp_form where name=‘default’] [Form: default] <txp:if_first_article> [<txp:if_first_article>: true] </txp:if_first_article> <txp:if_different> [<txp:if_different>: true] <txp:category1/> </txp:if_different> <txp:if_different> [<txp:if_different>: true] <txp:site_url/> <txp:section/> <txp:category1/> <txp:posted format=”%Y-%m” /> <txp:posted format=”%B” /> </txp:if_different> <txp:if_last_article> [<txp:if_last_article>: false] </txp:if_last_article> [article 4] [Form: default] <txp:if_first_article> [<txp:if_first_article>: false] </txp:if_first_article> <txp:if_different> [<txp:if_different>: true] <txp:category1/> </txp:if_different> <txp:if_different> [<txp:if_different>: true] <txp:site_url/> <txp:section/> <txp:category1/> <txp:posted format=”%Y-%m” /> <txp:posted format=”%B” /> </txp:if_different> <txp:if_last_article> [<txp:if_last_article>: false] </txp:if_last_article> [article 3] [Form: default] <txp:if_first_article> [<txp:if_first_article>: false] </txp:if_first_article> <txp:if_different> [<txp:if_different>: true] <txp:category1/> [<txp:if_different>: false] </txp:if_different> <txp:if_different> [<txp:if_different>: true] <txp:site_url/> <txp:section/> <txp:category1/> <txp:posted format=”%Y-%m” /> <txp:posted format=”%B” /> </txp:if_different> <txp:if_last_article> [<txp:if_last_article>: false] </txp:if_last_article> [article 2] [Form: default] <txp:if_first_article> [<txp:if_first_article>: false] </txp:if_first_article> <txp:if_different> [<txp:if_different>: true] <txp:category1/> [<txp:if_different>: false] </txp:if_different> <txp:if_different> [<txp:if_different>: true] <txp:site_url/> <txp:section/> <txp:category1/> <txp:posted format=”%Y-%m” /> <txp:posted format=”%B” /> </txp:if_different> <txp:if_last_article> [<txp:if_last_article>: true] </txp:if_last_article>
[ ~~~ secondpass ~~~ ] —>

Roelof

Offline

#15 2008-09-05 15:58:15

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: list problem

I’m afraid I don’t see anything strange in the tag trace. Is it possible that you have an article without a category1 filled?

Offline

#16 2008-09-05 16:42:28

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: list problem

oke,

That solved a little bit of my problem.

I see now:

Category1

september 2008

Zwangerschap

September 2008.

Now there are two things which not work right. Category1 doesn’t belong to the menu and Zwangerschap supose to have februari and march and not september.

Roelof

Offline

#17 2008-09-05 17:23:27

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: list problem

We’re getting there. At least we’re making some progress… I now see what is happening: the month that is in the URLs in the menu is always today: 2008-09. I’ll have to think about why this is happening, the same code is adding the right months on my test site, so I don’t understand the difference. keep puzzling…

(I’m going to have some dinner first, but I’ll look at it afterwards.)

Offline

#18 2008-09-05 18:35:02

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: list problem

take you time.

Roelof

Offline

#19 2008-09-05 21:12:39

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: list problem

Roelof, can you check your articles’ dates? I noticed that you are developing in a subdomain, maybe you copied over a couple of articles and forgot to adjust the posted date?

Offline

#20 2008-09-06 07:31:18

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: list problem

Hello Els,

I have 4 articles.

Zwangerschap , posted date 5 febr. 2005, category zwangerschap, category1
echo ?, posted date 1 maart 2005, category zwangerschap, category1
gastenboek, posted date 2 sept. 2008, category zwangerschap, category1
menu, posted date 5 sept. 2008, category category1, category1

Roelof

Offline

#21 2008-09-06 11:44:55

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: list problem

roelof wrote:

  1. Zwangerschap , posted date 5 febr. 2005, category zwangerschap, category1
  2. echo ?, posted date 1 maart 2005, category zwangerschap, category1
  3. gastenboek, posted date 2 sept. 2008, category zwangerschap, category1
  4. menu, posted date 5 sept. 2008, category category1, category1

So if I’m right the menu should look like this:

  • category1
    • september 08 (1 article)
  • zwangerschap
    • february 05 (1 article)
    • march 05 (1 article)
    • september 08 (1 article)

and it looks like only #3 and #4 are being displayed (sep. 2008). So either it’s only displaying articles from the current month, or something is wrong with articles #1 and #2. Are they in the right section (article)? Are they live and not sticky?

Otherwise I have no idea (for now) why the code is working for me and not for you. Anyone else around who can shed some light on this?

Last edited by els (2008-09-06 11:46:31)

Offline

#22 2008-09-06 12:23:33

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: list problem

Hello Els,

When i make the articles in the section article it’s going allright.

The menu must look like this :

  • Zwangerschap
    • febr. 2005
    • march 2005
  • Gastenboek

Roelof

Offline

#23 2008-09-06 15:38:38

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: list problem

this topic can be closed because i think it’s a dead road.

Im now trying to understand the fastfind menu script which work together with jquery.

Roelof

Offline

#24 2008-09-06 18:27:11

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: list problem

If you need articles from other sections in the menu as well, just leave out the section="article" attribute in <txp:article_custom />.

Offline

Board footer

Powered by FluxBB