Add Multiple Profile IDs to News Section?

alt=
Ekwe
@ekwe
10 years ago
212 posts
I have about 10 authors, how do I get their news to display in the news section? I only see a spot to put 1 id in the skin settings.

Thanks for the help
updated by @ekwe: 05/09/14 03:40:03AM
michael
@michael
10 years ago
7,714 posts
This is what you want:

"jrCore_list"
http://www.jamroom.net/the-jamroom-network/documentation/development/89/jrcore-list

Something like:
{jrCore_list module="jrBlog" limit="10"}
douglas
@douglas
10 years ago
2,790 posts
Ekwe:
I have about 10 authors, how do I get their news to display in the news section? I only see a spot to put 1 id in the skin settings.

Thanks for the help

Can you let us know which skin your using?

Thanks! :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
douglas
@douglas
10 years ago
2,790 posts
I see what skin your using from your other post.

So, in your skins/ProJam/news_list.tpl, at the bottom of the file is the jrCore_list function for that page. It looks like this:

{jrCore_list module="jrBlog" order_by="_created desc" search1="blog_category = `$news_category`" search2="_user_id = 1" template=$latest_news_template pagebreak="4" page=$_post.p}

The user id is hard coded as the admin id. If you want multiple id's, change it to something like this:

{jrCore_list module="jrBlog" order_by="_created desc" search1="blog_category = `$news_category`" search2="_user_id in 1,2,3" template=$latest_news_template pagebreak="4" page=$_post.p}

Just separate the user id's with a comma and change the "=" to "in"

You'll also want to make sure the other users use the correct categories for the news page.

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

Tags