Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-10-16 05:02:03

zeusdidit
Member
Registered: 2007-10-16
Posts: 111

Article image with custom field...help.

I’m in the process of creating a magazine, yet e-zined, styled site. Currently I need specific thumbnails associated to each article that will be posted along with the headline, and possibly maybe a short excerpt. When this is clicked the user will jump to that page’s ‘Article’ which will have more photos along with the story.

I’m hoping TextPattern was the right decision in choosing the CMS. You can view the first very, very rough alpha here at http://spanish.makeupbycelso.com . I have installed the following Plug-Ins as well trying to see if any of these would allow me to do the above:

hak_article_image <— this did not work or i used it wrong (or both)

upm_file <— this seemed like it would work and let me use custom fields, but I may have used it wrong

upm_image <— this did not work as i thought it would have

wet_article_thumb <— this did not work as i thought it would have

zem_article_image <— this did not work as i thought it would have

wow_gallery <— haven’t used this one yet, but it works for uploading bulk images

I would like to get this done yesterday. I have a lot to finish the Flash side for the homepage as well as a photo gallery, video gallery and the journal.

If someone could give some guidance to the best usage of adding a thumbnail to an article and having them show up, preferably linking the thumbnail from within the article area I would greatly appreciate this.

Also is there a way to retrieve an XML feed for the stories I’ve published?

Thanks.
Zeus

Offline

#2 2007-10-16 14:57:03

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Article image with custom field...help.

hak_article_image, upm_image and even zem_article_image should definitely do what I think you are looking for.

How did they not work? If all you want is an article image that will link to the article, with hak_article_image you can probably just do this in your article list form.

<txp:permlink><txp:hak_article_thumb limit="1" /></txp:permlink>

and then just use a straight <txp:hak_article_image /> in the individual article form. Adjust to taste. Upm_image has similar features.

A better explanation what is not working better allows us to help you solve the problem.

Last edited by hakjoon (2007-10-16 14:58:47)


Shoving is the answer – pusher robot

Offline

#3 2007-10-16 15:00:15

zeusdidit
Member
Registered: 2007-10-16
Posts: 111

Re: Article image with custom field...help.

I guess I may have added it incorrectly, but I’m also curious how it knows which image needs to get pulled since I’ll be uploading photos each time a post get added. upm_file has this feature added directly to the Article section where I can specify the image, but I haven’t noticed any of these have that option. So how’s it know which image I want added per article?

Thanks for the answer by the way.

Offline

#4 2007-10-16 19:07:48

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Article image with custom field...help.

You can use upm_img_popper or bas_img_selector to populate the article_image field.

I think there is a new plugin that will let you upload images straight from the write tab too but I forget the name.


Shoving is the answer – pusher robot

Offline

#5 2007-10-16 23:25:12

zeusdidit
Member
Registered: 2007-10-16
Posts: 111

Re: Article image with custom field...help.

http://spanish.makeupbycelso.com/beauty-tips/ to page
let me try and to give a better explanation:

[ thumbnail ] & Title (both link to article)
[ thumbnail ] & Title (both link to article)

How would you give this page the thumbnails? I know how to add articles using:
<txp:recent_articles category=“Beauty-Tips” label=“Latest Tips” section=“beauty-tips” /> but when I try to add the image with:

<txp:article_image><txp:recent_articles category=“Beauty-Tips” label=“Latest Tips” section=“beauty-tips” />
The photos show up but only within the article’s page. I need to be able to add thumbnails in the page prior. I know this will require multiple page templates and am in the process of building these.

If you click the first link above you’ll see a black bordered box. This box should actually have been next to the three headlines below Latest Beauty Tips, which leads me to believe I need an ‘if’ statement but when you click the image, the thumbnail shows up.

I guess I’m just trying to figure out the easiest way to add thumbnails to a list of articles if a thumbnail exists that has been assigned to that article. When the thumbnail or the article link is clicked, the page will have the full size image along with any other photos along with a list of related stories. These will be stylized for this page as well.

I know this a handful of a request. I keep reading about this article_image tag and my guess was that I’d be able to use this to assign an image to a story and I can, I just can’t figure out how to assign a thumbnail a list of recent articles. Now at one point I had created a ‘form’, laid out the page usign this form and I actually did have a thumbnail on the page, but when the story was clicked, it looked exactly the same with the thumbnail. So I figured I can create a more complex form, but I was truly hoping that there may be a plug-in that does this already or.. well anything.

I just need some guidance. And thank you for you time and help Hakjoon. I truly appreciate it. If i sound lost, I am, I’m just trying to make the best use out of textpattern, but I feel like this request may be more than I can handle. Again, any help is greatly appreciated.

Thanks again,
Zeus

Last edited by zeusdidit (2007-10-16 23:30:41)

Offline

#6 2007-10-17 00:10:21

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Article image with custom field...help.

I’m understanding better now. You can’t use it that way. You have to use the article_image tag inside an article form, because it has to know what the article is. <txp:recent_articles /> doesn’t expose that functionality to you. You should be able to recreate the recent articles functionality using article custom

Replace <txp:recent_articles category=“Beauty-Tips” label=“Latest Tips” section=“beauty-tips” /> with <txp:article_custom category="Beauty-Tips" section="beauty-tips" sort="Posted desc" form="recent_articles" />

Then create an article form called recent_articles in it place, <txp:permlink><txp:article_image thumbnail="1" /><txp:title /></txp:permlink>

You can mark up the form however you want but this should give you enough of an idea of what’s happening to get you started. You can then see if you need one of the other article image plugins ot meet your needs.


Shoving is the answer – pusher robot

Offline

#7 2007-10-17 06:40:03

zeusdidit
Member
Registered: 2007-10-16
Posts: 111

Re: Article image with custom field...help.

Thank you, thank you, thank you. Now I semi-understand, I’ve created the new form named ‘recent_articles’ and I styled it to the design. I thought I’d be able to use a custom field in order to add images, but instead I am able to use a field I have named “Article Image” which I’m not sure where I got it from or if it was always there. (Remember I installed other Plug-ins). I guess my question now is how do I get the Section name in there so I can separate content? The link above still works if it helps. I’m trying to separate the sections. I am so tired. Again, thank you. I’ll check back tomorrow. I am very, very close… I wish there was an easier way to add images to the articles too… I ask for alot huh?

Offline

#8 2007-10-17 19:56:56

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Article image with custom field...help.

Article_image is there out of the box. You can use <txp:section /> inside the recent articles form to output the section name. Not sure if that is what you are asking.

Look through the tags list on textbook there are good examples in there.


Shoving is the answer – pusher robot

Offline

Board footer

Powered by FluxBB