+/-

±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
 
Noair $ 48.25
Noair $ 96.80
warden $ 9.41
Rancher  9.26
2DNED $ 18.92
macavity £ 10.00

±Séléctionnez la langue

±User Info


Bienvenue Anonyme

(Enregistrement)

Adhésion:
Dernier: proptrading
Nouveau aujourd'hui: 0
Nouveau hier: 0
Tous: 171

Visiteurs en ligne:
Membres: 0
Visiteurs: 113
Bots: 1
Total: 114
Qui est Où:
 Visiteurs:
Support Forums
Pro News Articles
التحمي
Pro News Articles
Pro News Articles
Support Forums
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Support Forums
Downloads
Pro News Articles
Pro News Articles
Pro News Articles
Support Forums
My Profile
Pro News Articles
Support Forums
Pro News Articles
Pro News Articles
Support Forums
Pro News Articles
Support Forums
Pro News Articles
Pro News Articles
Pro News Articles
Support Forums
Support Forums
Pro News Articles
Descargas
Pro News Articles
Nedlastninger
Home
Pro News Articles
Pro News Articles
Support Forums
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Support Forums
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Nedladdningar
Support Forums
Home
Pro News Articles
Pro News Articles
Pro News Articles
Support Forums
Support Forums
My Profile
Pro News Articles
Support Forums
Support Forums
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Support Forums
Pro News Articles
Pro News Articles
Support Forums
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Pro News Articles
Home
Nedladdningar
Pro News Articles
Nedladdningar
Pro News Articles
Support Forums
Pro News Articles
Pro News Articles
Support Forums
Support Forums
Pro News Articles
Downloads
Support Forums
Pro News Articles
Pro News Articles
Téléchargement
Pro News Articles
Pro News Articles
Pro News Articles
Home
Pro News Articles
 Bots:
Google > Support Forums

Admin en Ligne:

Pas d'Admin en ligne!

±Stop Software Patents

±30 Years of GNU

[ Celebrate 30 years of GNU! ]

Pro_News Basics

Pro News Administration

Overview of Article Template Structure


 

There nothing technically different between Pro_News Article Templates - the ones used to display the articles - and any other Dragonfly templates. But they are employed a little differently, so the description here will hopefully save template or theme designers a little experimentation time.

Pro_News article templates are stored in a separate dedicated directory within the theme, this is primarily to allow new templates to be added and selected easily in Admin > Pro_News > Config without worry of selecting a non-Article template.

Template Structure

Each Article Template needs to consist of 5 parts:

newsempty to display simple text or error messages.

newshdline to display headlines only in home.

newshome to display articles without main content field in home.

newsarticle to display entire article (on its own).

gallery to display a "More Photos" gallery page.

preview_article to display the small block between the preview and submit article when user selects Preview.

cblk_hdline a simplified version of newshdline to display headlines in the center block.

Update: cblk_hdline now moved out into its own, 2, templates ctrblk_up.html and ctrblk_down.html, in order to allow Pro_News blocks to be displayed when Pro_News is the active m odule.


newsempty and preview_article are typically going to be constant across all templates for a given theme, but they are small and stored here just for consistency and simplicity.

It should follow from this that each article needs 3 template entries - newshdline, newshome and newsarticle.

A couple of other items to note:
- newshdline has 2 levels, in order to facilitate a unique format for the first record, plus a common format for subsequent records;
- both newshdline and newshome requires 2 pagebreaks to be defined at the beginning of the definition, the first for display at a Section break, the second at a Category break (note that a Category break will always occur immediately after a Section break so the theme design needs to allow for this);
- if you do not want a display feature you can just drop it from your copy of the template, e.g. if you don't want Section and Category title breaks, simply remove them from the template!

Remember: When you create your own templates, copy an existing template to a new name and modify that copy. Pro_News > Config will find the new template name for you to select automatically. Not only will this copy step allow you to switch back and forth if there is a problem, but it also means that your new template will not get overwritten in a Pro_News release update. (I'll keep my standard article templates all starting with "index", so you are free to pick just about anything else.)

Finally, there are now Submit templates in the submit folder, to match - by name - each Article template. This allows control over what fields the user can input. So if you create an Article template which is significantly different, say it drops Image Captions, then you will want to create a matching Submit folder template that also omits Image Captions. If you forget to create a Submit template, Pro_News will use the default submit.html template, in which case all input features will be available.


 

 



Comments

 
All 0 Comments

Overview of Article Template Structure   -   Leave a Comment Share your views: