-
AuthorPosts
-
August 14, 2009 at 2:51 pm #143468
hi!
i have ja_news_fp module but i want only one section appear in frontend.
how you do this ?Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 17, 2009 at 8:55 pm #314581Hello joaomeireles!
The JA News Front Page is a module using for organize and display articles from the Front Page Component,
Now You try to login administrator sys, then go to content menu and go to Front Page Manager, You can see all articles which were actived “Front Page” status, those articles are from categories and sections.
If you want to display articles from one section, you only set active for “Front Page” status for all articles of this section and other articles you set inactive.
February 21, 2010 at 8:49 pm #333309Question: I would only like to have the mod_janews_fp display articles from a specific section basically the same 9 articles from 1 section.
However, I tried using the “Front Page Manager” to unpublish the selected article sections and this then removes the articles from the mod_janews2 module.
It looks like both of these modules use the Front Page Manager to feature these articles so I could continually update the Front Page Manager order to show the 9 articles always 1-9 but is there a better way to show the news_fp from only a particular sections.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 24, 2010 at 4:44 am #333651Yes
Please open the file : modulesmod_janews_fpmod_janews_fp.xml and find codes:<param name=”hiddenClasses” type=”textarea” default=”” rows=”10″ cols=”30″ label=”HIDDEN CLASSES” description=”HIDDEN CLASSES DESC” />
you replace:
<param name=”hiddenClasses” type=”textarea” default=”” rows=”10″ cols=”30″ label=”HIDDEN CLASSES” description=”HIDDEN CLASSES DESC” />
<param name=”section” type=”section” default=”0″ label=”SELECT SECTION” description=”SELECT SECTION DESC” />2) Open the file: modulesmod_janews_fpmod_janews_fp.php and find codes:
[PHP] $rows = modJANewsHelperFP::getHLNews ( $numberofheadlinenews );[/PHP]replace:
[PHP]
if( $sid = (int) $params->get(‘section’,”) ) {
$rows = modJANewsHelperFP::getList (0, $sid, $numberofheadlinenews, ‘created’ );
} else {
$rows = modJANewsHelperFP::getHLNews ( $numberofheadlinenews );
}
[/PHP]after done, the module ‘ll work as follow:
1) if you do not choose a section, the module ‘ll display artciles from the list of front-page
2) if you choose one, the module ”ll only display the articles of this sectionsgood luck
February 27, 2010 at 1:20 am #334070That worked out great. Thank you.
November 10, 2010 at 3:01 pm #362307I am using teline III v2, and would like to accomplish the same thing. I want the content-top to only show the latest articles from a certain section. I tried the above and it didn’t work for me. Any other suggestions?
Thanks
sviet Friendsviet
- Join date:
- November 2010
- Posts:
- 14
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
January 22, 2011 at 6:24 am #373127<blockquote>ja_news_fp section/categorie
hi!
i have ja_news_fp module but i want only one section appear in frontend.
how you do this ?</blockquote>I have the same problem with JA Tellina IV but can’t find recomended codes. Please help! :((
-
AuthorPosts
This topic contains 7 replies, has 5 voices, and was last updated by sviet 13 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum