Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • komang Friend
    #137238

    Can anyone inform me how to set Ja_News FrontPage into Article ID ?

    thanks before

    Anonymous Moderator
    #287078

    Hi komang,

    to display an article into the ja news front page, you only select Front Page radio to yes in the edit article page.

    komang Friend
    #287144

    hi thank for your reply.

    but its not what i wan.
    I wan to this module (ja_news FP) can publish filtered by Content ID.. or by Category/Section ID … like as Ja News module.

    thanks again

    Anonymous Moderator
    #287181

    It is possible.
    Open helper.php file in modulesmod_janews_fp folder, at about line 247, find following script:

    [PHP]$query = “SELECT a.*,”
    . “n CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(‘:’, a.id, a.alias) ELSE a.id END as slug,”
    . “n CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(‘:’, cc.id, cc.alias) ELSE cc.id END as catslug”
    . “n FROM #__content AS a”
    . “n INNER JOIN #__content_frontpage AS f ON f.content_id = a.id”
    . “n INNER JOIN #__categories AS cc ON cc.id = a.catid”
    . “n WHERE ( a.state = 1 AND a.sectionid > 0 ”
    . ‘ AND (a.publish_up = ‘.$db->Quote($nullDate).’ OR a.publish_up <= ‘.$db->Quote($now).’ ) ‘
    . ‘ AND (a.publish_down = ‘.$db->Quote($nullDate).’ OR a.publish_down >= ‘.$db->Quote($now).’ )’
    . ($noauth ? ‘ AND a.access <= ‘ .(int) $aid. ‘ AND cc.access <= ‘ .(int) $aid : ”)
    . “n AND cc.published = 1 )”
    . “n ORDER BY f.ordering ASC”;[/PHP]

    and change to your requirement.
    I am sorry for not being of much help in this case.

    komang Friend
    #287373

    Wonderful, many thanks for your great Support. Its working fine now.

    I love JA..:)

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  komang 15 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum