Automatic inclusion of news in sidebar does not work #836

Closed
opened 2019-03-15 08:04:41 +00:00 by reinhard · 4 comments
Member

There is a feature to have started, documented (as currently disabled) and used in several places. It is intended to include a dynamic news feed related to a given tag in the sidebar of a page, for example an article about Free Software in universities could have to show the latest news about Free Software in education.

This is in unfinished state for years. We should either finish it or discard it (and clean out all the stuff related to it).

There is a feature to have <sidebar news="..."> started, documented (as currently disabled) and used in several places. It is intended to include a dynamic news feed related to a given tag in the sidebar of a page, for example an article about Free Software in universities could have <sidebar news="education"> to show the latest news about Free Software in education. This is in unfinished state for years. We should either finish it or discard it (and clean out all the stuff related to it).
reinhard added the
build
xsl
labels 2019-03-17 11:58:00 +00:00
Owner

Hm, I think it works. I extended the template of "fetch-news" to also include entries in a sidebar, as you can see on https://fsfe.org/activities/radiodirective/

Or do you mean automatically showing news of the same tag as a news item has in its sidebar? If so, you could still make use of the enhanced fetch-news template.

Hm, I think it works. I extended the template of "fetch-news" to also include entries in a sidebar, as you can see on https://fsfe.org/activities/radiodirective/ Or do you mean automatically showing news of the same tag as a news item has in its sidebar? If so, you could still make use of the enhanced fetch-news template.
Author
Member

From https://fsfe.org/contribute/template.de.html:

You can also give parameters to your sidebar. This page has the following sidebar parameters:

<sidebar news="ilovefs" promo="about-fsfe">

The news value is a tag. It’s going to fetch some news items that match the given tag and display them in the sidebar. For matter of demonstration, this page displays links to news items with the "ilovefs" tag.

Note: The news feature of the sidebar is disabled until Nicolas finds a better way of building the tag. Your help is welcome!

That's the feature I'm talking about.

From https://fsfe.org/contribute/template.de.html: > You can also give parameters to your sidebar. This page has the following sidebar parameters: > > `<sidebar news="ilovefs" promo="about-fsfe">` > > The news value is a tag. It’s going to fetch some news items that match the given tag and display them in the sidebar. For matter of demonstration, this page displays links to news items with the "ilovefs" tag. > > Note: The news feature of the sidebar is disabled until Nicolas finds a better way of building the tag. Your help is welcome! That's the feature I'm talking about.
Owner

Ah, didn't know that, thanks.

Well, nice feature and having this would be quite nice if one doesn't have to create the .xsl and .sources files in order to enable it (this is what one would have to do with the mentioned fetch-news solution.

Ah, didn't know that, thanks. Well, nice feature and having this would be quite nice if one doesn't have to create the .xsl and .sources files in order to enable it (this is what one would have to do with the mentioned fetch-news solution.
Author
Member

With the latest improvements to the news feed XSL, we're at a very good state. All you have to do to include the news feed into your sidebar is:

  1. define the news to include via .sources file, and
  2. place <news-list/> wherever you want the feed to display within the sidebar.

I think this is at least as good as the original plan, because it gives us more flexibility (about which news exactly to include and the positioning of the news feed within the sidebar) while adding less complexity to the whole build system.

Therefore I will now remove that bit from the documentation and all places where the non-working parameter is used, and consider this issue closed.

With the latest improvements to the news feed XSL, we're at a very good state. All you have to do to include the news feed into your sidebar is: 1. define the news to include via `.sources` file, and 2. place `<news-list/>` wherever you want the feed to display within the sidebar. I think this is at least as good as the original plan, because it gives us more flexibility (about which news exactly to include and the positioning of the news feed within the sidebar) while adding less complexity to the whole build system. Therefore I will now remove that bit from the documentation and all places where the non-working parameter is used, and consider this issue closed.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: FSFE/fsfe-website#836
No description provided.