#836 Automatic inclusion of news in sidebar does not work

Closed
opened 1 year ago by reinhard · 4 comments
reinhard commented 1 year ago

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
label 1 year ago
reinhard added the
xsl
label 1 year ago
max.mehl commented 1 year ago
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.
reinhard commented 1 year ago
Poster

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.
max.mehl commented 1 year ago
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.
reinhard commented 3 months ago
Poster

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.
reinhard closed this issue 3 months ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.