Reputation: 45
When a user visits mysite.com/articles, they see I a lists several articles.
How can I include this list into another page, e.g. the home page, but so that I can still add extra content to the home page? This list of articles will only appear on those 2 pages, so a custom tag seems a bit like overkill.
Thanks
Upvotes: 1
Views: 274
Reputation: 799470
Refactor the list of articles into a separate function, then call that function from both views.
But a custom tag really is the proper solution for this.
Upvotes: 2