You may want to show recent entries made by a user on user's profile display page. For example, you can show recent blog posts on a user's profile page.
1. First, create a listing for blog posts using Application Manager.
2. Then go to query builder and create a query for this listing. Since it will be included on profile page you don't need to add any parameter to this query unless you have other exceptional situations.
On your query criteria, Set: Sort By: Entry Added Date, Reverse: Yes, Result/Page: 5 (or any number you want) Select your new listing from Show results on option
3. When you test this query you'll see the posts by all users. But when you include it on display page, only the currently displayed user's post will be seen, because this page will have a global query parameter on URL like "if_login={username}"
4. Include the template on this page as {TEMPLATE:blog/recent_entries.html}.
5. All set! When you publish you'll see the latest entries of this user.
Tags:
profile listing query builder
Related Articles:
Add a new comment
|
Send Comment