Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-11-06 06:13:11
- jmargolis
- New Member
- Registered: 2006-11-06
- Posts: 3
Multiple posts
Every time I post, the post on the bottom of the page changes, it seems to just choose an article at random. It also appears different than the other posts in that the “posted by…” looks different. If someone could help me with this, I’d greatly appreciate it.
Also, while we’re here, I’m trying to figure out a way to include the title of the article and the date it was posted in a bar that runs across the whole page text part, above each article. I’d like to do this, so that my articles look a bit more separated and clean than they do now.
Thanks guys!
-Jake
http://www.jacobmargolis.com
Offline
Re: Multiple posts
Do you have more than one <txp:article />
tags on your page?
Offline
#3 2006-11-06 06:31:09
- jmargolis
- New Member
- Registered: 2006-11-06
- Posts: 3
Re: Multiple posts
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en”>
<head profile=“http://gmpg.org/xfn/1”>
<meta http-equiv=“content-type” content=“text/html; charset=utf-8” />
<meta name=“author” content=“textpattern” />
<meta name=“rating” content=“General” />
<meta name=“generator” content=“TextPattern” />
<meta name=“revisit-after” content=“14 days” />
<link rel=“stylesheet” href=”<txp:css />” type=“text/css” media=“screen” />
<link rel=“alternate” type=“application/rss+xml” title=“RSS 0.92” href=”/?rss=1” />
<link rel=“alternate” type=“application/atom+xml” title=“Atom 1.0” href=”/?atom=1” />
<txp:if_individual_article><title><txp:section title=“1” />: <txp:page_title /></title></txp:if_individual_article><txp:if_article_list><txp:if_section name=”“><title>Home Page: <txp:sitename /></title><txp:else /><title><txp:section title=“1” />: <txp:sitename /></title></txp:if_section></txp:if_article_list>
</head>
<txp:if_section name=”“>
<body id=“home”>
<txp:else />
<body id=”<txp:section />”>
</txp:if_section>
<div id=“wrap” class=“clearfix”>
<div id=“accessibility”>
<a href=”#nav” title=“Go to top menu”>Go to top menu</a>
<a href=”#content” title=“Go to content”>Go to content</a>
<a href=”#sidebar” title=“Go to bottom menu”>Go to bottom menu</a>
</div>
<div id=“header”>
</div>
<div id=“nav” class=“clearfix”>
<ul>
<li><a href=”<txp:site_url />”>Home</a></li>
<li><a href=”<txp:site_url />about”>About</a></li>
<li><a href=”<txp:site_url />photography”>Photography</a></li>
<li><a href=”<txp:site_url />articles”>Articles</a></li>
<li><a href=”<txp:site_url />subscribe”>Subscribe</a></li>
</ul>
</div>
<div id=“content”>
<txp:if_section name=”,article”>
<txp:if_article_list>
<div class=“entry-1”>
<txp:article limit=“15” />
</div>
<txp:article offset=“1” limit=“1” />
<div class=“navigation”>
<div class=“alignleft”><txp:older>Previous Entries</txp:older></div>
<div class=“alignright”><txp:newer>Next Entries</txp:newer></div>
</div>
<txp:else />
<txp:article />
</txp:if_article_list>
</txp:if_section>
<txp:if_section name=“about”>
<txp:article />
</txp:if_section>
</div>
<txp:output_form form=“sidebar” />
</div>
<txp:output_form form=“footer” />
</body>
</html>
Yes sir.
Offline
#4 2006-11-06 14:37:23
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Multiple posts
First you’re calling a list of the 15 newest articles with <txp:article limit="15" />
, and after that the second newest article with <txp:article offset="1" limit="1" />
. So that last article will change every time you add a new one. That it looks different is probably because it is not in the ‘entry-1’ div.
Your second question is better posted in the Presentation forum.
Offline
#5 2006-11-06 15:19:52
- jmargolis
- New Member
- Registered: 2006-11-06
- Posts: 3
Re: Multiple posts
I just deleted
<txp:article offset=“1” limit=“15” />
Will that have negative effects? Everything looks good.
Thanks for the quick and friendly response guys!
Offline
#6 2006-11-06 21:48:52
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Multiple posts
jmargolis wrote:
Will that have negative effects?
That depends on what your intention with that tag was. But if everythings looks allright I suppose you can do without it ;)
Offline
Pages: 1