test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • d026111 Friend
    #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
    d026111

    Saguaros Moderator
    #328646

    Hello 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.

    d026111 Friend
    #328803

    Hello,
    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


    1. pic1
    2. pic2
    3. pic3
Viewing 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