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

Dizkus

Bottom
News block alternating fill
  • Posted: 19.03.2004, 04:41
     
    aperevolution
    rank:
    Freshman Freshman
    registered:
     January 2004
    Status:
    offline
    last visit:
    20.03.04
    Posts:
    11
    I have been searching for a solution for a while. I have heard it mentioned that xanthia could do alternating fills but have yet to see this work for blocks.

    Does anyone know how I can do alternating colours for blocks without having to change the core code?
  • Posted: 20.03.2004, 00:17
     
    nate_02631
    rank:
    Professional Professional
    registered:
     September 2003
    Status:
    offline
    last visit:
    11.04.08
    Posts:
    3055
    It's not Xanthia, but the theme code here might give you some ideas:
    HOW TO: Alternating …e news block tricks

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • Posted: 20.03.2004, 03:50
     
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    I can't give you the specific code to do it but to implement such a feature in a Xanthia (Smarty) way then look at the cycle Smarty function.

    -Mark
  • Posted: 20.03.2004, 07:08
     
    aperevolution
    rank:
    Freshman Freshman
    registered:
     January 2004
    Status:
    offline
    last visit:
    20.03.04
    Posts:
    11
    Thanks, that is part of what I was looking for, but I still need a way to make the news items change colour. Is there a way to edit the appearance of the actual items in the block rather than jusr the block itself?
  • Posted: 20.03.2004, 09:13
     
    phpnut
    rank:
    Developer Developer
    registered:
     October 2002
    Status:
    offline
    last visit:
    24.03.06
    Posts:
    269

    aperevolution

    Thanks, that is part of what I was looking for, but I still need a way to make the news items change colour. Is there a way to edit the appearance of the actual items in the block rather than jusr the block itself?


    There is code in Xanthia to load a different template for news topics.

    In your Themename/templates directory add a news subfolder.
    Create a template with the topic name.
    topicname.htm
    Xanthia will use this template if it is there, if not it will use default.

    Use the News-article.htm and News-article2.htm as a reference. You can change how each "news article block" looks by doing this and also what is displayed in the "block".

    Hope this helps

    --
    Larry E. Masters
  • Posted: 20.03.2004, 10:27
     
    aperevolution
    rank:
    Freshman Freshman
    registered:
     January 2004
    Status:
    offline
    last visit:
    20.03.04
    Posts:
    11
    As far as I can figure the theme files I'm dealing with will only let me change the look of an article in full mode or summary mode. What I need to do is change the look of what the articles look like when viewed on a block. You can see the site at http://www.project3media.com/pn/

    this is the content of my news-article.htm but it does not effect the appearance of the news block:








    *







     
       




  • Posted: 20.03.2004, 10:28
     
    aperevolution
    rank:
    Freshman Freshman
    registered:
     January 2004
    Status:
    offline
    last visit:
    20.03.04
    Posts:
    11
    As far as I can figure the theme files I'm dealing with will only let me change the look of an article in full mode or summary mode. What I need to do is change the look of what the articles look like when viewed on a block. You can see the site at http://www.project3media.com/pn/

    this is the content of my news-article.htm but it does not effect the appearance of the news block:








    *







     
       




  • Posted: 20.03.2004, 13:54
     
    phpnut
    rank:
    Developer Developer
    registered:
     October 2002
    Status:
    offline
    last visit:
    24.03.06
    Posts:
    269
    Can you be a little more specific then? What do you mean by block?

    It you do what I posted above you will be able to alternate the way the main news page looks.
    If you want to display X topic with the image on the right you can do that.
    If you want to display Y topic without the links to print .

    Need to know what you are wanting to do and please use details. I know what this system is capable of but your question is a little vague I think.

    Did you read this?
    http://forums.postnu…e=viewtopic&t=20270

    --
    Larry E. Masters
  • Posted: 20.03.2004, 21:44
     
    aperevolution
    rank:
    Freshman Freshman
    registered:
     January 2004
    Status:
    offline
    last visit:
    20.03.04
    Posts:
    11
    From my understanding what you are talking about is the actual display of the new module. What I want to do is change the appearance of the module when it is in the news block. My block looks like this:

    Articles

    · Test Story (Mar 19, 2004)
    · Newstoday part 2 (Mar 12, 2004)


    and I can find no way to change that. I hope that is more clear, and thanks for your help
  • Posted: 20.03.2004, 21:56
     
    phpnut
    rank:
    Developer Developer
    registered:
     October 2002
    Status:
    offline
    last visit:
    24.03.06
    Posts:
    269
    Ok I see what you are doing now.
    I thought you meant the news articles listed in the main area not the article block itself.

    The only way you can change this is the edit the article block itself. Until PN .8 come out and all core content is templated you will have to hack core files to change the actual output.

    --
    Larry E. Masters

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula