Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-27 22:21:57

jbrew
Member
From: Imperial Beach, California
Registered: 2004-03-04
Posts: 78
Website

Articles wont display when viewed at permalink

I am at a loss. I have used TXP for quite a while and suddenly something so easy has me pulling my hair out. And, yes, I have read thru the forum and the FAQ and nothing I try is working.

Here is the scenario:

I have a section – journal – and in this section’s main page I wanted the latest 3 or 4 article’s titles and their excerpts. (which I have working a couple ways) but when you click on the link to the permanent article nothing is displayed.

The articles are published under section=“journal” and category=“news” and journal is not set to “on front page.”

Please help if you can………….


To even the least of these…

Offline

#2 2006-04-27 22:31:35

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: Articles wont display when viewed at permalink

Have you put your site mode into production to look at a tag trace yet? I find that very helpful in debugging. Also helpful is:

<code><title>
<txp:page_title separator=” &raquo; “ />
(section:
<txp:if_section name=”“>
default
<txp:else />
<txp:section title=“1” />
</txp:if_section>
, type:
<txp:if_individual_article>
individual article
</txp:if_individual_article>
<txp:if_article_list>
<txp:if_search>
search
<txp:else />
<txp:if_category>
category list
<txp:else />
article list
</txp:if_category>
</txp:if_search>
</txp:if_article_list>
)
</title></code>

In your head section. That I picked up in the snippet section of the forum. That will give you some specs on your output.

Offline

#3 2006-04-27 22:41:36

jbrew
Member
From: Imperial Beach, California
Registered: 2004-03-04
Posts: 78
Website

Re: Articles wont display when viewed at permalink

Yes, did the tag trace and nothing seems out of the ordinary…

However, if I use article_custom then it displays on the main page and if you click an article’s permlink then the page looks exactly the same.

Ugg.

Last edited by jbrew (2006-04-27 22:51:08)


To even the least of these…

Offline

#4 2006-04-27 22:54:25

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: Articles wont display when viewed at permalink

What tags are in your page? VS. What is in your article form?

Offline

#5 2006-04-27 22:58:39

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Articles wont display when viewed at permalink

Check this FAQ too: diagnosing template problems


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#6 2006-04-27 23:06:29

jbrew
Member
From: Imperial Beach, California
Registered: 2004-03-04
Posts: 78
Website

Re: Articles wont display when viewed at permalink

My page is used on all sections just broken up by if_section.

< txp:output_form form=“head”/>

< body class=”<txp:s/>”>
< div id=“container”>
< txp:output_form form=“header”/>
< txp:output_form form=“branding”/>

< txp:mdn_if_section section=“charcoal”>
< txp:output_form form=“recentWords”/>
< txp:output_form form=“feature”/>
< txp:output_form form=“etc”/>
< /txp:mdn_if_section>

< txp:mdn_if_section section=“journal”>
< txp:output_form form=“journal”/>
< txp:output_form form=“etc”/>
< /txp:mdn_if_section>

< txp:mdn_if_section section=“work”>
< txp:output_form form=“work”/>
< txp:output_form form=“etc”/>
< /txp:mdn_if_section>

< txp:mdn_if_section section=“contact”>
< txp:output_form form=“contact”/>
< txp:output_form form=“etc”/>
< /txp:mdn_if_section>

< /div><!— #contentframe —>
< txp:output_form form=“footer”/>

And I had 2 different ways of calling the article in the “journal” form:
1. < txp:article form=“journalEntryExcerpt” limit=“4” sortby=“Posted” sortdir=“desc” /> < txp:if_individual_article> < txp:article limit=“1” /> < p> < txp:link_to_prev><txp:prev_title /></txp:link_to_prev> < txp:link_to_next><txp:next_title /></txp:link_to_next> < /p> < /txp:if_individual_article>
and
2. < txp:article limit=“4” /> < txp:if_individual_article> < txp:article limit=“1” /> < p> < txp:link_to_prev><txp:prev_title /></txp:link_to_prev> < txp:link_to_next><txp:next_title /></txp:link_to_next> < /p> < /txp:if_individual_article>

Hope you can spot what I am not seeing…


To even the least of these…

Offline

#7 2006-04-27 23:37:13

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Articles wont display when viewed at permalink

hi jbrew

1. are you using the mdn_if_section plug-in for any particular reason? It was a great plug-in, but now it’s a built-in tag in TXP: <txp:if_section name="sectioname"></txp:if_section>.

2. I wont call txp:article from a form using txp:output but putting it directly in the page template. You will save some calls to the database.

3. finally, try something like:
<code><txp:article form=“journalEntryExcerpt” limit=“4” sortby=“Posted” sortdir=“desc” />
<txp:if_individual_article>
<p>
<txp:link_to_prev>
<txp:link_to_next>
</p>
</txp:if_individual_article>
</code>

You dont need to put <txp:article limit="1" /> between if-individual-article tags, because when you are in individual article, txp:article only outputs the individual article.

Last edited by maniqui (2006-04-27 23:37:43)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#8 2006-04-27 23:46:49

jbrew
Member
From: Imperial Beach, California
Registered: 2004-03-04
Posts: 78
Website

Re: Articles wont display when viewed at permalink

Thanks for the quick reply. I went ahead and changed over to txp:if_section and moved the “journal” form content into the actual if_section name=“journal” module and everything works except the display of the individual article.

I do not have any idea where else to look. The page validates, no open tags, etc.

FYI – I put the < txp:article limit-1 /> in just to see if it would help….


To even the least of these…

Offline

#9 2006-04-27 23:55:43

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Articles wont display when viewed at permalink

What tags are in your “journalEntryExcerpt” form? and what tags are in your “default” form?

BTW: in your new design, you have a little typo error in the logo.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#10 2006-04-28 00:09:18

jbrew
Member
From: Imperial Beach, California
Registered: 2004-03-04
Posts: 78
Website

Re: Articles wont display when viewed at permalink

journalEntryExcerpt looks like this:

< h3 class=“articleTitle”>< txp:permlink>< txp:title />< /txp:permlink>< span>< txp:posted/>< /span> </h3> < txp:kgr_safe_excerpt count=“40” linktext=“Read More…” />

and the default form looks like this:

< h4 class=“articleTitle”>< a href=”< txp:permlink />” title=”< txp:title />”>< txp:title/>< /a> < span>< txp:posted /></span>< /h4>
< txp:body />
< p class=“comments_link”><txp:comments_invite />< /p>
< hr class=“articleBorder”/>

Can someone please help!!!!!

Last edited by jbrew (2006-04-28 01:33:58)


To even the least of these…

Offline

#11 2006-04-29 03:16:10

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Articles wont display when viewed at permalink

The FAQ offers a number of suggestions. Try them. Simplify your code, isolate the problem, test the default template, etc.


Alex

Offline

#12 2006-04-29 17:10:40

jbrew
Member
From: Imperial Beach, California
Registered: 2004-03-04
Posts: 78
Website

Re: Articles wont display when viewed at permalink

Thanks Zem. I have read thru all the FAQ stuff and simplified the code, limiting the output_form calls, etc. and right now there is no reason that I can see why an individual article wont display on the in the section to which it is assigned, especially when you can get it to show up on the front page of the section.

If you can think of a track to explore for this I would be really appreciative. This whole thing could screw up my May 1st Reboot and I don’t have time to start from scratch.

Thanks.


To even the least of these…

Offline

Board footer

Powered by FluxBB