| Topic: | News block alternating fill | |
|---|---|---|
|
aperevolution
Freshman
Posts: 11 Posted: |
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? |
|
|
nate_02631
Professional
Posts: 3055 Posted: |
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... |
|
|
markwest
Moderator
Posts: 7720 Posted: |
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 |
|
|
aperevolution
Freshman
Posts: 11 Posted: |
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? | |
|
phpnut
Developer
Posts: 269 Posted: |
aperevolutionThanks, 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 |
|
|
aperevolution
Freshman
Posts: 11 Posted: |
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: |
|
|
aperevolution
Freshman
Posts: 11 Posted: |
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: |
|
|
phpnut
Developer
Posts: 269 Posted: |
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 |
|
|
aperevolution
Freshman
Posts: 11 Posted: |
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 |
|
|
phpnut
Developer
Posts: 269 Posted: |
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 |