<< | Blog Archive | >>
Blog pages from January 2006
New Simple Blog
Hi, this is my new and simple wiki blog, freshly installed.
This blog works basically using pmwiki's pagelist markup to generate the various lists you see:
- a list with recent posts on the left sidebar
- a list with monthly archives
- a list with blog categories
- a list with recent comments to blog posts
The blog entries are stored as wiki pages in the group BlogPages. The names can carry a date prefix for easy page handling, but this part of the name gets hidden in the page title. Any comments are stored in the group BlogComments on a page with the same name as the blog page. The various blog category and archive pages and all the template pages are in group Blog.
New blog entries are added with the newpagebox form using Cookbook:NewPageBoxPlus. Comments are added with a commentbox using Cookbook:CommentBoxStyled
A comment page is included in the blog page with (:include ..:) markup, as is the blog page on top in the comment page, i.e. they always appear together in both BlogPages and BlogComments group.
The blog has a Blog Configuration page from where all the various configuration pages can be accessed.
So much briefly for a start. ~Hans
Triad Dev
Triad Skin 2.1 is coming on nicely. I wanted smart font sizing for users with preferences stored in a cookie. I also wanted an easy way to switch from a standard view to a "big" view with either only one column or perhaps two, and with a bigger default font size, to accommodate visually impaired users as much as possible.
I finally got the cookie management working. One cookie to set the view for either standard or big, and another for the font size. The last one needed to be set by either php or javascript, since the sizing is done by both methods. So now php and javascript can talk to each other, via the cookie and via setting of javascript variables through pmwiki php variables.
Site.PageHeader got a toggle switch for Normal and Big view. This sets the "setview" cookie and the "setfontsize" cookie. The {$View} page variable is used to show either switch link, via (:if equal {$View} big:) or (:if ! equal {$View} big:).
Next step is a reverse color scheme, again to aid easier reading of the screen. ~Hans
Blog Categories
I decided to use the normal category markup to include a category link on a blog page. This way the blog pages are included (linked to) in the general category? pages. But I wanted specific blog categories to show the blog entries with that category. The answer was to use a page for each blog category with a pagelist markup to search for the category word in the blog pages. So the blog categories are a sort of subset of all categories, displaying only blog pages. And the blog BlogCategories? page is hand-crafted to include only specific blog categories, not the whole lot used on the wiki. Well this works, but a better way would be to have an actual trail page containing a list of links to the pages, and have each new blog page adding to the relevant list. This is not possible yet but may be soon.
What we need is a general method to allow a page to add itself as a link in a specified format to a number of trail pages. It should not be limited to one blogtrail page. For instance in this blog setup each blog page is listed on
- Recent Posts
- Categories, i.e a blog category page, if the blog page carries one (or more)
- Archive of the month (or some other time-interval specific page)
I used pagelist markup for each of these, but it would be much better if each list is populated over time when new pages are created, to serve as wiki trail pages. Then blog pages can carry trail markup to link from one to the next. so we can have a trail wandering through recent posts, a trail through a past month (archive), a trail through a blog category. The only existing mechanism to do something similar is used for RecentChanges pages. RecentChanges is populated over time with every page change. $RecentChangesFmt allows to output each page addition in a certain format.
It would be nifty if the method used for creating RecentChanges pages would become a specific case in a more general method of automatic addition to certain trail pages on demand. I will call these auto-trail pages. -- Questions arising:
- How would it be determined to what auto-trail page a page-link gets added?
- Can a page-link be added to a specific location on the trail page, at a specific marker?
- Can the trail page determine the format of each page-link addition to its growing list?
My comments to these:
- An array for auto-populating trail pages and their rule-to-add attributes would be nice. A page-link will be added according to
- a general rule to add it (like RecentChanges for all pages)
- a specific rule to add it if it matches a pattern (is part of a group, for instance)
- a specific markup in the page to instruct addition to a specific auto-trail page (like Pm' suggestion to use a
(:blog:)markup to add the page to a blog trail) - An attribute to add it according to time: at creation time or when the page gets modified.
- the auto-trail page can carry a markup which specifies the position of page additions, i.e. the top of the list it creates
- This markup can include any formatting instructions, ideally somehow similar to pagelist using templates for formatting.
Any comments?
Posting Blog Pages
This blog uses Cookbook:NewPageBoxPlus to create new pages in the Blogpages group with ease.
NewPageBoxPlus allows a default value already entered in the text box, uses BlogTemplate as a page template, and a custom page variable {$Today} which produces 2009-01-06 -- today's date inserted in the text box, so all blog pages will have today's date prefixed to their name. The BlogTemplate is just containing a title markup (:title {$BlogTitle} :) which sets the title of a new blog page using another custom page variable {$BlogTitle}, which strips away the date part of the page name.
The {$BlogTitle} of this page is: "2006-01".
The page name is "2006-01-11-PostingBlogPages?".
Further details about automatic date insertion etc. can be found at Cookbook:BlogWithPageList
Blog Comments
As I said the blog comments are added using Cookbook:CommentBoxStyled. I decided to use a seperate BlogComments? group for them and use the blog page name for each comment page. But how tie it together?
Blog Bundle
I zipped all the bits and pieces of this blog setup into a bundle and uploaded it as blogsimple.zipΔ. It is meant to be an experimental release, and i am not sure how much it will be maintained, since pmwiki will deliver new blog tools, for a better blog bundle yet to come. See more at Cookbook:BlogSimple
~Hans
Blog Groups
I changed the group structure for the blog by adding seperate groups for Blog Archive ? and Blog Categories?, taking these pages out from group Blog?. This looks better in the relevant page titles and should be better to administer. The change affected loads of pages, and i updated the blogsimple.zipΔ file.
I also simplified the installation from the zip file by bundling everything into one directory, instead of splitting it into a pagestore in pub/ and the cookbook script.
Anyone updating this way should be aware to make changes to various pages, or remove configuration pages in group Blog first, and let the blog load fresh config pages from the new pagestore in cookbook/blogsimple/wikilib.d/
