Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Problem with no News on 1st page
  • Posted: 22.05.2004, 07:56
     
    ROCOAFZ
    rank:
    Helper Helper
    registered:
     December 2002
    Status:
    offline
    last visit:
    30.11.08
    Posts:
    164

    Quote

    You can create a block with the story titles (including the date).

    The amount of stories on the front page can be added as followed:

    save a backup copy of /modules/News/funcs.php

    edit /modules/News/funcs.php

    find the line:

    function getArticles($where, $order, $limit, $startnum=0) {

    Add $limit=1; (numer 1 is the amount of stories) after that line so that it looks like this:

    function getArticles($where, $order, $limit, $startnum=0) {
    $limit=1;

    Good luck


    I tried this and it causes one issue for me... you can't sort by topics or make any calls to the topic sections as they won't display any news :( any other way to do this??

    BTW you can see it on my site at http://www.attackforcez.com

    direct link a topic is ... http://www.attackfor…ndex&catid=&topic=3
  • Posted: 24.05.2004, 18:05
     
    ROCOAFZ
    rank:
    Helper Helper
    registered:
     December 2002
    Status:
    offline
    last visit:
    30.11.08
    Posts:
    164
    Just a friendly bump... is there any other way i can display no news on the front page? i am using a few blocks for summaries of the news, but if i do the above to disable news on the front page (which it does) I cannot sort news by topics... it won't display them. i used a $limit=0
  • Posted: 24.05.2004, 19:18
     
    larsneo
    rank:
    Software Foundation Software Foundation
    registered:
     December 1969
    Status:
    offline
    last visit:
    15.11.08
    Posts:
    4481
    don't know if i get you right - but an easy way might be to setup a 'blank' module as startpage. simply add /modules/blank/pnuser.php

    Code

    <?php

    $GLOBALS['index']=1;

    function blank_user_main()
    {
        return true;
    }

    ?>

    and set 'blank' as startpage in administration-settings

    --
    regards from germany
    ..::[Zikula Application Framework]::.. ..::[SEO-Blog]::.. ..::[CMS Sicherheit]::..
  • Posted: 25.05.2004, 03:04
     
    ROCOAFZ
    rank:
    Helper Helper
    registered:
     December 2002
    Status:
    offline
    last visit:
    30.11.08
    Posts:
    164
    ok i tried that here is what i have found. Somewhere in my post nuke the news is hardlocked to the front page. Changing the option in the settings to blank or anything else does not effect it... any ideas where i am missing this?

    Basically i am trying to shoot for how my site looks now using the $limit=0 to make sure stories are not shown on the homepage, but only the one line blocks are. the problem i have with using this is that if a user wants to see a related article and clicks on the topic after clicking on the article it does not display them. if i remove this line i get 5 more stories after my center block making my site Extremely long.

    Never mind my above it was changing but my cache on my local machine was not. if i set it to the blank i get a failed to load module. i Still want my center block also, i noticed other modules take it away, basically i just don't want the news on the front page.
  • Posted: 25.05.2004, 03:59
     
    ROCOAFZ
    rank:
    Helper Helper
    registered:
     December 2002
    Status:
    offline
    last visit:
    30.11.08
    Posts:
    164
    Update, i fixed it... had to make some changes to the users and admin to default 0 on the homepage and followed nate's suggestion to update the database for the existing users. Works great now, and i can click on the topic and it will display news for that topic with not problem. :D thanks for you help though!

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula