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

Creating a Tag-Like Widget for articles #355

Closed
cyberandy opened this issue Sep 29, 2016 · 7 comments
Closed

Creating a Tag-Like Widget for articles #355

cyberandy opened this issue Sep 29, 2016 · 7 comments

Comments

@cyberandy
Copy link
Member

@cyberandy cyberandy commented Sep 29, 2016

As of today we provide three means of content discovery for the user: Navigator, Faceted Search and Chord.

Following the initial request of a user we shall considering adding a simple front-end widget to expose all the entities of an article as if they were tags (eventually this same widget could be used site-wide in the side navigation bar).

While for the first release it would be enough to display only entities directly correlated to an article - in future releases we could provide (as done with the chord) a way to get deeper in the archive:

  1. show me all entities of this article >
  2. show me all entities of this article and all the entities connected with these entities >
  3. show me all entities of this article and all entities connected with other articles that share at least 1 or 2 entities with this article

image

@wanbinkimoon wanbinkimoon self-assigned this Sep 29, 2016
@cyberandy cyberandy added this to the 3.11 milestone Feb 2, 2017
@ziodave ziodave assigned markkap and unassigned wanbinkimoon Feb 2, 2017
@markkap

This comment has been minimized.

Copy link
Contributor

@markkap markkap commented Feb 3, 2017

Per discussion,we will start with a sort of duplicate of the tag cloud widget which will use the same html structure of the tag cloud widget and the same classes, in order to have a default styling by the theme and add to it a WordLift specific class to enable themers to add specific styling to it.

The widget will display only on post and entity pages and will display the entities relevant to that specific post and entity.

@markkap

This comment has been minimized.

Copy link
Contributor

@markkap markkap commented Feb 22, 2017

@cyberandy I started to dig into it, and seems like if we want to have a "tag cloud" like widget, we need some definition of weight, which might be something like which entity is more connected I guess or some other criteria.

The other option is to go more into the direction of "recent posts" type of widgets. I guess it depends what is the default styling we want it to be assigned by the themes.

@cyberandy

This comment has been minimized.

Copy link
Member Author

@cyberandy cyberandy commented Feb 22, 2017

The best option would be to define some sort of entity relatedness by combining:

  • number of connections that an entity has with articles
  • number of connections the an entity has with other entities

Both of these parameters can also be used in the entity rating algorithm (see #433).
Would that work for you in this case?

@markkap

This comment has been minimized.

Copy link
Contributor

@markkap markkap commented Feb 23, 2017

sure, will ask @ziodave for pointers where to get the info

@ziodave

This comment has been minimized.

Copy link
Member

@ziodave ziodave commented Feb 26, 2017

@markkap here are the two calls to calculate number of connections...

  • ...with entities: wl_core_get_related_entity_ids( $id, array( 'status' => 'publish' ) ),
  • ...with posts: wl_core_get_related_posts( $id, array( 'status' => 'publish' ) ).
markkap added a commit that referenced this issue Feb 27, 2017
@markkap

This comment has been minimized.

Copy link
Contributor

@markkap markkap commented Feb 27, 2017

The commit is very simple, lets you just configure the title of the widget. Tested with 2017 theme and looks ok, but should be tested with something that has more entities and content.

ziodave added a commit that referenced this issue Feb 28, 2017
@ziodave

This comment has been minimized.

Copy link
Member

@ziodave ziodave commented Feb 28, 2017

Still open:

  • Unit Tests,
  • Texts/Translations (we can review them during QA).
markkap added a commit that referenced this issue Mar 4, 2017
ziodave added a commit that referenced this issue Mar 5, 2017
@ziodave ziodave closed this Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.