Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement image tag in RSS template #505

Open
Fraenkiman opened this issue Dec 19, 2024 · 2 comments
Open

Implement image tag in RSS template #505

Fraenkiman opened this issue Dec 19, 2024 · 2 comments

Comments

@Fraenkiman
Copy link
Collaborator

Fraenkiman commented Dec 19, 2024

Lubomír has the following suggestion for improvement in the support forum:

Please fix output from flatpress RSS

  • briefer description to tag
  • add picture to tag ...

Try Widget Preview: https://www.rssfeedwidget.com/
https://www.flatpress.org/feed/rss2/ - has big description with picture
http://feeds.bbci.co.uk/news/england/rss.xml - look good
http://wordpress.org/news/feed/ - look good
rss (1)

By changing the line

{$content|tag:the_content}

in
{$content|tag:the_content|strip_tags|strip|truncate:256:"...":true|escape}
you could remove images in posts from the RSS feed. This also removes links to other entries e.t.c

The question is whether this is in the interests of the majority of FlatPress users, as the Atom feed already exists in this form. On the other hand, there is the BBcode [more] tag, which can be used to create an individual shortening. Personally, I find the HTML output in the <description> tag more attractive than the plain text output.

@azett, would you like to start a poll on this in the forum?

@azett
Copy link
Member

azett commented Dec 26, 2024

I wouldn't change the current behaviour (except for the PhotoSwipe buttons, thanks for fixing that @Fraenkiman ).
Changing to a text-only feed via strip_tags is an easy template customization to be made - it should just be documented on the wiki.

@Fraenkiman
Copy link
Collaborator Author

  • Changing to a text-only feed Finished
  • Add picture to tag: open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants