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

Dizkus

Bottom
Block Stories and headlines main page
  • Posted: 25.06.2005, 19:55
     
    mamep
    rank:
    Freshman Freshman
    registered:
     June 2005
    Status:
    offline
    last visit:
    26.11.05
    Posts:
    20
    Is there any way to display stories using headlines only at the main page?
  • Posted: 25.06.2005, 20:57
     
    denisrf
    rank:
    Helper Helper
    registered:
     February 2005
    Status:
    offline
    last visit:
    17.11.08
    Posts:
    411
    The short answer is Yes, it can be done quit easily. How depends on what sort of theme you are using, Xanthia, AutoTheme or even legacy. say you are using and Xanthia theme, the News-index.htm might look something like this:

    Code

    <div class="post">
    <div class="title"><!--[$preformat.title]--></div>
        <div class="meta"><!--[$info.longdate]--></div>
       
        <div class="storycontent">
            <!--[$info.hometext]-->
        </div>
       
        <div class="feedback">
                <!--[$preformat.readmore]-->&nbsp;( <!--[$info.bodytext|count_words]--> <!--[pnml name=_WORDSMORE]--> )
        </div>
    </div>


    The only command that you need to do what you want is:

    Code

    <!--[$preformat.title]-->

    You can take the rest out.

    Auto theme is very similar if you are using that. If your using a legacy theme it might be better to just us an rss block to your own back end and put that on the page.

    Hope that helps a bit.
  • Posted: 25.06.2005, 21:35
     
    craigh
    rank:
    Professional Professional
    registered:
     June 2003
    Status:
    offline
    last visit:
    27.08.08
    Posts:
    1147

    Code

    <div class="post">
    <div class="title"><!--[$preformat.title]--></div>
    </div>

    I would suggest doing like that so that you have some formatting. ;)
  • Posted: 25.06.2005, 22:52
     
    mamep
    rank:
    Freshman Freshman
    registered:
     June 2005
    Status:
    offline
    last visit:
    26.11.05
    Posts:
    20
    thx guys but i'm using xG-Orange theme which is a xanthia theme but i can't find the News-article.html...
  • Posted: 25.06.2005, 23:14
     
    craigh
    rank:
    Professional Professional
    registered:
     June 2003
    Status:
    offline
    last visit:
    27.08.08
    Posts:
    1147
    the main page would use the News-index.htm template, not the News-article.htm template.
  • Posted: 25.06.2005, 23:29
     
    mamep
    rank:
    Freshman Freshman
    registered:
     June 2005
    Status:
    offline
    last visit:
    26.11.05
    Posts:
    20
    well i've tried to install a new theme and this is the result..

    http://forums.postnuke.com/index.php?name=PNphpBB2&file=viewtopic&p=167985#167985
    and i will search for a new theme because the last one seems to have a lot of problems :(
  • Posted: 25.06.2005, 23:34
     
    craigh
    rank:
    Professional Professional
    registered:
     June 2003
    Status:
    offline
    last visit:
    27.08.08
    Posts:
    1147
    I thought you were trying to edit your current theme... no need to go crazy! :)
  • Posted: 25.06.2005, 23:39
     
    mamep
    rank:
    Freshman Freshman
    registered:
     June 2005
    Status:
    offline
    last visit:
    26.11.05
    Posts:
    20
    i was trying to edit it but the theme needs a lot of things to be done..
    for example polls didn't worked for the current theme..
    whatever i will try to edit the current team... ;)

    thx for the help...
  • Posted: 25.06.2005, 23:42
     
    mamep
    rank:
    Freshman Freshman
    registered:
     June 2005
    Status:
    offline
    last visit:
    26.11.05
    Posts:
    20

    craigh

    the main page would use the News-index.htm template, not the News-article.htm template.

    News-index.htm not avaible...
    sorry for the second post
  • Posted: 26.06.2005, 00:08
     
    craigh
    rank:
    Professional Professional
    registered:
     June 2003
    Status:
    offline
    last visit:
    27.08.08
    Posts:
    1147
    create one. use the code below. call it "News-index.htm"

    Code

    <div class="post">
    <div class="title"><!--[$preformat.title]--></div>
    </div>


    BTW - this is a Xanthia theme, yes? and how about a link to the site?
  • Posted: 26.06.2005, 00:11
     
    mamep
    rank:
    Freshman Freshman
    registered:
     June 2005
    Status:
    offline
    last visit:
    26.11.05
    Posts:
    20
    the site is at a local lan and can be accessed using a vpn connection..
    it's a xanthia theme..
    i will try to "play" with the news-index.html
    and is there any available guide how blocks work at xanthia theme engine?
  • Posted: 27.06.2005, 19:55
     
    mamep
    rank:
    Freshman Freshman
    registered:
     June 2005
    Status:
    offline
    last visit:
    26.11.05
    Posts:
    20
    so installed new xanthia theme and it's working but it's not the one i want..
    i actually wanted to display in main page the topics
    example :
    Topic 1 : Topic 2:
    Headline1 headline1
    headline2 headline2
    headline3 headline3
    headline4 headline4
    headline5 headline5

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula