|
we::blog news
This is where you get the latest news on the we::blog service: updates, bug fixes, changes, etc. Report any bugs to dc@danchan.com.
10:17 Here's a problem
If someone removes the <weblog> section while editing their template then of course, the template doesn't work at all... Should I define the translate_template directives by default? For now, I've just put in a huge warning not to delete the <weblog> section.
If you run into a problem with your template, go here and copy out the <weblog> section into your template.
2 comments
13:39 New Standard Template
Anyone signing up from now on gets a new version of the standard template that uses translate_template directives to make things simpler. Hopefully...
People who signed up earlier can grab testlog2's template for an example of how the new stuff works. You can copy all the "translate_template" lines to your template.
Things are simplified to the point where this is the main structure of your template:
[#main_page] [#messages] [#visible_message] [$message_title] [$message_body] posted at [#post_datetime] [/#visible_message] [/#messages] [/#main_page]
0 comments
19:29 Another New Feature: translate_template
Warning: This one is only for users who know what they're doing. It's a text substitution on your template. Check out testlog and show template to see how it can be used. It greatly simplifies the actual template by predefining things, but there might be some potential for confusion... Greggman and Schlaulau, can you guys check it out?
If it seems like a good idea, I want to change the standard template that you get when you first create a weblog to include these predefined "building blocks".
1 comments
18:15 New Feature: translate
You can make substitutions in your message text now. For example, you can replace all occurences of :) with a smiley face gif. To do this now to your weblog, add these lines to your weblog section in your template.
translate {:)} {<img src="URL of gif">}
You can use the URL of the crappy smiley face here if you want.
You can "translate" any text that doesn't use curly braces into any HTML that doesn't use curly braces. So this bypasses the tag restriction of posts that only allows links, bold and italic tags.
Check out openlog's template for a couple more examples.
Right now, the translations that you specify are not done in order so you can't do things like:
translate {:)} {smiley} translate {:-)} {smiley} translate {smiley} {<img src="URL of smiley">}
and expect :) to translate to <img src="URL of smiley">
6 comments
|