Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#49 2011-02-01 00:35:06
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
You don’t happen to have a custom field named ‘limit’, do you?
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
Els,
i use all ten custom fields, none of them has the name “limit” though.
Below you’ll find the page code from the default page (it’s yet the only one). There might be (hopefully minor) errors due to the code being valid for 4.0.5. As far as i understand our relevant code resides within <div id="content">
… Correct me if i am wrong….
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="index, follow, noarchive, noimagearchive" />
<meta name="description" content="neumund books some artists from the german label sonig and the german music publisher autopilot." />
<meta name="keywords" content="neumund, booking, berlin, festivals, autopilot, sonig" />
<meta name="revisit-after" content="1 week" />
<title><txp:page_title /></title>
<txp:feed_link flavor="atom" format="link" label="Atom" />
<txp:feed_link flavor="rss" format="link" label="RSS" />
<txp:css format="link" />
<link rel="shortcut icon" href="../images/9.png" />
</head>
<body>
<div id="container">
<!-- head -->
<center><div id="head">
<h1><txp:link_to_home><txp:site_name /></txp:link_to_home></h1>
<txp:output_form form="topnav" />
</div></center>
<div>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div>
<!-- left -->
<div id="sidebar-1"><br /><txp:output_form form="artists" />
<p> </p>
<txp:if_section name="artist">
<txp:if_search>
<txp:else />
<small>read further
<txp:related_articles break="li" class="recent_articles" label="" limit="999" match="Category1" sort="Title asc" wraptag="div" />
<p> </p>
<txp:output_form form="artist_links" />
</txp:if_search>
</txp:if_section>
<!-- <txp:feed_link flavor="rss" label="RSS news feed" section="article" wraptag="p" /> --> </div>
<!-- right -->
<div id="sidebar-2"></div>
<!-- center -->
<div id="content">
<txp:if_search>
<txp:article searchall="0" limit="9999" sort="Posted desc" />
</txp:if_search>
<txp:if_section name="artist">
<txp:article limit="1" form="default_artist"/>
<txp:else />
<txp:if_individual_article>
<txp:article limit="1" />
<txp:else />
<txp:article_custom id="1" />
</txp:if_individual_article>
</txp:if_section>
</div>
<!-- footer -->
<div id="foot"> </div>
</div>
</body>
</html>
Last edited by els (2011-02-01 00:49:49)
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
jayrope wrote:
i use all ten custom fields, none of them has the name “limit” though.
What are the custom field names?
Code is topiary
Offline
#52 2011-02-01 00:46:56
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
What happens if you change this part:
<txp:if_section name="artist">
<txp:article limit="1" form="default_artist"/>
<txp:else />
<txp:if_individual_article>
<txp:article limit="1" />
<txp:else />
<txp:article_custom id="1" />
</txp:if_individual_article>
</txp:if_section>
to this:
<txp:if_section name="artist">
<txp:article limit="1">
<txp:title />
</txp:article>
<txp:else />
<txp:if_individual_article>
<txp:article>
<txp:title />
</txp:article>
<txp:else />
<txp:article_custom id="1" />
</txp:if_individual_article>
</txp:if_section>
Edit: oh hi Jeff, glad you’re back ;)
Last edited by els (2011-02-01 00:48:45)
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
Jeff, here are the custom field names (thanx for coming back, we’re still operating in the fog…)
Land
Ort
Bewerbungsschluss
Letzter Tag
AP
APTel
APEmail
Webseite
Status
Myspace
Last edited by jayrope (2011-02-01 00:48:33)
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
It is just conceivable that having a custom field named “Status” is the problem.
Edit: Indeed, “status” is included in the list of reserved names for custom fields.
Last edited by jsoo (2011-02-01 00:54:12)
Code is topiary
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
Els, i followed your suggestion to change the code as you described (active now).
The error remains, unfortunately.
A hole turned upside down is a dome, when there’s also gravity.
Offline
#56 2011-02-01 00:52:51
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
jsoo wrote:
It is just conceivable that having a custom field named “Status” is the problem.
Yes! That must be it! Reserved names for custom fields
Last edited by els (2011-02-01 00:56:08)
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
Jeff, you are Mr. Breakthrough tonite.
How did you guess this would work?
Can’t believe it…
The error in the default section is GONE
(Els, i had to return to my own tags to get more than titles displayed…)
Now i need to look into other sections still
(sidebar links still don’t work, but seems just a formality)
Anyhow we already seem to have arrived at the core of the problem.
(Does this need a bug report to dev team?)
Now give me a minute looking around fixing rest of things.
THANK YOU JEFF AND ELS. (scuse my screaming)
I’d like to return a material gift, but can only send physical records – or maybe you like to download some music in HQ for free?) Let me know how i can privately send you a download code… via kliklak.net/contact/ please – choose “jayrope” from the list of recipients and tell me if you like it rather ambient or more groovy/distorted… all music on kliklak.net/downloads/ is my own anyhow… open to your wishes, thank you again, i#ll be back shortly with a final report.
Last edited by jayrope (2011-02-01 01:06:25)
A hole turned upside down is a dome, when there’s also gravity.
Offline
#58 2011-02-01 01:13:03
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
jayrope wrote:
(sidebar links still don’t work, but seems just a formality)
See my earlier post.
(Does this need a bug report to dev team?)
Phew, next time someone has a problem, no matter what it is, the first thing I’m going to ask is ‘what are the names of your custom fields’ ;)
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
@jayrope — I’m only sorry it took us this long to work it out. If it makes you feel any better, I once went through pretty much the same thing a few years back — I had named a custom field “sort”, resulting in a most perplexing set of symptoms. The subject has come up a few other times, including very recently. Bloke had the best suggestion for dealing with it, so I feel quite sure we will get to this in Txp 5.
Code is topiary
Offline
Re: [SOLVED] Update 4.0.5. to 4.3.0 -> txp:article tags don't work
Els, Jeff,
well apparently my malnamed custom field didn’t cause any trouble in 4.0.5.
I personally favor to be pointed to more rigid limits, and i agree, that this is not a bug – in that regard i don’t feel sorry about the time i spent with this, more embarrased i had to invoke your expertise so massively. My apologies for this!
however, for a beginner or intermediate user/progger, whom i am, those details can easily slip through,
unless you get a visible warning every time you get to them again.
I think it would make sense to include a link to the wiki page you mentioned above the custom field settings within admin -> advanced …
Thank you for pointing me back to the usage of article tags out of article contexts. i just wonder, why i didn’t see relevant errors on top of page – have to check on this.
Last edited by jayrope (2011-02-01 01:24:15)
A hole turned upside down is a dome, when there’s also gravity.
Offline