Hello
Is there a example about how change a entry just before it is stored in the database?
I want to change the content of the entry for the real body of the web linked in the url destination.
And maybe another things like add or remove tags and modify the entry's title.
Thanks.
How change ttrss_entries.content when fetch a entry
- fox
- ^ me reading your posts ^
- Posts: 6318
- Joined: 27 Aug 2005, 22:53
- Location: Saint-Petersburg, Russia
- Contact:
Re: How change ttrss_entries.content when fetch a entry
a lot of plugins do exactly this, i.e. readability or w/e else
Re: How change ttrss_entries.content when fetch a entry
can you link me one? please
or tell me which hook I have to use.
Thanks.
or tell me which hook I have to use.
Thanks.
- fox
- ^ me reading your posts ^
- Posts: 6318
- Joined: 27 Aug 2005, 22:53
- Location: Saint-Petersburg, Russia
- Contact:
Re: How change ttrss_entries.content when fetch a entry
article filter hook, any of the af_ plugins would do as an example. the reddit embed one, for example.
Re: How change ttrss_entries.content when fetch a entry
Sorry, but I don't find this example in
https://tt-rss.org/gitlab/fox/tt-rss-at ... er/plugins
neither
https://tt-rss.org/gitlab/fox/tt-rss-sa ... le-plugins
where is af_ plugins/reddit example?
Thanks
https://tt-rss.org/gitlab/fox/tt-rss-at ... er/plugins
neither
https://tt-rss.org/gitlab/fox/tt-rss-sa ... le-plugins
where is af_ plugins/reddit example?
Thanks
Re: How change ttrss_entries.content when fetch a entry
Hi
I have found this: https://gist.github.com/pluser/3039ffacfffa8c55e63d
So, I think is HOOK_ARTICLE_FILTER the hook I need, isn't it?
Is this hook executed before ttrss_entries.content is stored in the data base?
I have found this: https://gist.github.com/pluser/3039ffacfffa8c55e63d
So, I think is HOOK_ARTICLE_FILTER the hook I need, isn't it?
Is this hook executed before ttrss_entries.content is stored in the data base?
- fox
- ^ me reading your posts ^
- Posts: 6318
- Joined: 27 Aug 2005, 22:53
- Location: Saint-Petersburg, Russia
- Contact:
Re: How change ttrss_entries.content when fetch a entry
the file you're looking for is (tt-rss)/plugins/af_redditimgur (any other af plugin would do)
>So, I think is HOOK_ARTICLE_FILTER the hook I need, isn't it?
that's what i said
>Is this hook executed before ttrss_entries.content is stored in the data base?
well it would be rather useless to do it the other way around doesn't it
maybe start thinking a bit on your own before posting
>So, I think is HOOK_ARTICLE_FILTER the hook I need, isn't it?
that's what i said
>Is this hook executed before ttrss_entries.content is stored in the data base?
well it would be rather useless to do it the other way around doesn't it
maybe start thinking a bit on your own before posting
Return to “Themes and plugins”
Who is online
Users browsing this forum: No registered users and 1 guest