Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-11-03 16:18:43
- de
- Member
- Registered: 2008-07-09
- Posts: 13
Article image layout
Hi all,
Any ideas on how i can have my article section look more like an magazine layout. A lot of my articles have images and my goal is to have the text wrap around the image.
Offline
#2 2008-11-26 21:19:54
- zeusdidit
- Member
- Registered: 2007-10-16
- Posts: 111
Re: Article image layout
You need to create a “Form” for the look of the article. This form is called “event_list”. similar to:
<!— event list —>
<div style=“padding-left:10px”><txp:permlink><txp:article_image style=“border:1px solid #fff;” thumbnail=“1” /></txp:permlink></div>
<ul><li><txp:permlink><txp:title /></txp:permlink><br>
<txp:custom_field name=“event_info”/>
</li></ul>
Then you must upload an image and a thumbnail into the Content/Images tab on the admin side.
After this you get an image ID # in the Content/Images tab. Add that # to the article in the place called Article Image.
Finally on the Presentation page (the template), you can put <txp:article form=“event_list”/> and this will return images with thumbnails.
Hope this helps and I didn’t miss any steps. Cheers.
Last edited by zeusdidit (2008-12-19 20:01:41)
Offline
Pages: 1