Added more article template variables.

This commit is contained in:
JT Smith 2003-05-24 15:58:15 +00:00
parent 166ad80fe2
commit da7d400c82
3 changed files with 28 additions and 11 deletions

View file

@ -557,11 +557,10 @@ delete from settings where name='proxiedClientAddress';
insert into settings(name,value) values('proxiedClientAddress', '0');
delete from international where languageId=1 and namespace='WebGUI' and internationalId=973;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (973,1,'WebGUI','If proxied, use real client IP address?', 1053459227);
delete from international where languageId=1 and namespace='Article' and internationalId=73;
insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (73,1,'Article','The following template variables are available for article templates.\r\n<p/>\r\n\r\n<b>description.full</b><br>\r\nThe full description without any pagination. (For the paginated description use "description" instead.)\r\n<p>\r\n\r\n<b>description.first.100characters</b><br>\r\nThe first 100 characters of the description.\r\n<p>\r\n\r\n<b>description.first.20words</b><br>\r\nThe first 20 words of the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.\r\n<p>\r\n\r\n<b>description.first.paragraph</b><br>\r\nThe first paragraph of the description. The first paragraph is determined by the first carriage return found in the text.\r\n<p>\r\n\r\n<b>attachment.box</b><br/>\r\nOutputs a standard WebGUI attachment box including icon, filename, and attachment indicator.\r\n<p/>\r\n\r\n<b>attachment.icon</b><br/>\r\nThe URL to the icon image for this attachment type.\r\n<p/>\r\n\r\n<b>attachment.name</b><br/>\r\nThe filename for this attachment.\r\n<p/>\r\n\r\n<b>attachment.url</b><br/>\r\nThe URL to download this attachment.\r\n<p/>\r\n\r\n<b>image.thumbnail</b><br/>\r\nThe URL to the thumbnail for the attached image.\r\n<p/>\r\n\r\n<b>image.url</b><br/>\r\nThe URL to the attached image.\r\n<p/>\r\n\r\n<b>post.label</b><br/>\r\nThe translated label to add a comment to this article.\r\n<p/>\r\n\r\n\r\n<b>post.URL</b><br/>\r\nThe URL to add a comment to this article.\r\n<p/>\r\n\r\n<b>replies.count</b><br/>\r\nThe number of comments attached to this article.\r\n<p/>\r\n\r\n<b>replies.label</b><br/>\r\nThe translated text indicating that you can view the replies.\r\n<p/>\r\n\r\n<b>replies.url</b><br/>\r\nThe URL to view the replies to this article.\r\n<p/>\r\n\r\n\r\n<b>firstPage</b><br/>\r\nA link to the first page in the paginator.\r\n<p/>\r\n\r\n<b>lastPage</b><br/>\r\nA link to the last page in the paginator.\r\n<p/>\r\n\r\n<b>nextPage</b><br/>\r\nA link to the next page forward in the paginator.\r\n<p/>\r\n\r\n<b>previousPage</b><br/>\r\nA link to the next page backward in the paginator.\r\n<p/>\r\n\r\n<b>pageList</b><br/>\r\nA list of links to all the pages in the paginator.\r\n<p/>\r\n\r\n<b>multiplePages</b><br/>\r\nA conditional indicating whether there is more than one page in the paginator.\r\n<p/>\r\n\r\n<b>isFirstPage</b><br/>\r\nA conditional indicating whether the visitor is viewing the first page.\r\n<p/>\r\n\r\n<b>isLastPage</b><br/>\r\nA conditional indicating whether the visitor is viewing the last page.\r\n<p/>\r\n\r\n', 1053469941,NULL);
delete from international where languageId=1 and namespace='WebGUI' and internationalId=828;
insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (828,1,'WebGUI','Most wobjects have templates that allow you to change the layout of the wobject\'s user interface. Those wobjects that do have templates all have a common set of template variables that you can use for layout, as well as their own custom variables. The following is a list of the common template variables shared among all wobjects.\r\n<p/>\r\n<b>title</b><br/>\r\nThe title for this wobject.\r\n<p/>\r\n\r\n<b>displayTitle</b><br/>\r\nA conditional variable for whether or not the title should be displayed.\r\n<p/>\r\n\r\n<b>description</b><br/>\r\nThe description of this wobject.\r\n<p/>\r\n\r\n<b>wobjectId</b><br/>\r\nThe unique identifier that WebGUI uses to control this wobject.\r\n<p/>\r\n\r\n<b>isShortcut</b><br />\r\nA conditional indicating if this wobject is a shortcut to an original wobject.\r\n<p />\r\n\r\n<b>originalURL</b><br />\r\nIf this wobject is a shortcut, then this URL will direct you to the original wobject.\r\n<p />', 1053469640,NULL);
delete from international where languageId=1 and namespace='Article' and internationalId=73;
insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (73,1,'Article','The following template variables are available for article templates.\r\n<p/>\r\n\r\n<b>new.template</b><br>\r\nArticles have the special ability to change their template so that you can allow users to see different views of the article. You do this by creating a link with a URL like this (replace 999 with the template Id you wish to use):<p>\r\n&lt;a href="&lt;tmpl_var new.template&gt;999"&gt;Read more...&lt;/a&gt;\r\n<p>\r\n<b>description.full</b><br>\r\nThe full description without any pagination. (For the paginated description use "description" instead.)\r\n<p>\r\n\r\n<b>description.first.100words</b><br>\r\nThe first 100 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.\r\n<p>\r\n\r\n<b>description.first.75words</b><br>\r\nThe first 75 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.\r\n<p>\r\n\r\n<b>description.first.50words</b><br>\r\nThe first 50 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.\r\n<p>\r\n\r\n<b>description.first.25words</b><br>\r\nThe first 25 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.\r\n<p>\r\n\r\n<b>description.first.10words</b><br>\r\nThe first 10 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.\r\n<p>\r\n\r\n<b>description.first.paragraph</b><br>\r\nThe first paragraph of the description. The first paragraph is determined by the first carriage return found in the text.\r\n<p>\r\n\r\n<b>description.first.2paragraphs</b><br>\r\nThe first two paragraphs of the description. A paragraph is determined by counting the carriage returns found in the text.\r\n<p>\r\n\r\n<b>description.first.sentence</b><br>\r\nThe first sentence in the description. A sentence is determined by counting the periods found in the text.\r\n<p>\r\n\r\n<b>description.first.2sentences</b><br>\r\nThe first two sentences in the description. A sentence is determined by counting the periods found in the text.\r\n<p>\r\n\r\n<b>description.first.3sentences</b><br>\r\nThe first three sentences in the description. A sentence is determined by counting the periods found in the text.\r\n<p>\r\n\r\n<b>description.first.4sentences</b><br>\r\nThe first four sentences in the description. A sentence is determined by counting the periods found in the text.\r\n<p>\r\n\r\n\r\n\r\n<b>attachment.box</b><br/>\r\nOutputs a standard WebGUI attachment box including icon, filename, and attachment indicator.\r\n<p/>\r\n\r\n<b>attachment.icon</b><br/>\r\nThe URL to the icon image for this attachment type.\r\n<p/>\r\n\r\n<b>attachment.name</b><br/>\r\nThe filename for this attachment.\r\n<p/>\r\n\r\n<b>attachment.url</b><br/>\r\nThe URL to download this attachment.\r\n<p/>\r\n\r\n<b>image.thumbnail</b><br/>\r\nThe URL to the thumbnail for the attached image.\r\n<p/>\r\n\r\n<b>image.url</b><br/>\r\nThe URL to the attached image.\r\n<p/>\r\n\r\n<b>post.label</b><br/>\r\nThe translated label to add a comment to this article.\r\n<p/>\r\n\r\n\r\n<b>post.URL</b><br/>\r\nThe URL to add a comment to this article.\r\n<p/>\r\n\r\n<b>replies.count</b><br/>\r\nThe number of comments attached to this article.\r\n<p/>\r\n\r\n<b>replies.label</b><br/>\r\nThe translated text indicating that you can view the replies.\r\n<p/>\r\n\r\n<b>replies.url</b><br/>\r\nThe URL to view the replies to this article.\r\n<p/>\r\n\r\n\r\n<b>firstPage</b><br/>\r\nA link to the first page in the paginator.\r\n<p/>\r\n\r\n<b>lastPage</b><br/>\r\nA link to the last page in the paginator.\r\n<p/>\r\n\r\n<b>nextPage</b><br/>\r\nA link to the next page forward in the paginator.\r\n<p/>\r\n\r\n<b>previousPage</b><br/>\r\nA link to the next page backward in the paginator.\r\n<p/>\r\n\r\n<b>pageList</b><br/>\r\nA list of links to all the pages in the paginator.\r\n<p/>\r\n\r\n<b>multiplePages</b><br/>\r\nA conditional indicating whether there is more than one page in the paginator.\r\n<p/>\r\n\r\n<b>isFirstPage</b><br/>\r\nA conditional indicating whether the visitor is viewing the first page.\r\n<p/>\r\n\r\n<b>isLastPage</b><br/>\r\nA conditional indicating whether the visitor is viewing the last page.\r\n<p/>\r\n\r\n', 1053770001,NULL);