hi all,
I'm working on a plugin, that needs a configuration per feed. I would include a checkbox in classes/pref/feeds.php, but where should the data be stored? Am i permitted to use "ttrss_feed.view_settings"? i did not find any reference to this column. Or how is the policy with new columns and releases from fox?
Or would be best practice to create a new table (ttrss_feed_view with columns id, owner_uid, view_option) ?
With this setting (and the plugin, Work in Progress) one can configure if a feed should automatically be displayed with the full content of the article-url.
thanks for feeback,
macfly.
plugin needs to store data in sql - how?
- fox
- ^ me reading your posts ^
- Posts: 6318
- Joined: 27 Aug 2005, 22:53
- Location: Saint-Petersburg, Russia
- Contact:
Re: plugin needs to store data in sql - how?
Don't rely on tt-rss base schema stuff for plugin needs it might suddenly become used/unused/dropped in the future.
Nobody stops from writing an additional schema script fit for your plugin and asking users to install that.
Nobody stops from writing an additional schema script fit for your plugin and asking users to install that.
Re: plugin needs to store data in sql - how?
thanks for feedback!
Re: plugin needs to store data in sql - how?
fox, another question regarding policies:
am i allowed to modify your existing embed_original plugin (to add features like autofetch a full (mobilized) article) or do i have to write a spinoff-plugin (lets say auto_embed_content) ?
i'm just asking because i'm new to this project and new to git ...
regards,
macfly
am i allowed to modify your existing embed_original plugin (to add features like autofetch a full (mobilized) article) or do i have to write a spinoff-plugin (lets say auto_embed_content) ?
i'm just asking because i'm new to this project and new to git ...
regards,
macfly
- fox
- ^ me reading your posts ^
- Posts: 6318
- Joined: 27 Aug 2005, 22:53
- Location: Saint-Petersburg, Russia
- Contact:
Re: plugin needs to store data in sql - how?
In this case, I think it would be better to make a separate plugin.
>am i allowed to modify
Google GPL?
>am i allowed to modify
Google GPL?
Re: plugin needs to store data in sql - how?
yes, of course i am allowed (by law, GPL) - i was refering to you as the project owner .. 

Who is online
Users browsing this forum: No registered users and 2 guests