Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-07-19 17:16:26

neomatrix
Member
From: Sofia, Bulgaria
Registered: 2005-08-21
Posts: 23

Need help with a specific blog layout

Hi,

I like this layout a lot — http://eenk.com/?p=3568

All text is wrapped within a div, while images are outside it.

<div class="storycontent">some text</div>
<img src="1.jpg" />
<div class="storycontent">some text</div>
<img src="2.jpg" />
<div class="storycontent">some text</div>

Do you think I can achieve this with Textpattern? I think that blog uses Wordpress.

Offline

#2 2010-07-19 17:27:00

kritoke
Member
From: Florida
Registered: 2010-07-19
Posts: 26

Re: Need help with a specific blog layout

I think it is quite possible to achieve something like that. You could post each individual image as an article/attached image. If you get the plugin bot_image_upload, it will let you attach an image directly from the write tab in TextPattern. If you want more than one article image, you can achieve this by using the plugin hak_article_image . A simple way to just output the title name and its associated image is:
<h3><txp:title /></h3><txp:article_image />

Offline

#3 2010-07-19 18:24:07

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: Need help with a specific blog layout

One example is this jewelry website. Each jewelry (with image) is an article.

Offline

#4 2010-07-19 18:33:19

neomatrix
Member
From: Sofia, Bulgaria
Registered: 2005-08-21
Posts: 23

Re: Need help with a specific blog layout

Thank you both. It looks like plugin hak_article_image might be a solution.

Offline

#5 2010-07-19 18:47:54

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: Need help with a specific blog layout

It looks like plugin hak_article_image might be a solution.

Or the newer upm_image

Offline

#6 2010-07-19 22:11:23

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Need help with a specific blog layout

If you will only have one image per article, you really don’t need a plugin ;)

Offline

#7 2010-07-20 12:22:09

joebaich
Member
From: DC Metro Area and elsewhere
Registered: 2006-09-24
Posts: 507
Website

Re: Need help with a specific blog layout

I am perhaps coming from a different direction. I looked at the site eenk.com that you liked and, in TXP terms, saw a single article that could look something like:

image 1
caption 1

image 2
caption 2 ……

image n
caption n

article body.

If all you want to do is build a single article with the list of images, you could use the plugin upm_image or yab_image to render the captions for each image in your image list which you could produce manually.

If you want to produce lots articles with this layout, I think that you could use the plug-in soo_image to generate your image lists using the txp:soo_image_select tag in conjunction with an image form which contained upm_image or yab_image tags. You could define each list by assigning its images to a specific category, for instance.

Last edited by joebaich (2010-07-21 03:02:58)

Offline

Board footer

Powered by FluxBB