|
|||||||||||||||||
|
The $$BLOG$$ substitution directive allows simple weblogs to be supported. http://en.wikipedia.org/wiki/Blog The VWcms blog facility should not be thought of as just a mechanism for airing opinions though. It is much more versatile than that. It is essentially a set of dated, related topics and so lends itself to "what's new?" style of information, etc. When a section (page) begins $$BLOG$day month year hour:minute$$ it is considered a weblog for that date and time. The $$BLOG$$ directive with the current date/time is available from the management interface macro selector and button. The date/time allows chronological ordering of the weblog entries. An actual directive looks like $$BLOG$2 March 2009 22:44$$ and when seen on the blog entry is rendered If the time components are excluded only the date of the entry is displayed These can be seen in the following blogging examples. goto=section-nameNormally a blog [read] link will open the blog entry. Where a blog is being used as a list of short advisory notes (as with the What's New? section) it may be a more useful to open an alternative location. The $$BLOG$$ timestamp supports an optional goto parameter that allows just this.
Single-Button BloggingA blogger can initiate a new blog entry either by opening the site management interface, adding a new section and inserting the required $$BLOG$date$$ directive, or on the blog page include a $$BLOG$new$$ entry which provides a single-button function to do all of the required steps to create the blog entry; the blogger then just completes the text entry and publishes. This single button blog entry is only visible to a logged-in user capable of editing the site and looks like the following:
A blog topic must be entered. Most Recent BlogThe most recent blog entry can be displayed as the content of any section using the directive $$BLOG$latest=<integer>$$ as the first line of the section. The latest integer parameter performs the same function as level in blog and section synopsis. For example, to make the home page of a site the most recent blog entry you would have the first line of the first section of the site contain
The Latest Blog Example illustrates the use of this directive. List of Recent EntriesThe directive $$BLOG$list=integer$$, where integer is a number up to 99, generates a list of the integer most recent weblog entries. This list is generated from the entire site, even when multiple sets of blogs are maintained under independent parent sections. Each has the blog entry (section) title, the blog date/time, and a plain-text extract from the entry. Note that these are presented in reverse-chronological order!The following example shows a maximum of 6 of the most recent entries.
Size of ExtractValues between 64 and 1023 are allowed.
Synopsis Special-CaseIn fact a blog listing is just a special case of a synopsis listing, with different defaults but with all the same parameters supported. Read MoreA directive $$BLOG$list=6$level=-1$extract=512$read=more$$ would change it to [more] And $$BLOG$list=6$level=-1$extract=512$read=<img src="/_vdub/glasses.png" border="0">$$ to See Icons for additional information.
|
|||||||||||||||||