Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2007-05-04 19:37:37

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

Re: [request] Article Image as Feed

Took a look at the post. Google translates things pretty weird :)

That’s what i was thinking of doing. I’ll probably just replace this plugin with something that let’s you specify feed content. Basically what Christian did. I just need to check for any weirdness with excerpts.


Shoving is the answer – pusher robot

Offline

#17 2007-05-04 20:08:23

The-Exit
Member
From: Berlin
Registered: 2005-07-16
Posts: 175
Website

Re: [request] Article Image as Feed

hi

this is a lovely plugin! it works just great!

the only problem i have is with excerpts.

i split up my blog postings in excerpt and body (but the body does not contain the text entered into the excerpt).

i get this behavior:

if the article exists only of the body: the plugin works great.
if the article is excert + body, i just get the excerpt in the feed, but the plugin does not work :(

Offline

#18 2007-05-04 21:44:54

grafzahl
Member
From: Magdeburg
Registered: 2006-07-28
Posts: 67
Website

Re: [request] Article Image as Feed

You can fix the problem with the excerpts with this plugin-code:

register_callback(‘hak_feed_append’, ‘atom_entry’);
register_callback(‘hak_feed_append’, ‘rss_entry’);
	function hak_feed_append($event, $step) {
   global $thisarticle;
$form = fetch_form(‘feed_append’);
   $thisarticle[‘body’] = parse($form);
   $thisarticle[‘excerpt’] = parse($form);
}

This replaces the body and (if its there) the excerpt with the parsed “feed-append”-form…so both are overwritten and you can catch the excerpt (if you like) manually with <txp:if_excerpt> or something like this…also plugins work fine on the form…

Last edited by grafzahl (2007-05-04 21:46:29)

Offline

#19 2007-05-04 21:57:45

The-Exit
Member
From: Berlin
Registered: 2005-07-16
Posts: 175
Website

Re: [request] Article Image as Feed

well, now i get kind of doubled entries, see here

Offline

#20 2007-05-05 02:46:01

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

Re: [request] Article Image as Feed

TXP does some stuff with excerpts on it’s own after the callback runs. That’s the behavior I wanted to check on.

I think if you turn off Syndicate article excerpt (default is article body)? in Admin -> Preferences -> Advanced -> Publish section you can handle the excerpts yourself using <txp:if_excerpt> like Christian described.


Shoving is the answer – pusher robot

Offline

#21 2007-05-05 10:11:40

grafzahl
Member
From: Magdeburg
Registered: 2006-07-28
Posts: 67
Website

Re: [request] Article Image as Feed

Yeah i descripted this in my blogentry to, you need to switch off the intern “Excerpt before body” in the txp-backend.

Well patrick, never thought that this effect can be generated by 7 lines of code :)

Offline

#22 2007-05-05 17:46:15

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

Re: [request] Article Image as Feed

grafzahl wrote:
Yeah i descripted this in my blogentry to, you need to switch off the intern “Excerpt before body” in the txp-backend.

I think my Google translation kind of mangled that part :)

Well patrick, never thought that this effect can be generated by 7 lines of code :)

I know, I think this is the shortest plugin I’ve written. I’ll work on an update that implements your change, unless you want to do it. After all the code is yours as much as mine.


Shoving is the answer – pusher robot

Offline

#23 2007-08-15 08:02:54

skoggy
Member
From: Westcoast of Sweden
Registered: 2005-03-27
Posts: 209
Website

Re: [request] Article Image as Feed

Hi there,
I really like this plugin, really does what I need on my latest project… but not 100%.

I succesfully send a feed from hbktv.se to hbk.se (shown on the left side under the headline HBK TV)

The problem: There´s only one section that include article image in my feed
Working section: Malservice
Non-working: article
Combined (as I want it to be): Both article and Malservice does include the image from section malservice but not article

The plugin is activated.

My form looks like this (Misc):
< txp:article_image thumbnail=“1” / >
< txp:excerpt / >

Any ideas where to look? Or have I missed somethin vital earlier in the thread?

Offline

#24 2007-08-15 14:23:09

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

Re: [request] Article Image as Feed

I don’t see any reason why that shouldn’t work. Do the images in /article/ have thumbnails? That’s the only thing I can think of.


Shoving is the answer – pusher robot

Offline

#25 2007-08-15 15:01:35

skoggy
Member
From: Westcoast of Sweden
Registered: 2005-03-27
Posts: 209
Website

Re: [request] Article Image as Feed

Yes. They all have thumbs…
Edit: Also the same type of files; .jpg

Last edited by skoggy (2007-08-15 15:03:29)

Offline

#26 2007-08-15 17:35:03

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

Re: [request] Article Image as Feed

Do they display in the article using that same form? It’s so odd that it works for one section and not the other.


Shoving is the answer – pusher robot

Offline

#27 2007-08-17 13:41:07

skoggy
Member
From: Westcoast of Sweden
Registered: 2005-03-27
Posts: 209
Website

Re: [request] Article Image as Feed

They actually don´t use the same form for displaying articles on my site… will have a look there right away… but it seems like a long-shot.

Offline

#28 2008-05-07 07:09:20

ronan
Member
From: luzern (schweiz)
Registered: 2008-05-02
Posts: 53
Website

Re: [request] Article Image as Feed

anyone get it works on 4.0.6? my form will be ignore :-)

Offline

#29 2008-05-07 14:00:50

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: [request] Article Image as Feed

i use csb_feed_image with 4.0.6 without any problems :)


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

Board footer

Powered by FluxBB