views:

22

answers:

1

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

+1  A: 

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.

Ignacio Vazquez-Abrams
ok thanks. i hadn't thought of a separate function.
PeterP