Questions tagged [related-content]

69 questions
0
votes
1 answer

Related Articles In Ruby on Rails

I am trying to implement a related article on the user current page. I am not using sunspot or anything like that. I have tried this code by Uchenna Okafor but i get an error. In the model i have #Related Search def self.related_search(query,…
Benjamin
  • 2,108
  • 2
  • 26
  • 46
0
votes
1 answer

Django Admin one field required related on other field

I am using Django admin to save models my model is like bellow: class PurchaseItem(models.Model): product=models.ForeignKey("products.Product",on_delete=models.CASCADE,blank=True,null=True) …
0
votes
0 answers

Find out related images

I am looking for the way to get related images like Pinterest search. I have searched a lot. Most of the solution is to compare image pixel by pixel something like this. What I want is to compare the image if comparing result is more than 75% I want…
Saad Khan
  • 201
  • 2
  • 10
0
votes
2 answers

Power BI - Compare Measures over Period

I'm currently working on a PowerBI script, which gives me headaches. I introduced a measurement, which shows the amount of sales for every company in a corporation. Which basically looks like this. MarketShare = DIVIDE( CALCULATE( …
0
votes
1 answer

HyperlinkedModelSerializer custom lookup_field to related_model

i have the below config and i would like to map the url field in UserProfileView to the related user's username instead of the default pk field currently the url looks likes below, appreciate any help { "user": 23, "bio": "My bio", …
0
votes
1 answer

Elastic Search: Get related content by tags similarity

We have an articles index. One of the article properties is "tags" that has an array of numbers as value, something like [131, 111, 113]. So I need to make a query where I can find articles related to another article by its tags values. This query…
George Cscnt
  • 681
  • 3
  • 7
  • 13
0
votes
1 answer

How does the desktop version of Wikipedia derive its related articles?

On the bottom of the mobile version of the Wikipedia article for mule deer, three related articles are listed, with a picture next to each of them. On the other hand, the desktop version does not list any related articles, which means that the…
HelloGoodbye
  • 3,624
  • 8
  • 42
  • 57
0
votes
2 answers

Show Related Data in View Yii 2

I'm new in Yii 2, and I'm creating an inventory system for the library of my school, but I had a problem. First, I have a relation like this: I want to show all the adqs (a unique number for each book - that way we don't need to capture the book…
0
votes
2 answers

Shopify Custom Related Product in Cart Ajax

I am trying to edit the ajax-cart-template.liquid to achieve so each item will show the tags.. I am trying to get everytime user add item to cart, we show an item related to it based on the tags. and I used {% for item in cart.items %}{% for tag in…
Boby
  • 63
  • 1
  • 2
  • 11
0
votes
1 answer

DjangoRestFramework serializer filter and limit related

Thats my models: class Org: name = CharField() owner = ForeignKey(User) class Cafe: name = CharField() org = ForeignKey(Org) class Product: name = CharField() class Assortment: cafe = ForeignKey(Cafe) product =…
0
votes
2 answers

Hide related product tab for specific products in Woocommerce

I saw this link: Unset product tabs for specific product categories in woocommerce I want to hide related product tabs for specific products. I use this code: remove_action( 'woocommerce_after_single_product_summary', 'wpb_wrps_related_products',22…
arz
  • 49
  • 1
  • 10
0
votes
2 answers

Creating a related articles query in PHP

I'm trying to make something similar to "related articles". This is what I have. $query = "SELECT * FROM posts WHERE post_tags LIKE '%$post_tags%'"; I want it to 'select all from post where the post tags are similar to the current post's tags'.…
0
votes
1 answer

Searching related stories based on tag on priority basis

I need to search related stories based on the tags of a story.. Say I have a story with 4 tags so my related story logic will be Step 1: Search all 4 Tags under a story >> Display story Step 2: Search for 3 Tags creating different permutation & …
mridul4c
  • 8,197
  • 3
  • 19
  • 28
0
votes
0 answers

Related post by category, but only one

I'm using this code to display related post by category and it works fine if there is only one category. But in the case of multiple categories I only want to use one, the first one. How do I limit this to just one category? function…
0
votes
1 answer

Mysql multi-table / multi-entity related content query

I've got the following tables: magazine_tags news_tags page_tags content_tags faq_tags They all have exactly the same structure: uid_local - id of the entity uid_foreign - id of the tag Each one of them maps to a Model in PHP. I need to get…
Andrei Serdeliuc ॐ
  • 5,828
  • 5
  • 39
  • 66