-
AuthorPosts
-
January 7, 2010 at 6:00 pm #147411
Hello,
I am using Teline III with janews2 and joomla 1.5.15:I have a section XX with six categories A, B, C, D, E, F (in this order).
Via janews2 I would like to show section XX, however only B, C and F category should be visible to the user.
Is this customizable somehow?
Many thanks for your help!
Kind regards
d026111Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 8, 2010 at 7:42 am #328646Hello guy!
Please open the file : /modules/ja_news2/helper.php and find function “function loadCategories($sid) {“, try to find the sql query:
[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]=, this change allow the ja news 2 displays categories belong to the theirs ordering.
January 9, 2010 at 12:28 pm #328803Hello,
Many thanks for your answer … However it does not fully answer my question yet.
Let me explain it in more detail: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 article block?
Question 2:
- How can categories be hidden from being displayed in the “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- AuthorPostsViewing 3 posts - 1 through 3 (of 3 total)
This topic contains 3 replies, has 2 voices, and was last updated by d026111 15 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum