Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2007-10-01 08:10:37

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

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

#3 2007-10-01 08:17:21

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

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

Board footer

Powered by FluxBB