Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-08-03 15:19:36

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

GreenTree Technology Partners (green IT solutions)

New site went live this week: GreenTree Technology Partners, a Kansas City / Atlanta-based company specializing in eco-friendly solutions for IT departments. Some highlights:

  • Using lots of zem_contact_reborn variations for specific inquiry types.
  • upm_file saved my butt in elegantly managing multiple files associated with articles (example)
  • Tons of microformats action, using both hCard and vEvent.

Just for fun, here is the code for rendering the microformats associated with an event, which uses both hCard and vEvent syntax:

<div id="eventdetails">
<div class="vevent">
  <span class="summary"><txp:title /></span>
  <abbr title="<txp:posted format="%F" />T<txp:posted format="%R" />-06:00" class="dtstart"><txp:posted format="%B %e, %Y %l %P" /></abbr> – <abbr title="<txp:expires format="%F" />T<txp:expires format="%R" />-06:00" class="dtend"><txp:expires format="%l %P" /></abbr>
  <div class="location vcard">
    <span class="fn org"><txp:custom_field name="event_location" /></span>
    <div class="adr">
      <div class="street-address"><txp:custom_field name="event_address" /></div>
      <span class="locality"><txp:custom_field name="event_city" /></span>,
      <span class="region"><txp:custom_field name="event_state" /></span>
      <span class="postal-code"><txp:custom_field name="event_zip" /></span>
    </div>
  </div>
</div>
</div> <!-- ends #eventdetails -->

Took a little trial and error getting the dates working correctly, but there ya go.


Kevin
(graphicpush)

Offline

#2 2009-09-10 15:13:28

nik.martin
New Member
Registered: 2009-09-06
Posts: 8

Re: GreenTree Technology Partners (green IT solutions)

Excellent web site! How do you recommend the two column front page be implemented? Are the three articles jst the top three articles in the database, or are they “hardcoded” to the front page. The default serial article layout of txp has made my desired front page seem like a hacked mess, by coding articles into the front page layout.

Offline

#3 2009-09-15 05:17:22

samwieck
New Member
Registered: 2009-02-24
Posts: 9

Re: GreenTree Technology Partners (green IT solutions)

Nice work as always Kevin.

Offline

#4 2009-09-15 13:06:17

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: GreenTree Technology Partners (green IT solutions)

nik.martin wrote:

Excellent web site! How do you recommend the two column front page be implemented? Are the three articles jst the top three articles in the database, or are they “hardcoded” to the front page. The default serial article layout of txp has made my desired front page seem like a hacked mess, by coding articles into the front page layout.

The front page actually uses four discreet article calls. The left column is just a <txp:article_custom id="x" /> where the article is set to a dedicated “homepage” section. The middle column uses <txp:article_custom section="products" /> to pull the titles and excerpts from the four products. The top right pulls the most recent article from the “events” section, and the rotating quotes use another <txp:article_custom /> pull from the “quotes” section, filtering by category. So the only piece that is hardcoded is the left column; everything else pulls dynamically from different sections. Hope that answers your question.


Kevin
(graphicpush)

Offline

#5 2009-09-15 13:27:01

nik.martin
New Member
Registered: 2009-09-06
Posts: 8

Re: GreenTree Technology Partners (green IT solutions)

Kevin, it does, thanks. That has given me some clues on my site, which is less a blog and more a CMS, with products and services, etc.

Offline

Board footer

Powered by FluxBB