From 38a10fe245a5cf0eafbed22e70a2f00d4e6db491 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 19 Jul 2007 23:20:29 +0000 Subject: [PATCH] Cleaning up Template Asset Help, and all related files. --- lib/WebGUI/Help/Asset.pm | 4 - .../Help/Asset_EventManagementSystem.pm | 24 --- lib/WebGUI/Help/Asset_Folder.pm | 8 - lib/WebGUI/Help/Asset_Image.pm | 4 - lib/WebGUI/Help/Asset_Layout.pm | 8 - lib/WebGUI/Help/Asset_Navigation.pm | 12 -- lib/WebGUI/Help/Asset_Post.pm | 8 +- lib/WebGUI/Help/Asset_SQLForm.pm | 12 -- lib/WebGUI/Help/Asset_Shortcut.pm | 4 - lib/WebGUI/Help/Asset_Template.pm | 112 ----------- lib/WebGUI/Help/Asset_Thread.pm | 2 +- lib/WebGUI/Help/Asset_Wobject.pm | 8 - lib/WebGUI/Help/Asset_ZipArchive.pm | 4 - lib/WebGUI/Help/Commerce.pm | 16 -- lib/WebGUI/Help/Macro_AdminBar.pm | 4 - lib/WebGUI/Help/Macro_AdminToggle.pm | 4 - lib/WebGUI/Help/Macro_a_account.pm | 4 - lib/WebGUI/Help/Subscription.pm | 4 - lib/WebGUI/Help/WebGUI.pm | 4 - lib/WebGUI/i18n/English/Asset_Template.pm | 184 ------------------ 20 files changed, 3 insertions(+), 427 deletions(-) diff --git a/lib/WebGUI/Help/Asset.pm b/lib/WebGUI/Help/Asset.pm index 3f4c8fcbe..48c6dbc13 100644 --- a/lib/WebGUI/Help/Asset.pm +++ b/lib/WebGUI/Help/Asset.pm @@ -95,10 +95,6 @@ our $HELP = { } ], related => [ - { - tag => 'template language', - namespace => 'Asset_Template', - }, ] }, diff --git a/lib/WebGUI/Help/Asset_EventManagementSystem.pm b/lib/WebGUI/Help/Asset_EventManagementSystem.pm index 379d203d0..6d477de02 100644 --- a/lib/WebGUI/Help/Asset_EventManagementSystem.pm +++ b/lib/WebGUI/Help/Asset_EventManagementSystem.pm @@ -483,10 +483,6 @@ our $HELP = { tag => 'pagination template variables', namespace => 'WebGUI', }, - { - tag => 'template language', - namespace => 'Asset_Template', - }, ], }, @@ -574,10 +570,6 @@ our $HELP = { tag => 'event management system template', namespace => 'Asset_EventManagementSystem', }, - { - tag => 'template language', - namespace => 'Asset_Template', - }, ], }, @@ -608,10 +600,6 @@ our $HELP = { tag => 'event management system add/edit', namespace => 'Asset_EventManagementSystem', }, - { - tag => 'template language', - namespace => 'Asset_Template', - }, ], }, @@ -642,10 +630,6 @@ our $HELP = { tag => 'event management system add/edit', namespace => 'Asset_EventManagementSystem', }, - { - tag => 'template language', - namespace => 'Asset_Template', - }, ], }, @@ -743,10 +727,6 @@ our $HELP = { tag => 'event management system add/edit', namespace => 'Asset_EventManagementSystem', }, - { - tag => 'template language', - namespace => 'Asset_Template', - }, ], }, @@ -921,10 +901,6 @@ our $HELP = { tag => 'pagination template variables', namespace => 'WebGUI', }, - { - tag => 'template language', - namespace => 'Asset_Template', - }, ], }, diff --git a/lib/WebGUI/Help/Asset_Folder.pm b/lib/WebGUI/Help/Asset_Folder.pm index 0f475a9e8..5b321298e 100644 --- a/lib/WebGUI/Help/Asset_Folder.pm +++ b/lib/WebGUI/Help/Asset_Folder.pm @@ -116,10 +116,6 @@ our $HELP = { tag => 'folder add/edit', namespace => 'Asset_Folder', }, - { - tag => 'template language', - namespace => 'Asset_Template', - }, ] }, @@ -150,10 +146,6 @@ our $HELP = { tag => 'folder add/edit', namespace => 'Asset_Folder', }, - { - tag => 'template language', - namespace => 'Asset_Template', - }, ] }, diff --git a/lib/WebGUI/Help/Asset_Image.pm b/lib/WebGUI/Help/Asset_Image.pm index 400deaa23..7491cbb38 100644 --- a/lib/WebGUI/Help/Asset_Image.pm +++ b/lib/WebGUI/Help/Asset_Image.pm @@ -37,10 +37,6 @@ our $HELP = { }, ], related => [ - { - tag => 'template language', - namespace => 'Asset_Template', - }, ] }, diff --git a/lib/WebGUI/Help/Asset_Layout.pm b/lib/WebGUI/Help/Asset_Layout.pm index 39912481a..cb64d6e85 100644 --- a/lib/WebGUI/Help/Asset_Layout.pm +++ b/lib/WebGUI/Help/Asset_Layout.pm @@ -80,10 +80,6 @@ our $HELP = { tag => 'layout add/edit', namespace => 'Asset_Layout' }, - { - tag => 'template language', - namespace => 'Asset_Template' - }, ] }, @@ -115,10 +111,6 @@ our $HELP = { tag => 'layout add/edit', namespace => 'Asset_Layout' }, - { - tag => 'template language', - namespace => 'Asset_Template' - }, ] }, diff --git a/lib/WebGUI/Help/Asset_Navigation.pm b/lib/WebGUI/Help/Asset_Navigation.pm index da28c5fff..d79661ef5 100644 --- a/lib/WebGUI/Help/Asset_Navigation.pm +++ b/lib/WebGUI/Help/Asset_Navigation.pm @@ -72,10 +72,6 @@ our $HELP = { tag => 'navigation template', namespace => 'Asset_Navigation' }, - { - tag => 'template add/edit', - namespace => 'Asset_Template' - } ] }, @@ -288,10 +284,6 @@ our $HELP = { tag => 'navigation add/edit', namespace => 'Asset_Navigation' }, - { - tag => 'template language', - namespace => 'Asset_Template' - } ] }, @@ -347,10 +339,6 @@ our $HELP = { tag => 'navigation add/edit', namespace => 'Asset_Navigation' }, - { - tag => 'template language', - namespace => 'Asset_Template' - } ] }, diff --git a/lib/WebGUI/Help/Asset_Post.pm b/lib/WebGUI/Help/Asset_Post.pm index 0a2efadaa..e3a645dea 100644 --- a/lib/WebGUI/Help/Asset_Post.pm +++ b/lib/WebGUI/Help/Asset_Post.pm @@ -10,7 +10,7 @@ our $HELP = { namespace => 'Asset_Collaboration' }, { - tag => 'template language', + tag => 'template variables', namespace => 'Asset_Template' }, { @@ -282,10 +282,6 @@ our $HELP = { fields => [ ], related => [ - { - tag => 'template language', - namespace => 'Asset_Template' - }, { tag => 'collaboration template labels', namespace => 'Asset_Collaboration' @@ -398,7 +394,7 @@ our $HELP = { tag => "post template variables" }, { - tag => 'template language', + tag => 'template variables', namespace => 'Asset_Template' }, ], diff --git a/lib/WebGUI/Help/Asset_SQLForm.pm b/lib/WebGUI/Help/Asset_SQLForm.pm index b2cac4adb..f993d8605 100644 --- a/lib/WebGUI/Help/Asset_SQLForm.pm +++ b/lib/WebGUI/Help/Asset_SQLForm.pm @@ -536,10 +536,6 @@ our $HELP = { tag => 'sql form add/edit', namespace => 'Asset_SQLForm', }, - { - tag => 'template language', - namespace => 'Asset_Template', - }, ], }, @@ -710,10 +706,6 @@ our $HELP = { tag => 'sql form add/edit', namespace => 'Asset_SQLForm', }, - { - tag => 'template language', - namespace => 'Asset_Template', - }, ], }, @@ -799,10 +791,6 @@ our $HELP = { tag => 'sql form add/edit', namespace => 'Asset_SQLForm', }, - { - tag => 'template language', - namespace => 'Asset_Template', - }, ], }, diff --git a/lib/WebGUI/Help/Asset_Shortcut.pm b/lib/WebGUI/Help/Asset_Shortcut.pm index f8ebb660b..303d8ba27 100644 --- a/lib/WebGUI/Help/Asset_Shortcut.pm +++ b/lib/WebGUI/Help/Asset_Shortcut.pm @@ -39,10 +39,6 @@ our $HELP = { tag => 'wobjects using', namespace => 'Asset_Wobject' }, - { - tag => 'template language', - namespace => 'Asset_Template' - }, ] }, diff --git a/lib/WebGUI/Help/Asset_Template.pm b/lib/WebGUI/Help/Asset_Template.pm index 0c219a6d4..dfd54b4b5 100644 --- a/lib/WebGUI/Help/Asset_Template.pm +++ b/lib/WebGUI/Help/Asset_Template.pm @@ -2,59 +2,6 @@ package WebGUI::Help::Asset_Template; our $HELP = { - 'template add/edit' => { - title => '684', - body => '639', - isa => [ - { - tag => 'asset fields', - namespace => 'Asset' - }, - ], - fields => [ - { - title => 'namespace', - description => 'namespace description', - namespace => 'Asset_Template', - }, - { - title => 'show in forms', - description => 'show in forms description', - namespace => 'Asset_Template', - }, - { - title => 'assetName', - description => 'template description', - namespace => 'Asset_Template', - }, - { - title => 'head block', - description => 'head block description', - namespace => 'Asset_Template', - }, - { - title => 'parser', - description => 'parser description', - namespace => 'Asset_Template', - }, - ], - related => [ - ] - }, - - 'template language' => { - title => '825', - body => '826', - fields => [ - ], - related => [ - { - tag => 'template variables', - namespace => 'Asset_Template' - }, - ] - }, - 'template variables' => { title => 'template variable title', body => 'template variable body', @@ -96,65 +43,6 @@ our $HELP = { ] }, - 'style wizard' => { - title => 'style wizard', - body => 'style wizard help', - fields => [ - { - title => 'site name', - description => 'site name description', - namespace => 'Asset_Template', - }, - { - title => 'logo', - description => 'logo description', - namespace => 'Asset_Template', - }, - { - title => 'page background color', - description => 'page background color description', - namespace => 'Asset_Template', - }, - { - title => 'header background color', - description => 'header background color description', - namespace => 'Asset_Template', - }, - { - title => 'header text color', - description => 'header text color description', - namespace => 'Asset_Template', - }, - { - title => 'body background color', - description => 'body background color description', - namespace => 'Asset_Template', - }, - { - title => 'body text color', - description => 'body text color description', - namespace => 'Asset_Template', - }, - { - title => 'menu background color', - description => 'menu background color description', - namespace => 'Asset_Template', - }, - { - title => 'link color', - description => 'link color description', - namespace => 'Asset_Template', - }, - { - title => 'visited link color', - description => 'visited link color description', - namespace => 'Asset_Template', - }, - ], - related => [ - ] - }, - }; 1; diff --git a/lib/WebGUI/Help/Asset_Thread.pm b/lib/WebGUI/Help/Asset_Thread.pm index 7475f6e81..64dd9ab8b 100644 --- a/lib/WebGUI/Help/Asset_Thread.pm +++ b/lib/WebGUI/Help/Asset_Thread.pm @@ -6,7 +6,7 @@ our $HELP = { body => 'thread template body', isa => [ { - tag => 'template language', + tag => 'template variables', namespace => 'Asset_Template' }, { diff --git a/lib/WebGUI/Help/Asset_Wobject.pm b/lib/WebGUI/Help/Asset_Wobject.pm index 45041f124..fccfe7397 100644 --- a/lib/WebGUI/Help/Asset_Wobject.pm +++ b/lib/WebGUI/Help/Asset_Wobject.pm @@ -96,10 +96,6 @@ our $HELP = { tag => 'pagination template variables', namespace => 'WebGUI' }, - { - tag => 'template language', - namespace => 'Asset_Template' - }, ] }, @@ -130,10 +126,6 @@ our $HELP = { }, ], related => [ - { - tag => 'template language', - namespace => 'Asset_Template' - }, ] }, diff --git a/lib/WebGUI/Help/Asset_ZipArchive.pm b/lib/WebGUI/Help/Asset_ZipArchive.pm index 7aeeac003..faee89e57 100644 --- a/lib/WebGUI/Help/Asset_ZipArchive.pm +++ b/lib/WebGUI/Help/Asset_ZipArchive.pm @@ -42,10 +42,6 @@ our $HELP = { } ], related => [ - { - tag => 'template language', - namespace => 'Asset_Template', - }, ] }, diff --git a/lib/WebGUI/Help/Commerce.pm b/lib/WebGUI/Help/Commerce.pm index 9eb6f6732..20733244f 100644 --- a/lib/WebGUI/Help/Commerce.pm +++ b/lib/WebGUI/Help/Commerce.pm @@ -13,10 +13,6 @@ our $HELP = { fields => [ ], related => [ - { - tag => 'template language', - namespace => 'Asset_Template' - }, ] }, @@ -72,10 +68,6 @@ our $HELP = { }, ], related => [ - { - tag => 'template language', - namespace => 'Asset_Template' - }, ], }, @@ -110,10 +102,6 @@ our $HELP = { } ], related => [ - { - tag => 'template language', - namespace => 'Asset_Template' - }, ] }, @@ -159,10 +147,6 @@ our $HELP = { } ], related => [ - { - tag => 'template language', - namespace => 'Asset_Template' - }, ] }, diff --git a/lib/WebGUI/Help/Macro_AdminBar.pm b/lib/WebGUI/Help/Macro_AdminBar.pm index 725d71ebd..0dc32c5d0 100644 --- a/lib/WebGUI/Help/Macro_AdminBar.pm +++ b/lib/WebGUI/Help/Macro_AdminBar.pm @@ -35,10 +35,6 @@ our $HELP = { } ], related => [ - { - tag => 'template language', - namespace => 'Asset_Template' - }, ] }, diff --git a/lib/WebGUI/Help/Macro_AdminToggle.pm b/lib/WebGUI/Help/Macro_AdminToggle.pm index ab025501f..175c9d1a2 100644 --- a/lib/WebGUI/Help/Macro_AdminToggle.pm +++ b/lib/WebGUI/Help/Macro_AdminToggle.pm @@ -16,10 +16,6 @@ our $HELP = { fields => [ ], related => [ - { - tag => 'template language', - namespace => 'Asset_Template' - }, ] }, diff --git a/lib/WebGUI/Help/Macro_a_account.pm b/lib/WebGUI/Help/Macro_a_account.pm index 625050786..a9606ea9f 100644 --- a/lib/WebGUI/Help/Macro_a_account.pm +++ b/lib/WebGUI/Help/Macro_a_account.pm @@ -16,10 +16,6 @@ our $HELP = { } ], related => [ - { - tag => 'template language', - namespace => 'Asset_Template', - }, ] }, diff --git a/lib/WebGUI/Help/Subscription.pm b/lib/WebGUI/Help/Subscription.pm index 8a3a0badd..bbcd11fae 100644 --- a/lib/WebGUI/Help/Subscription.pm +++ b/lib/WebGUI/Help/Subscription.pm @@ -8,10 +8,6 @@ our $HELP = { fields => [ ], related => [ - { - tag => 'template language', - namespace => 'Asset_Template' - }, ] }, diff --git a/lib/WebGUI/Help/WebGUI.pm b/lib/WebGUI/Help/WebGUI.pm index 89bf09bd1..5aab0864e 100644 --- a/lib/WebGUI/Help/WebGUI.pm +++ b/lib/WebGUI/Help/WebGUI.pm @@ -16,10 +16,6 @@ our $HELP = { fields => [ ], related => [ - { - tag => 'template language', - namespace => 'Asset_Template' - }, ] }, diff --git a/lib/WebGUI/i18n/English/Asset_Template.pm b/lib/WebGUI/i18n/English/Asset_Template.pm index 7fa97770c..b6cecf55d 100644 --- a/lib/WebGUI/i18n/English/Asset_Template.pm +++ b/lib/WebGUI/i18n/English/Asset_Template.pm @@ -49,52 +49,6 @@ our $I18N = { lastUpdated => 1107391368, }, - '684' => { - message => q|Template, Add/Edit|, - lastUpdated => 1038890615 - }, - - '639' => { - message => q|

Templates allow you to customize the look and feel of your content on your site. WebGUI comes with many existing templates that you can use as is or copy and modify to suit your individual needs. Note that in many cases that you can change the look of default WebGUI templates through CSS. The advantage to this is that the default templates are automatically updated when you upgrade WebGUI, where custom templates will have to be manually updated.

-

There are two ways to edit templates, via the Display tab of the Asset Edit screen or via the Asset Manager. In either case, you will need to be an Admin or a Template Admin. -

- -

Display tab of the Asset Edit screen

-
- -
- -

Asset Manager

-
- -
- -

Template Name
-Give this template a descriptive name so that you'll know what it is when you're applying a template to content. -

-

-NOTE: You should never edit the default templates that come with WebGUI as they are subject to change with each new release. Instead, copy the template you wish to edit, and edit the copy.

-|, - lastUpdated => 1146800528 - }, - 'namespace description' => { message => q|What type of template is this?|, lastUpdated => 1146455494, @@ -120,127 +74,6 @@ Give this template a descriptive name so that you'll know what it is when you're lastUpdated => 1146455514, }, - '825' => { - message => q|Template, Language|, - lastUpdated => 1038865669 - }, - - '826' => { - message => q|

WebGUI has a powerful templating language built to give you maximum control over the layout of your content.

-

NOTES:
-Both the template language and template variables are case-insensitive. -

- -

-Variables
-Variables are the most basic of the template commands. They are used to position pieces of content. -In the examples below, please note that the words foo and bar are used as placeholders for the actual variable names that you'll use. They are not part of the template language.

- -

-Syntax: <tmpl_var foo> or <tmpl_var name="foo"> -

- -

-Example: <tmpl_var name> -

- -

-Escaping text
-Sometimes you would like to escape text to make it safe to use inside of XML and HTML tags or Javascript code. There -is a built-in way to do this for variables, using the ESCAPE option inside of <tmpl_var>. -

- -

-Javascript safe: <tmpl_var foo ESCAPE="JS"> -

- -

-XML and HTML safe: <tmpl_var foo ESCAPE="HTML"> -

- -

-Conditions
-To programmers conditions are nothing new, but to designers they can often be confusing at first. Conditions are really just true or false questions, and if you think of them that way, you'll have no trouble at all. -

- -

-Syntax: <tmpl_if foo> <tmpl_else> </tmpl_if>
-Syntax: <tmpl_unless foo> <tmpl_else> </tmpl_unless> -

- -

-Example: <tmpl_if isTrue> It was true!<tmpl_else> It was false! </tmpl_if> -

- -

Truth or falsehood is determined by the following rules:

-
-
- -

Loops
-Loops iterate over a list of data output for each pass in the loop. Loops are slightly more complicated to use than plain variables, but are considerably more powerful. -

- -

-Syntax: <tmpl_loop foo> </tmpl_loop> -

- -

-Example:
-<tmpl_loop users>
-   Name: <tmpl_var first_name><br/>
-</tmpl_loop> -

- -

-Loop Conditions
-Loops come with special condition variables of their own. They are __FIRST__, __ODD__, __INNER__, and __LAST__. -There is also a loop counter variable, __COUNTER__, which keeps track of how many times the -loop has been executed. -

- -

Examples:

- -
-   <TMPL_LOOP FOO>
-      <TMPL_IF __FIRST__>
-        This only outputs on the first pass.
-      </TMPL_IF>
-
-      <TMPL_IF __ODD__>
-        This outputs every other pass, on the odd passes.
-      </TMPL_IF>
-
-      <TMPL_UNLESS __ODD__>
-        This outputs every other pass, on the even passes.
-      </TMPL_UNLESS>
-
-      <TMPL_IF __INNER__>
-        This outputs on passes that are neither first nor last.
-      </TMPL_IF>
-
-      <TMPL_IF __LAST__>
-        This only outputs on the last pass.
-      <TMPL_IF>
-
-      Loop number: <TMPL_VAR __COUNTER__>
-        This keeps track of how many times you have gone through the loop.
-      <TMPL_IF>
-   </TMPL_LOOP>
-
- -

NOTE: This only documents WebGUI's default template language, HTML::Template. If the Template Type -has been set to some other language you will need to consult the documentation for it.

. -

Some examples have been borrowed from the HTML::Template documentation.

. -|, - lastUpdated =>1157490959, - }, - 'template variable title' => { message => q|Template Variables|, lastUpdated => 1130972019, @@ -454,23 +287,6 @@ has been set to some other language you will need to consult that template's doc lastUpdated => 1146455484, }, - 'style wizard help' => { - message => q|

The Style Wizard can help you create simple CSS based page style templates for your website -with your choice of two layouts and navigation styles, and configurable colors. To access the Style -Wizard edit a template in the "style" namespace. A link to open the Style Wizard will -be on the right side of the page.

-

Creating a style template is a three step process:

-
-
    -
  1. Select one of the layouts.
  2. -
  3. Enter your site name, upload a logo and configure the colors.
  4. -
  5. Make customizations to the generated template.
  6. -
-
-|, - lastUpdated => 1146456174, - }, - 'plugin name' => { message => q|Parser Name|, lastUpdated => 1162087997,