Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2005-09-10 16:34:19
- ickii
- New Member
- Registered: 2005-09-08
- Posts: 5
Re: hak_article_image
I don’t think so, the aritcle is only one paragraph. Im new to txp and just adding test articles to try to figure some of this out. So really all I’ve done is…
uploaded hak_article_image plugin
added the hak_article_image tag to the default article form
wrote a new article, added the article image in the advanced options
wrote a short paragraph in the text field
set a catagory and section
published
Any ideas? Thanks for the help btw.
ickii
Offline
Re: hak_article_image
I think I might have figured it out. In the article image field are you entering an id or a file path (like 6.jpg)?
Shoving is the answer – pusher robot
Offline
Re: hak_article_image
I uploaded version 0.3.2 which I think should take care of the problem you are seeing. Let me know if it does.
Shoving is the answer – pusher robot
Offline
#19 2005-09-11 00:22:44
- ickii
- New Member
- Registered: 2005-09-08
- Posts: 5
Re: hak_article_image
Sorry for the delay in responding, other obligations and all.
I updated to 0.3.2 and now the error message is gone but still no image appears in the article.
I have txp:image id=“2” as the article image. With <> of course.
And still txp:hak_article_image placed in the article form.
Now instead of an image there is “ alt=”“ /> appearing in the article. Could it be where I’m placing the hak_article_image tag in the form?
I appreciate your efforts. :)
ickii
Offline
Re: hak_article_image
Did you write <txp:image id="2" /> in the “article image” field? If you did so, maybe you wanna try to write just 2… got confused the first time I used that too ;)
Last edited by zoeglingjulian (2005-09-11 01:13:40)
Offline
#21 2005-09-11 01:56:28
- ickii
- New Member
- Registered: 2005-09-08
- Posts: 5
Re: hak_article_image
hmmm and to think I tried everything else. LOL
That was it, it’s a bit confusing when everything looks like your supposed to add all the other stuff.
Thanks zoeglingjulian and hakjoon for the assistance.
ickii
Offline
Re: hak_article_image
Sorry I didn’t get back yesterday, but it looks like you figured things out. The fix wouldn’t have taken care of your situation but it helped me find a scenario that should work and wasn’t though so that was good.
Glad you got it working. I’ll see about updating the help to reflect better how it should be used.
Last edited by hakjoon (2005-09-11 23:06:41)
Shoving is the answer – pusher robot
Offline
Re: hak_article_image
Mmmmm this is absolutely perfect. Nice one! Got it running on my beta site :¬)
Offline
#24 2005-11-01 12:51:05
- eyesolation
- New Member
- Registered: 2005-10-18
- Posts: 4
Re: hak_article_image
very nice plugin! found a minor bug though when using offset and limit parameters at the same time in v0.3.2.
removing the optional “$limit + 1” parameter on the split function in line 17 fixes the bug.
Offline
Re: hak_article_image
Great I’ll take a look at that tonight. Just so I can make sure I’m fixing it right what behavior were you seeing?
Shoving is the answer – pusher robot
Offline
#26 2006-01-02 18:19:50
- panik
- Member
- From: Bonn, Germany
- Registered: 2005-08-13
- Posts: 13
Re: hak_article_image
hi, thanks for the great plugin.
i hacked the plugin to be able to show the article in a different section when clicked on a thumbnail. so i can have a different page template for an image gallery without article body and in a different design.
how could i add a section-attribute? i don’t know php, so i can’t hack the plugin further.
Offline
Re: hak_article_image
I’ve been meaning to do this, because I have a setup like that too. Did you say you had hacked it already or that you wanted to? I wasn’t super clear from your message.
I could add a section attribute pretty easily. Give me a day or so.
Shoving is the answer – pusher robot
Offline
#28 2006-01-02 21:42:09
- panik
- Member
- From: Bonn, Germany
- Registered: 2005-08-13
- Posts: 13
Re: hak_article_image
thanks for the quick answer, i worked it out myself. i can send you my hack. as mentioned, i’m not into php, so you can look over it.
Offline
Re: hak_article_image
Great plugin. Just the trick for fixing zem’s version, not working with subdirs.
Does anyone know of a way to perform a conditional that looks at whether or not an article image is present?
I’d like to do an if_article_image, display it, else display a category image.
Any thoughts pointers?
UPDATE Nice plugin txp:tcm_if_article_image will do the trick
Last edited by mrdale (2006-01-13 20:43:28)
Offline
Re: hak_article_image
I just posted version 0.3.3 which fixes the limit bug that eyesolation pointed out back in November.
I can’t believe I let it go so long.
Shoving is the answer – pusher robot
Offline