|
Deep Pockets II File Folders |
|
|
Each of your Deep Pockets II Categories may contain any number of File Folders, and - just like each of your categories - each of these File Folders has associated with it a number of parameters, the most important being which File Folder Sub-Template will be used to render the items in the folder.
Just as in Joomla!, there are really only 2 ways to render Content Items in a File Folder - Blog-Style or Table-Style. However, there are always instances in which you would like to be able to render items just a little differently. Think, for instance, of a Downloads Directory. Whether you choose to render each download item as a Blog Item or a Table Item, you would always like to be able to display details such as a file or documentation location when displaying download-type items. Or, even if you don't want to display items differently, perhaps you'd like to 'frame' them a little differently to other items on your site.
Essentially, the second example is what we've done with the Post-Blog and Post-Table File Folder Sub-Templates. They will display items as per a normal 'Blog-Type' or 'Table-Type' File Folder, but 'frame' these items with a table that includes basic instructions and a [ POST ITEM ] button for users with the appropriate level of access. These Sub-Templates then work in conjunction with a Form and specific provisions in the core to allow visitors to post items in the File Folder using a 'Post-Type' Sub-Template.
The point of all of this is to illustrate that with EVERY level of Sub-Template (Category, File Folder, and Content Link Item), every Sub-Template has not only the scope to alter output cosmetically, but functionally also.
Again, just like the Category Sub-Templates, making Custom File Folder Sub-Templates available via your Deep Pockets II Administration System is as easy as uploading a correctly constructed pair (at least) of files to the subTmpl/folder/ directory.
File Folder Sub-Templates are located in :: components/com_deeppockets/subTmpl/folder/
- blog.php << 'Blog' Type Class File
- blog.xml << 'Blog' Type Parameters File
- post_blog.php << 'Post-Blog' Type Class File
- post_blog.xml << 'Post-Blog' Type Parameters File
- post_table.php << 'Post-Table' Type Class File
- post_table.xml << 'Post-Table' Type Parameters File
- table.php << 'Table' Type Class File
- table.xml << 'Table' Type Parameters File
Form Sub-Templates (for POST types) are located in :: components/com_deeppockets/subTmpl/form/
- default.php << 'Default' Form Class File
- default.xml << 'Default' Form Parameters File
|
|
Last Updated ( Thursday, 12 April 2007 )
|