-
AuthorPosts
-
January 23, 2010 at 12:00 pm #147933
Hello,
I have a section XX set-up with six categories A, B, C, D, E, F. (see pic 1)
Janews2 does display them like this (see pic 2).What I want to achieve is this (see pic 3), means category A, D and E should not be shown from janews2, also in the user settings block only B, C, F should be visible for selection (also in right order). I do not want to change the category order in the backend.
Question 1:
How can categories be hidden from being displayed in the Janews2 article block?Question 2:
How can categories be hidden from being displayed in the Janews2 “user settings” block?Question 3:
See pic2: The categories are not shown in the right order. How can this be realized?Many thanks for your support !
Kind regards
d026111- Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 5, 2010 at 4:09 am #331616Dear guy!
Sorry, At the moment, i only help you to resolve the issue: The categories are not shown in the right order. How can this be realized?
1) please open the file: modules/ja_news2/helper.php
and try to find codes at line : 420:
[PHP] $query = “SELECT `id`, `title`, `description`, CASE WHEN CHAR_LENGTH(`alias`) THEN CONCAT_WS(“:”, `id`, `alias`) ELSE `id` END as `slug` FROM `#__categories` s WHERE published = 1 and section=” . ( int ) $sid . $where[/PHP]
Replace:
[PHP] $query = “SELECT `id`, `title`, `description`, CASE WHEN CHAR_LENGTH(`alias`) THEN CONCAT_WS(“:”, `id`, `alias`) ELSE `id` END as `slug` FROM `#__categories` s WHERE published = 1 and section=” . ( int ) $sid . $where .’ ORDER BY s.ordering ASC’;[/PHP]1 user says Thank You to Saguaros for this useful post
February 5, 2010 at 12:43 pm #331688I have a similar question about news2.
I have a hierarchy like this:
Section: Latest News
Category: World, Local, Sport, Business, Travel.I want to create a new category called “Shares” and put it under “Business”. Ja News2 pipes in the articles associated with the “Shares” category into a category called “Shares” on the front page. I’d like to have the category called “Shares” not display on the front page. Is there any way of enabling that?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 9, 2010 at 5:08 am #332138may be the thread ‘ll be a solution for: http://www.joomlart.com/forums/topic/ja-news-2-multiple-rows/
AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 3 voices, and was last updated by Saguaros 14 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum