Now I am designing a website. The language is PHP. The article page has a related information column that displays articles related to the current article content. What is the design idea?
Now I am designing a website. The language is PHP. The article page has a related information column that displays articles related to the current article content. What is the design idea?
The current article should have tags or keywords, and then display related articles with similar tags or keywords
Design a related field in the background (in the article data table), associate B, C, and D articles in article A, and write the BCD ID to this field through serialization or comma separation.
When accessed For article A, just take out the BCD article.
You can also use the same keywords to associate as mentioned above, that is, get a list of all the same or similar articles;
However, when adding a new association field, the degree of customization needs to be Higher