Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-07-09 20:57:35
- Rocamm
- Member

- Registered: 2006-05-20
- Posts: 20
Article and Layout Question?
Hello !
I am trying to build a site that contains two different image feeds on the front page…
please take a look here:
http://www.theblownmind.com/
How can I have two articles?
or would this be solved using categories..?
(I still don’t quite understand categories where can I find more information??)
HELP!
you guys have always been great troubleshooting in the past!
-Robin
Offline
#2 2006-07-09 21:19:50
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Article and Layout Question?
Please be more specific. What is exactly the end result you want to achieve (do you want 2 articles in 2 columns, so ’2 test’ would be next to ‘getting testy 3’?), and what is the code that you’re using in the page template now?
(I still don’t quite understand categories where can I find more information??)
Categories. Also good to read the entire article and maybe some of the links at the bottom.
Edit: I am guessing that you don’t have a limit attribute in your article tags. Try limit="1" for one article tag, and limit="1" offset="1" for the other.
Last edited by els (2006-07-09 21:42:31)
Offline
#3 2006-07-10 00:24:06
- Rocamm
- Member

- Registered: 2006-05-20
- Posts: 20
Re: Article and Layout Question?
That kind of worked,
how can you control the images more? ie. what exactly does that do..
some of them are getting bumped because I think I don’t have the CSS table exatly proper
here’s my code: FOR THE PAGES
<!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><txp:page_title /></title>
</head>
<body>
<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="container">
<!-- head -->
<div id="head">
<h1><txp:link_to_home><txp:sitename /></txp:link_to_home></h1>
<h2><txp:site_slogan /></h2>
</div>
<!-- left -->
<div id="sidebar-1">
<txp:article limit="1" />
<txp:older>Previous</txp:older>
<txp:newer>Next</txp:newer>
</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></p><txp:linklist wraptag="p" />
</div>
<!-- center -->
<div id="content">
<txp:article limit="1" offset="1" />
<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>
<!-- footer -->
<div id="foot"> </div>
</div>
</body>
</html>
here’s the CSS:
body
{
background-color: #fff;
}
p, blockquote, li, h3
{
font-family: "Verdana", Lucida Grande, Tahoma, Helvetica;
font-size: small;
line-height: 1.6em;
text-align: left;
padding-left: 10px;
color: #99CCF0;
}
blockquote
{
margin-left: 5px;
margin-right: 0px;
}
#sidebar-2 p, #sidebar-1 p
{
line-height: 15px;
font-size: 9px;
}
#sidebar-1 p
{
text-align: right;
}
#head
{
text-align: left;
height: 100px;
}
#container
{
width: 1000px;
\width: 1000px;
w\idth: 1000px;
margin: 5px;
margin-left: 0px;
margin-right: 5px;
padding: 0px;
}
#sidebar-1
{
float: left;
width: 475px;
\width: 475px;
w\idth: 475px;
margin-right: 0px;
margin-left: 0px;
padding-top: 30px;
}
#content
{
margin-left: 475px;
margin-right: 45px;
padding-top: 30px;
}
#sidebar-2
{
float: right;
width: 50px;
\width: 50px;
w\idth: 50px;
margin-left: 0px;
padding-top: 30px;
}
#foot
{
clear: both;
margin-top: 2px;
text-align: center;
}
#accessibility
{
position: absolute;
top: -10000px;
}
a
{
color: black;
text-decoration: none;
border-bottom: 1px black solid;
}
#sidebar-2 a, #sidebar-1 a
{
border: 0px;
color: #C00;
}
h1
{
font-weight: normal;
text-decoration: none;
font-family: Georgia;
font-size: small;
}
h2
{
font-weight: normal;
font-family: Georgia;
font-size: small;
font-style: italic;
color: #99CCFF;
}
h3
{
font-weight: normal;
}
h3 a
{
border: 0px;
font-weight: normal;
font-family: Georgia;
font-size: small;
color: #99FFFF;
}
h1 a, h2 a
{
border: 0px;
}
.caps
{
letter-spacing: 0.1em;
font-size: 10px;
}
#content hr
{
width: 66%;
margin-top: 2em;
margin-bottom: 2em;
}
img.divider
{
align: right;
margin-top: 2em;
margin-bottom: 2em;
}
.comments_error
{
background-color: #ffa;
}
div.comments_error
{
border: 1px solid #cc8;
padding: 0.3em;
}
(Edit: updated to display code properly. :) -Mary)
Last edited by Mary (2006-07-10 01:01:24)
Offline
#4 2006-07-10 14:15:39
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Article and Layout Question?
Try changing widths and margins in #sidebar-1 and #content. These divs are exactly as wide as your images, which is why they are getting ‘bumped’.
Offline
Pages: 1