Questions tagged [related-content]
69 questions
1
vote
1 answer
Django: Displaying set of related data to current user
I want to display data from my database in given way:
User
set of emails
At this moment I have something like that:
models.py
class Person(models.Model):
name = models.CharField(max_length=50)
surname = models.CharField(max_length=50)
…

Frendom
- 508
- 6
- 24
1
vote
1 answer
Is there any way to pass value to custom context_processor function from view?
I am trying to show related posts, relatedness is based on category.
Post model has a foreign key to category model.
Is there any better way of doing this.
Currently I am sending category_name from single_post_detail_view using the session to custom…

Anshul M
- 99
- 1
- 12
1
vote
2 answers
Finding related texts(correlation between two texts)
I'm trying to find similar articles in database via correlation.
So i split text in array of words, then delete frequently used words (articles,pronouns and so on), then compare two text with pearson coefficient function. For some text it's works…

x2.
- 9,554
- 6
- 41
- 62
1
vote
3 answers
Rails display Related or Similar posts from category on the post show page
I have Post and category models
Post
belongs_to :category
Category
has_many :posts
On a category show page, I’m able to display a list of all posts which belongs to this category by
<% Post.where(category_id: @category.id).each do |post|…

Charlie
- 236
- 2
- 13
1
vote
1 answer
Remove WooCommerce custom related product tab if there are no related products
In WooCommerce I ma using "WPB WooCommerce Related Products Slider" and "Custom Related Products for WooCommerce" third party plugins.
With the code below I am adding a custom tab to display related products:
remove_action(…

arz
- 49
- 1
- 10
1
vote
1 answer
How to find related post from title and content - PHP and Mysqli
I am trying to fetch related contents from Mysqli DB. It is easy to fetch by Like %%, but that doesn't output required related contents.
I want to have related post, similar to title and content.
Structure: title - text and content - long text
Here…

Dilip Kumar
- 63
- 10
1
vote
1 answer
SQLite How to get row where value is related to max with group by
I am using SQLite3 in PHP 5.5.9
This is the query I am using
SELECT ForignKey_A, Location_ID, TimeStamp
FROM Events
GROUP BY ForignKey_A
ORDER BY TimeStamp
I want to get Location_ID on the rows where TimeStamp is at it's min and/or max value in…

GM-Script-Writer-62850
- 373
- 4
- 12
1
vote
1 answer
Finding Related Topics using Google Knowledge Graph API
I'm currently working on a behavioral targeting application and I need a considerably large keyword database/tool/provider that enables applications to reach to the similar keywords via given keyword for my app. I've recently found that Freebase,…

bkaankuguoglu
- 1,192
- 1
- 13
- 33
1
vote
1 answer
3rd party tool that can generate a list related articles for a japanese-language site
I run a site with a large number of news articles. I'm looking for a 3rd party tool(or widget) that, when placed on an article page, would generate a list of related articles within the same site.
So my requirements are:
Returns a list of links to…

sthg
- 1,137
- 3
- 13
- 32
1
vote
1 answer
HTML5 semantics: Similar articles, inside article tag
When you are reading blog post, on almost all blogs, there is a "sidebar" with similar articles, latest comments, etc. In the layout I'm going to implement, I've got a huge article header (with photo, and trailer) with the 100% width. After that,…

Jacek Kowalewski
- 2,761
- 2
- 23
- 36
1
vote
2 answers
Related data not showing asp.net c#
After reading this tutorial http://www.asp.net/mvc/overview/getting-started/getting-started-with-ef-using-mvc/reading-related-data-with-the-entity-framework-in-an-asp-net-mvc-application I have created some models, controllers and views.
The…

Johan Vergeer
- 5,208
- 10
- 48
- 105
1
vote
1 answer
Yii : Error 500 Trying to get property of non-object
I have problem ,
always get Error 500 "Trying to get property of non Object" while i try to show Notrans_FPB in my Cgridview, can anyone help me ? whats wrong with my code ,
Thanks ..
This is my Controller "DafTimbangBahan"
public function…

Irvan Pratama
- 13
- 1
- 5
1
vote
1 answer
Python/Django Iterate ManyToMany Related Fields
I need some help with an issue.
I have three models, Reference, Relation ans Circuit. Relation is an inline of the first one. Circuit and Relation are related. What I have to do is:
- I'm in Reference 1 and I have selected some Circuits inside my…

user3350963
- 11
- 3
1
vote
1 answer
Correct Schema.org itemtype for the related content
I am defining the itemtype for reviews as follows:
Which microdata…

Edward Ruchevits
- 6,411
- 12
- 51
- 86
0
votes
1 answer
Is there any plugins to show related links with respectie of content in Rails
Is there any plugins to find the realted links related to the content.
For example in our stack oveflow the question page shows the related questions.
I just want to make like this for my content how to do it.
Please suggest any plugins or gems…

Ramanavel
- 408
- 8
- 19