Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-08-22 21:25:07
- holo69
- New Member
- Registered: 2006-08-18
- Posts: 8
article layout problems
hi,
i want to layout every article with the same background-image(like a box), but i don’t know how it goes.
I create a “div” for the content, but can’t create a “div” for every “single article”.
thanx for help
Offline
#2 2006-08-23 01:29:04
- NyteOwl
- Member

- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: article layout problems
You could try wrapping the article within the article form rather than within the page (if I understand your intent correectly).
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
#3 2006-08-23 07:41:22
- holo69
- New Member
- Registered: 2006-08-18
- Posts: 8
Re: article layout problems
thanx alot.
if my understanding is right, i put my hole “article form” in a “div” like this:
<code>
<div id=“someCSS”>
<txp:if_article_list>
<h3><txp:permlink><txp:title /></txp:permlink></h3>
<p class=“post”><txp:posted /> by <txp:author /></p>
<txp:if_excerpt><h6><txp:hak_article_thumb limit=“1”/></h6>
<txp:excerpt /><p><txp:permlink>mehr…</txp:permlink></p><br>
<txp:else />
<txp:body /><h6><txp:hak_article_thumb link=“1” linktype=“page” /></h6><br>
</txp:if_excerpt>
<txp:else />
<h3><txp:title /></h3>
<p class=“post”><txp:posted /> by <txp:author /></p>
<h6><txp:hak_article_thumb link=“1” linktype=“image” /></h6><br>
<txp:body />
<p><a href=”/blog_temp/textpattern-4.0.3/index.php?s=<txp:section />”>zurück…</a></p>
</txp:if_article_list>
</div>
</code>
it works great, but i have some format problems. my “permlink” for the title won’t work anymore!
Last edited by holo69 (2006-08-23 07:45:22)
Offline
#4 2006-08-23 14:38:33
- holo69
- New Member
- Registered: 2006-08-18
- Posts: 8
Re: article layout problems
Now it works, the format problem was my mistake!
many thanx to NyteOwl.
Offline
Pages: 1