#1342 Proposal: prebuilt further-reading blocks for sidebar

Open
opened 10 months ago by reinhard · 8 comments
Collaborator

I just had the idea that we could make better use of our sidebar in news items. I suggest to predefine "further reading" blocks for the relevant activities which can then be automatically included in the sidebar of the news item by adding <sidebar further-reading="..."/> before the closing </html> in the source file.

For example, <sidebar further-reading="pmpc"/> would add a predefined block about PMPC, containing a link to the campaign site, a link to the brochure etc.

I just had the idea that we could make better use of our sidebar in news items. I suggest to predefine "further reading" blocks for the relevant activities which can then be automatically included in the sidebar of the news item by adding `<sidebar further-reading="..."/>` before the closing `</html>` in the source file. For example, `<sidebar further-reading="pmpc"/>` would add a predefined block about PMPC, containing a link to the campaign site, a link to the brochure etc.
Poster
Owner

Do I understand your idea correctly that this element (pmpc) would not be just the news but rather a pre-defined element that is the same on all pages?

One problem I see: a link to the PMPC brochure on the page that is exactly about the brochure is a bit odd.

But in general, it's an interesting feature, but one that has to be communicated, documented and used well enough.

Do I understand your idea correctly that this element (pmpc) would not be just the news but rather a pre-defined element that is the same on all pages? One problem I see: a link to the PMPC brochure on the page that is exactly about the brochure is a bit odd. But in general, it's an interesting feature, but one that has to be communicated, documented and used well enough.
Poster
Collaborator

Yes, the element "pmpc" would explicitly not be the news about PMPC, but rather links to further reading that people now reading a news item around PMPC might find interesting. To make this extra clear: the element would not be included in files below /campaigns/publiccode but rather in files below /news that deal with topics around PMPC.

Yes, the element "pmpc" would explicitly *not* be the news about PMPC, but rather links to further reading that people now reading a news item around PMPC might find interesting. To make this extra clear: the element would not be included in files below `/campaigns/publiccode` but rather in files below `/news` that deal with topics around PMPC.
Poster
Owner

Aha, I see. It's an interesting option!

Aha, I see. It's an interesting option!
reinhard added the
feature-request
label 9 months ago
reinhard added the
xsl
label 9 months ago
Poster
Collaborator

Actually I think that we can already do this in a very straightforward way now. Instead of writing

<sidebar further-reading="pmpc"/>

we would just have to add

<sidebar>
  <module id="sidebar-news-pmpc"/>
</sidebar>

which achieves exactly the same, but without any new feature which has to be implemented, documented, explained, and maintained.

@max.mehl what do you think?

Actually I think that we can already do this in a very straightforward way now. Instead of writing ```xml <sidebar further-reading="pmpc"/> ``` we would just have to add ```xml <sidebar> <module id="sidebar-news-pmpc"/> </sidebar> ``` which achieves exactly the same, but without any new feature which has to be implemented, documented, explained, and maintained. @max.mehl what do you think?
Poster
Owner

Yes, I like that very much, especially because of the reduced complexity for users that you mentioned!

Yes, I like that very much, especially because of the reduced complexity for users that you mentioned!
Poster
Collaborator

Okay, so after fixing #1415 we just have to come up with some good specialized sidebars and start using them :-)

Okay, so after fixing #1415 we just have to come up with some good specialized sidebars and start using them :-)
max.mehl commented 1 month ago
Poster
Owner

This is also a solution for the wish to show related articles underneath news items. At our Web Meetup on 2021-01-19, we decided that automatic related news articles are problematic, but editors should have the possibility to define sidebars for certain activities that can be easily included.

One extra wish, optional: the sidebar should not show links to the displayed article. So if a news about ilovefs and the actual activity page share the same sidebar, the activity page should not link to itself in the sidebar.

This is also a solution for the wish to show related articles underneath news items. At our Web Meetup on 2021-01-19, we decided that automatic related news articles are problematic, but editors should have the possibility to define sidebars for certain activities that can be easily included. One extra wish, optional: the sidebar should not show links to the displayed article. So if a news about ilovefs and the actual activity page share the same sidebar, the activity page should not link to itself in the sidebar.
vincent commented 1 month ago
Poster
Collaborator

This is also a solution for the wish to show related articles underneath news items. At our Web Meetup on 2021-01-19, we decided that automatic related news articles are problematic, but editors should have the possibility to define sidebars for certain activities that can be easily included.

For related articles we could also use Doc2Vec (Gensim is LGPL v2.1). In a nutshell, this creates a vector of numbers of an arbitrary, fixed length that represents a document based on its content. A nice property of the algorithm is that documents that are close semantically (i.e. related) are close in the vector space, so one can use cosing similarity to get a list of related documents.

So we can compute the document vectors (I have no idea how long this would take) and then for each article automatically get a list of the closest pages. This can either be done at build time or at each page view with a service-side script.

Yes this approach is complicated and resources hungry but I wanted to share it anyway as it might still be useful.

> This is also a solution for the wish to show related articles underneath news items. At our Web Meetup on 2021-01-19, we decided that automatic related news articles are problematic, but editors should have the possibility to define sidebars for certain activities that can be easily included. For related articles we could also use [Doc2Vec](https://radimrehurek.com/gensim/models/doc2vec.html) (Gensim is LGPL v2.1). In a nutshell, this creates a vector of numbers of an arbitrary, fixed length that represents a document based on its content. A nice property of the algorithm is that documents that are close semantically (i.e. related) are close in the vector space, so one can use [cosing similarity](https://en.wikipedia.org/wiki/Cosine_similarity) to get a list of related documents. So we can compute the document vectors (I have no idea how long this would take) and then for each article automatically get a list of the closest pages. This can either be done at build time or at each page view with a service-side script. Yes this approach is complicated and resources hungry but I wanted to share it anyway as it might still be useful.
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Loading…
There is no content yet.