+/-

±Donations

Donate with PayPal!
Help support Pro_News and become a member of our Sponsors Group
The tip jar is at PayPal, but does not require a PayPal account

±Select Language

±User Info


Welcome Anonymous

(join)

Membership:
Latest: Charlotte
New Today: 0
New Yesterday: 0
Overall: 172

People Online:
Members: 0
Visitors: 6
Bots: 0
Total: 6
Who Is Where:
 Visitors:
Home
Pro News Articles
Pro News Articles
Pro News Articles
Home
Home

Staff Online:

No staff members are online!

±Stop Software Patents

±Link this Site


http://layingback.net

Check our QR links

±30 Years of GNU

[ Celebrate 30 years of GNU! ]

layingback blog

layingback blog
layingback's blog



topic
Dynamic Pro_News Template

posted
layingback

by
July 19, 10



layingback blog: DragonflyCMS Templates

Getting there ...
Getting there ...

As some of you may be aware, with Pro_News I've pushed the Dragonfly Template system, a variant of the SMARTY system in PHP I'm led to understand, pretty far.

I've templated pretty much everything, except repetitive lists. You might be surprised to learn that I've even added templates to the Submit Article Input screens. The reason is that you can then easily customise those Submit Article screens to remove any unneeded input fields for certain classes of users.

But slowly I discover other things which can be accomplished in the template system. Although unfortunately inserting comments isn't one of them, so the process is a slow one.

But I thought you might be interested in a new template which I've built for my own use, which adds an active graphic. Active in that it is generated entirely within the template based on 2 supplied values.

It even has an extra flourish when the goal amount is reached/exceeded!
Getting there ...
Goal Reached!

Rather specialised it displays funding as a classic thermometer graphic. Nothing new there. But what is slick is that this was not done in Pro_News per se, just in the template. Rest assured that this is standard Pro_News delivering 2 values in 2 User Data Fields: Target and Current To-Date. The rest all happens in the template.

I could have just displayed 2 values as text... But where's the fun?

I got many of the implementation ideas from a WordPress (?!) snippet by Bob Ray of softville.com released under GPL2. Even more interesting to me was that the equivalent code when done in Dragonfly was shorter, simpler and much, much easier to follow, and thus maintain. Score 1 for DragonflyCMS.

The template is still on my development system. Eventually I intend to deploy it on a site using the new Member's Page facility included in the Pro_News release currently on Beta. This gives you the option of allowing all your members, or a subset group of them, to have their own 1-page (or multi-page) mini-website within your main site. They could display their high score screen shots, publish their own blog, or ... whatever your creativity and/or business model comes up with. You could do this before on earlier versions of Pro_News, but it would have quickly become a chore. With the new release you just set a few parameters (how many pages, and whether they show in Section List), and you're done. Each member's page is auto linked from their Profile too.
 
Comments Comments   Link  QR  Share this Printer Friendly Format  facebook   google+   linkedin   twitthis  
 
aim   ask   bebo   blinklist   blogger   bloglines   blogmarks   blogospherenews   buzz   bx   care2   co.mments   current   dealspl.us   del.icio.us   designfloat   designmoo   digg   diigo   dzone   fark   faves   folkd   friendfeed   fresqui   funp   furl   google   google buzz   kickit   kirtsy   live   magnolia   meneame   mister-wong   mixx   muti   myspace   n4g   netvibes   netvouz   newstrust   newsvine   nowpublic   oknotizie   ping   propeller   pownce   propeller   reddit   shoutit   shoutout   simpy   slashdot   sphere   sphinn   spurl   squidoo   stumble   subbmitt   tagza   tailrank   technorati   tumblr   twackle   twine   twitthis   webnews   wikio   wink   xanga   yahoomyweb   yigg

Comments

 
All 0 Comments

DragonflyCMS Templates   -   Leave a Comment Share your views: