Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-12 02:45:27

bauhouse
Archived Plugin Author
From: Abbotsford, BC Canada
Registered: 2004-06-29
Posts: 68
Website

Non-profit: riceraiser.org

This site was thrown together quickly last year. Finally, I have finished the design so that it is presentable.

The Rice Raiser: www.riceraiser.org

One complaint might be that the code suffers from divitis, but the xhtml and css validate, so I’m happy.

One note about the section menus, I have been able to generate the article lists dynamically but still be able to put them in the order I wanted plus highlight the active menu item all without using a plugin. This is accomplished by using a custom field named “sort” with the following code in the page template:
<code><div id=“sectionNav”>
<h2><txp:section title=“1” link=“1” /></h2>
<ul class=“article<txp:article limit=“1” form=“custom_sort” sortby=“custom_1” sortdir=“asc” />”>
<txp:article_custom section=“news” form=“list” sortby=“custom_1” sortdir=“asc” />
</ul>
</div><!— END sectionNav —>
</code>

The “custom_sort” form is an article form with the following code:
<code><txp:custom_field name=“sort” /></code>

The “list” form is an article form with the following code:
<code><li class=“menu<txp:custom_field name=“sort” />”><txp:permlink><txp:title /></txp:permlink></li></code>

Then, in the CSS, I just need to use the following code:
<code>
#sectionNav ul.article01 li.menu01 a, #sectionNav ul.article02 li.menu02 a, #sectionNav ul.article03 li.menu03 a, #sectionNav ul.article04 li.menu04 a, #sectionNav ul.article05 li.menu05 a, #sectionNav ul.article06 li.menu06 a, #sectionNav ul.article07 li.menu07 a, #sectionNav ul.article08 li.menu08 a {
color:#900;
background:url(i/sectionmenu_active.jpg) right top repeat-y;
}
</code>

If it was possible to set txp:article_custom to recognize the current section, I could develop most of the site in this manner using one page template.

Last edited by bauhouse (2006-01-12 03:05:22)

Offline

#2 2006-01-12 03:28:45

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: Non-profit: riceraiser.org

Very nicely executed. Well worth the wait :) Also nice reveal on the section menu forms. It would probably be a great tip to ad to the tags section of the forum.

But really the site looks marvelous. Pat yourself on the shoulder.

Offline

#3 2006-01-12 03:46:23

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: Non-profit: riceraiser.org

> bauhouse wrote:

> If it was possible to set txp:article_custom to recognize the current section, I could develop most of the site in this manner using one page template.

chh_article_custom is section sensitive! thanks for sharing that nifty idea for navs

Last edited by nardo (2006-01-12 03:46:47)

Offline

#4 2006-01-12 16:02:13

skoggy
Member
From: Westcoast of Sweden
Registered: 2005-03-27
Posts: 209
Website

Re: Non-profit: riceraiser.org

Wow! Like the header a lot. Nice paper-structure-effect.

Offline

#5 2006-01-12 17:12:06

bauhouse
Archived Plugin Author
From: Abbotsford, BC Canada
Registered: 2004-06-29
Posts: 68
Website

Re: Non-profit: riceraiser.org

Thanks, for the comments, soulship, nardo and skoggy.

Lately, I’ve been trying to concentrate mostly on what is possible without plugins. There is so much in the core that I have yet to try out. But you are right nardo, chh_article_custom is section aware, and I could have most of the site running of a single template. I just thought it might be a great idea to convince the developers to make this part of the core code.

soulship, thanks for the suggestion: I added the code to the Tag Examples forum.

Offline

#6 2006-01-28 20:08:51

BZ
Member
From: Stuttgart, Germany
Registered: 2005-11-24
Posts: 65
Website

Re: Non-profit: riceraiser.org

this is really nice looking, I like it a lot! I just submitted it to CSSbeauty…good luck ;)


Diagnosis:
Version Textpattern: 4.0.3 (r1188)
PHP-Version: 4.4.1
Hosting: all-inkl.com

Offline

#7 2006-01-29 01:47:15

BZ
Member
From: Stuttgart, Germany
Registered: 2005-11-24
Posts: 65
Website

Re: Non-profit: riceraiser.org

…Congratulations!


Diagnosis:
Version Textpattern: 4.0.3 (r1188)
PHP-Version: 4.4.1
Hosting: all-inkl.com

Offline

#8 2006-01-29 15:24:13

axle_foley00
Member
From: Jamaica
Registered: 2004-07-29
Posts: 42
Website

Re: Non-profit: riceraiser.org

Very nicely done.

Offline

#9 2006-01-29 18:34:13

Infi
Member
Registered: 2005-05-28
Posts: 75

Re: Non-profit: riceraiser.org

One thing I notice is that the main menu suffers from outline-itis in Firefox 1.5. When clicked, partial lines show up and break up its nice, clean flow. I remembered a recent and very handy SonSpring article about that: <a href=“http://sonspring.com/journal/removing-dotted-links”>Removing dotted links</a>. If outline: none is all that’s required, might be worth it.

The blue patterned border might go more nicely at a darker hue… closer to that on the rim of the rice bowl. Otherwise, the colors seem to blend very well. Very nice-looking site.

Offline

#10 2006-01-29 19:33:48

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Non-profit: riceraiser.org

Really nice site. Beautiful in fact.

Offline

Board footer

Powered by FluxBB