Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Documentation and How To's:
PJ5 Latest News
rockas



Joined: 15 Mar 2007
Posts: 255

Posted: 08/17/13 03:45 
How to make the Latest News in PJ5 to be show like 3 posts or 2 etc on News Page


_________________
Do not interrupt me when i am talking to myself!
Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 08/17/13 10:01 
You'll want to find the jrCore_list for the site news and change the pagebreak to what you want it to show... you'll find the code in the skins index.tpl file and the site_news.tpl file.

Hope this helps,
Douglas


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
rockas



Joined: 15 Mar 2007
Posts: 255

Posted: 08/25/13 09:29 

Douglas:
You'll want to find the jrCore_list for the site news and change the pagebreak to what you want it to show... you'll find the code in the skins index.tpl file and the site_news.tpl file.

Hope this helps,
Douglas


Hi Douglas i didnt understant what u mean.. the code of latest news is

Code

   {* LATEST NEWS *}
<a name="newslist" id="newslist"></a>
<div id="news_listing"></div>


it actualy shows every single post i put under Latest News Category.. what i wanna do is to shows only the 1 latest... like Exclusive News and featured News Categories..


_________________
Do not interrupt me when i am talking to myself!
Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 08/25/13 09:40 
The news entries are put into the slider - the jrCore_list above the part you posted is where you need to change it - i.e. change this:


Code

{jrCore_list module="jrBlog" order_by="_created desc" limit="10" search1="_profile_id = `$_conf.jrProJam_blog_profile`" search2="blog_category = latest" template="news_slider.tpl"}


To this:


Code

{jrCore_list module="jrBlog" order_by="_created desc" limit="1" search1="_profile_id = `$_conf.jrProJam_blog_profile`" template="news_slider.tpl"}


Note that we:

- change limit="10" to limit="1" (set it to however many blog entries you want)
- removed the search2="blog_category = latest" part - that is what is restricting the results to only the "latest" blog category.

Hope this helps!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 08/26/13 03:47 

rockas:

Douglas:
You'll want to find the jrCore_list for the site news and change the pagebreak to what you want it to show... you'll find the code in the skins index.tpl file and the site_news.tpl file.

Hope this helps,
Douglas


Hi Douglas i didnt understant what u mean.. the code of latest news is

Code

   {* LATEST NEWS *}
<a name="newslist" id="newslist"></a>
<div id="news_listing"></div>


it actualy shows every single post i put under Latest News Category.. what i wanna do is to shows only the 1 latest... like Exclusive News and featured News Categories..


Sorry, I thought you were referring to the index news tab... you'll find the jrCore_list function in the skins/jrProjam/news_list.tpl file.

Unless you are referring to the news slider, in which case you'll want to do as Brian has suggested.

Hope this helps,
Douglas


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
User Documentation and How To's

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.