Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-10-01 07:58:25
- speaker
- New Member
- Registered: 2006-03-14
- Posts: 2
article images in different div
Hi!
I got a problem, i want to have the article images in a different div-tag. to the right of the article
is this possible?
like this: (kind of)
<div class=“left”><txp:article form=“default” limit=“1” listform=“default” /> </div>
<div class=“right”><txp:article_image /></div>
thank you
Offline
Re: article images in different div
yes thats possible. you’re not limited in any way when it comes to your sites layout. more specifically you’ll probably be looking at using css floats to have your divs sit next to each other.
Offline
Re: article images in different div
To add to what iblastoff wrote:
all you need to do is to shift your divs and txp:article_image tag from the page template into the article form itself, i.e. make a new form (with type=article), put in the txp:tags for title, body, posted etc. as usual in one div and the txp:article_image in your second div and save it under a new name. Then use it in place of form="default"
in the txp:article
tag on your page template.
TXP Builders – finely-crafted code, design and txp
Offline
#4 2007-10-01 08:27:36
- speaker
- New Member
- Registered: 2006-03-14
- Posts: 2
Re: article images in different div
lovley!!!
It works!!
Thank you so much!
Offline
Pages: 1