Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2006-01-16 16:47:33
- wmike
- Member
- Registered: 2006-01-03
- Posts: 44
Re: How do I insert a return of paragraph formatting to article listing?
Hi Els,
If it helps you, and you have time, – I would be happy for you to login too take a look at how I have messed this up.
Cheers!
mike
Offline
#14 2006-01-16 17:01:16
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How do I insert a return of paragraph formatting to article listing?
Hi Mike,
Try, instead of the <txp:article />
tag, this:
<code>
<txp:if_section name=“it”>
<h1>IT articles</h1>
<txp:article_custom section=“it” category=“it” sortby=“Posted” sortdir=“desc” excerpted=“y” listform=“default” />
<txp:else />
<txp:article />
</txp:if_section>
</code>
I have to go out now for a while, but I’ll check this thread again later this evening, see what we can do ;)
Edit: the link to your ‘IT articles’ doesn’t seem right either: if the section is called ‘it’ the link should point to /it/.
Last edited by doggiez (2006-01-16 17:05:12)
Offline
#15 2006-01-16 17:06:32
- wmike
- Member
- Registered: 2006-01-03
- Posts: 44
Re: How do I insert a return of paragraph formatting to article listing?
Hi els,
Tried that – still no joy, I’m afraid.
Cheers!
Mike
Offline
#16 2006-01-16 21:41:23
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How do I insert a return of paragraph formatting to article listing?
I’m just trying now to get an idea of how you organized your pages.
- The menu links on the left all point to articles (with the exception of forum and blog), is that right? I suppose these are in another section, and you are using another page template for that, because those articles are clearly not using your default form.
- The two articles in section ‘it’ are IT housekeeping tips and Firewalls explained. Right? (In what section is article IT articles? And is that a real article or is it just the title?) The strange thing is that one article uses your default form and the other is displaying the full article. Did you by chance set Override form (in Advanced options) for one or more articles?
- The page you link to with /it-articles is an individual article page and can never be an article list. An article list in section ‘it’ should be yoursite.com/it/. I think the permlinked article titles on that page are your link_to_prev and link_to_next tags.
- Change the link to the IT articles page to /it/.
- Remove any Override form if set for an article belonging to section ‘it’.
- Use this code in div content2:
<code>
<txp:if_section name=“it”>
<h1>IT articles</h1>
<txp:article listform=“default” form=“yourfullarticleform” />
<txp:else />
<txp:article />
</txp:if_section>
<txp:if_individual_article>
<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>
<txp:if_article_list>
<p>
<txp:older>Previous</txp:older>
<txp:newer>Next</txp:newer>
</p>
</txp:if_article_list>
</code>
Does that do anything?
Offline
#17 2006-01-17 07:53:05
- wmike
- Member
- Registered: 2006-01-03
- Posts: 44
Re: How do I insert a return of paragraph formatting to article listing?
Hi Els,
Starting to pull my hair out now.
Pretty much everything bar the articles are static pages.
I have done the following – deleted the article sections [such as ‘it’] and left the default page alone.
So, now I have an ‘it’ category [no form override] – both of the articles are set the same – section=article category=it. It still doesn’t work.
I have the following code on the ‘it-articles’ page [this also uses section=article]:
<code>
<h1>IT articles</h1>
<txp:article_custom form=“default” category=“it” sortby=“Title” sortdir=“desc” excerpted=“y” listform=“static_headline” />
</code>
My default page looks like this:
<code>
<!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” />
<link rel=“stylesheet” href=”<txp:css />” type=“text/css” media=“screen” />
<title>WrightPlace Consulting – <txp:page_title /></title>
</head>
<body>
<div id=“container”>
<div id=“accessibility”>
<a href=”#content” title=“Go to content”>Go to content</a>
<a href=”#sidebar-1” title=“Go to navigation”>Go to navigation</a>
<a href=”#sidebar-2” title=“Go to search”>Go to search</a>
</div> <!— /accessibility —>
<!— head —>
<div id=“copyright”>copyright WrightPlace Consulting 2005©</div>
<div id=“topt”>t. +44 1953 457116 | </div>
<div id=“topemail”><a href=“mailto:customerservice@wrightplace.co.uk”>email us</a></div>
<img src=“images/3.jpg” alt=“Welcome to WrightPlace Consulting – making IT easy! />
<div id=“content”>
<!— left —>
<div id=“sidebar-1”>
<p><a href=”/making-it-easy-with-wrightplace-consulting”>home</a></p>
<p><a href=”/wrightplace-consulting-the-team”>about us</a><p>
<p><a href=”/why-us”>why us?</a><p>
<p><a href=”/contact-us”>contact us</a><p>
<p><a href=”/what-our-customers-think”>customer views</a><p>
<p><a href=”../cgi-bin/forum/Blah.pl” target=”_blank”>the forum</a></p>
<p><a href=”../blog/index.php” target=”_blank”>blog</a></p>
<p><a href=”/code-of-practise”>code of practise</a><p>
<h4 class=“top10”>Services</h4>
<p class=“top10”><a href=”/it-sprint”>IT sprint</a><p>
<p><a href=”/it-training”>IT training</a><p>
<p><a href=”/web-marketing”>web marketing</a><p>
<h4 class=“top10”>Articles</h4>
<p class=“top10”><a href=”/it-articles”>IT</a><p>
</div>
<!— right —>
<div id=“sidebar-2”>
<txp:search_input label=“Search” wraptag=“p” /> <txp:popup type=“c” label=“Browse” wraptag=“p” /> <p><txp:feed_link label=“RSS” /> / <txp:feed_link label=“Atom” flavor=“atom” /></p>
<p><img src=“textpattern/txp_img/txp_slug105x45.gif” alt=“textpattern” /></p>
</div>
<!— center —>
<div id=“content2”>
<txp:article />
<txp:if_individual_article>
<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>
<txp:if_article_list>
<p>
<txp:older>Previous</txp:older>
<txp:newer>Next</txp:newer>
</p>
</txp:if_article_list>
</div>
</div>
<!— footer —>
<div id=“foot”> </div>
</div>
</body>
</html>
</code>
This is baffling me.
Cheers!
Mike
Offline
#18 2006-01-17 11:20:57
- wmike
- Member
- Registered: 2006-01-03
- Posts: 44
Re: How do I insert a return of paragraph formatting to article listing?
Still sweating over this – don’t appear to be making much progress.
Now back to section=“it” using page=“static_list”. Proving impossible, so far, to get a simple unordered list of links that show the excerpt as detailed by the form. Code below:
1. static_list page:
<code>
<!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” />
<link rel=“stylesheet” href=”<txp:css />” type=“text/css” media=“screen” />
<title>WrightPlace Consulting – <txp:page_title /></title>
</head>
<body>
<div id=“container”>
<div id=“accessibility”>
<a href=”#content” title=“Go to content”>Go to content</a>
<a href=”#sidebar-1” title=“Go to navigation”>Go to navigation</a>
<a href=”#sidebar-2” title=“Go to search”>Go to search</a>
</div> <!— /accessibility —>
<div id=“copyright”>copyright WrightPlace Consulting 2005©</div>
<div id=“topt”>t. +44 1953 457116 | </div>
<div id=“topemail”><a href=“mailto:customerservice@wrightplace.co.uk”>email us</a></div>
<img src=“images/3.jpg” alt=“Welcome to WrightPlace Consulting – making IT easy! />
<div id=“content”>
<!— left —>
<div id=“sidebar-1”>
<p><a href=”/making-it-easy-with-wrightplace-consulting”>home</a></p>
<p><a href=”/wrightplace-consulting-the-team”>about us</a><p>
<p><a href=”/why-us”>why us?</a><p>
<p><a href=”/contact-us”>contact us</a><p>
<p><a href=”/what-our-customers-think”>customer views</a><p>
<p><a href=”../cgi-bin/forum/Blah.pl” target=”_blank”>the forum</a></p>
<p><a href=”../blog/index.php” target=”_blank”>blog</a></p>
<p><a href=”/code-of-practise”>code of practise</a><p>
<h4 class=“top10”>Services</h4>
<p class=“top10”><a href=”/it-sprint”>IT sprint</a><p>
<p><a href=”/it-training”>IT training</a><p>
<p><a href=”/web-marketing”>web marketing</a><p>
<h4 class=“top10”>Articles</h4>
</div>
<!— right —>
<div id=“sidebar-2”>
<txp:search_input label=“Search” wraptag=“p” /> <txp:popup type=“c” label=“Browse” wraptag=“p” /> <p><txp:feed_link label=“RSS” /> / <txp:feed_link label=“Atom” flavor=“atom” /></p>
<p><img src=“textpattern/txp_img/txp_slug105x45.gif” alt=“textpattern” /></p>
</div>
<!— center —>
<div id=“content2”>
<txp:article limit=100 form=“static_article” listform=“static_headline” />
<txp:if_individual_article>
<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>
<txp:if_article_list>
<p>
<txp:older>Previous</txp:older>
<txp:newer>Next</txp:newer>
</p>
</txp:if_article_list>
</div>
</div>
<!— footer —>
<div id=“foot”> </div>
</div>
</body>
</html>
</code>
2. Form:
<code>
<h4><txp:permlink><txp:title /></txp:permlink></h4>
<txp:excerpt /><txp:permlink>(read more..)</txp:permlink>
</code>
3. IT articles page:
<code>
<h1>IT articles</h1>
<txp:if_section name=“it”>
<txp:article_custom section=“it” sortby=“Title” sortdir=“desc” excerpted=“y” listform=“static_headline” />
</txp:if_section>
</code>
Any ideas?
Cheers!
Mike
Offline
#19 2006-01-17 13:12:48
- wmike
- Member
- Registered: 2006-01-03
- Posts: 44
Re: How do I insert a return of paragraph formatting to article listing?
I notice also that the browse box fails to do anything – ie if you select the only section with any article – “it” – you just get a blank page.
Offline
#20 2006-01-17 14:49:35
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How do I insert a return of paragraph formatting to article listing?
3. IT articles page:
<code>
<h1>IT articles</h1>
<txp:if_section name=“it”>
<txp:article_custom section=“it” sortby=“Title” sortdir=“desc” excerpted=“y” listform=“static_headline” />
</txp:if_section>
</code>
What exactly do you mean by ‘IT articles page’? Where exactly is this code? Not by chance in your article, is it?
1. static_list page:
Is this the page that your section ‘it’ uses?
Somewhere you wrote:
If it helps you, and you have time, – I would be happy for you to login too take a look at how I have messed this up.
I wouldn’t mind, all this code sort of out of context is not really making things any clearer for me ;) And I’m convinced it must be something very simple once you know what you are looking for…
Offline
#21 2006-01-17 14:54:33
- wmike
- Member
- Registered: 2006-01-03
- Posts: 44
Re: How do I insert a return of paragraph formatting to article listing?
Hi Els,
The ‘IT articles page@ is the page you get when you click on IT under ‘articles@ – it contains:
<code>
<txp:if_section name=“it”>
<h1>IT articles</h1>
<txp:article_custom section=“it” sortby=“Posted” sortdir=“desc” excerpted=“y” listform=“default” />
</txp:if_section>
</code>
The page is setup to display a static list.
Cheers!
Mike
Offline
#22 2006-01-17 14:56:03
- wmike
- Member
- Registered: 2006-01-03
- Posts: 44
Re: How do I insert a return of paragraph formatting to article listing?
Send me an email Els & I’ll send you login details.
Cheers!
Mike
wmike@wrightplace.co.uk
Offline
#23 2006-01-17 16:15:58
- wmike
- Member
- Registered: 2006-01-03
- Posts: 44
Re: How do I insert a return of paragraph formatting to article listing?
Hi Els,
Again – thanks for your fantastic help and patience.
Cheers!
Mike
Offline