_TOGGLE

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
Anonym $ 10.00
macavity $ 115.00
RedGerry £ 50.00
Anonym $ 10.00
minor $ 20.00

User Info


Velkommen Anonym


Medlemskap:
Siste: Witewolf
Ny i dag: 0
Ny i går: 0
Totalt: 151

Personer pålogget:
Medlemmer: 0
Besøkende: 23
Søkeroboter: 2
Totalt: 25
Hvem er hvor:
 Besøkende:
Pro News Articles
Support Forums
Downloads
Support Forums
Nedladdningar
Pro News Articles
Support Forums
Descargas
Pro News Articles
Support Forums
Pro News Articles
My Account
Support Forums
Support Forums
Pro News Articles
Téléchargement
Support Forums
Support Forums
Support Forums
Support Forums
Pro News Articles
التحمي
Pro News Articles
 Søkeroboter:
Google > Support Forums
Baidu > Pro News Articles

Administratorer pålogget:

Ingen administratorer er pålogget!

Recommended ISP

Overview of Article Template Structure

Forum dedicated to discussion of articles posted in Home page of Pro_News
Svar på EmneSvar på Emne Utskriftsvennlig side

Overview of Article Template Structure

Innlegg Skrevet: Ons Jan 31, 2007 6:33 pm

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 withing 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. (Note that with 9.1 users can leave the article template in the default theme folder. Pro_News will look first for an article template folder in the current theme folder; but if found all article templates will be selected from that folder and the ones in the default theme will never be referenced.)

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).

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

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).



layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.3.0 / 9.2.1

layingback
Site Admin
Site Admin
 
Innlegg: 1229
Ble medlem: Mar 18, 2006
Link  QR  Share this Utskriftsvennlig side  facebook   myspace   twitthis  
Show more ...
Vis Innlegg fra:   
Svar på EmneSvar på Emne Side 1 av 1

Pro_News Articles in Home

Gå til:  



Du kan ikke starte nye emner i dette forumet
Du kan ikke svare på emner i dette forumet
Du kan ikke endre dine egne innlegg i dette forumet
Du kan ikke slette dine egne innlegg i dette forumet
Du kan ikke delta i avstemninger i dette forumet
Du kan ikke legge til filer i dette forumet
Du kan ikke laste ned filer fra dette forumet

Alle klokkeslett er GMT






layingback Non-Human Terms of Use