Quickr blog - or QSite - and custom themes
Category NoneGreetings from sunny Florida
In the past week I've received two questions from IBMers working with clients on either the blog template in Quickr 8, or implementing QSite. Both had the same issue - when you change to a legacy theme or try to apply a custom theme, the "blog stuff" doesn't show up. Fortunately I already had a canned response, so I thought I would share it here. Note that this is not limited to the blog, some other templates have similar "injection" features.
If you want to use another theme, it must have specifically named divs in order for the code to insert the blog-specific elements. The legacy themes don't have these elements, so customer themes are required.
A development requirement was to create the blog template (and qblog inside qsite) without modifying the standard Quickr 8.0 theme. There are three scripts that insert code into specific places in the theme (without modifying the theme itself). For instance, look here at the QBlog Preferences Form:
if(!h_isBeingEdited){
try{
var oDiv = dojo.byId("BlogWidgets");
var oTable = dojo.byId("Table7");
if(oTable){
dojo.dom.insertBefore(oDiv, oTable);
}else{
//This is to account for version 8.0.0.2
oTable = dojo.byId("Table4");
dojo.dom.insertAfter(oDiv, oTable);
}
oDiv.style.display = "";
}catch(e){}
}
It will work fine with a custom theme, as long as the custom theme has divs called Table7 or Table4, in the places where you would want the blog widgets (calendar and links) to go. Same with the RSS link which is replaced.
There are several other places in the templates where we had to "inject" or replace standard theme code.
And keep in mind - all this changes with the upcoming release. We're working on it!







Comments
Posted by Heidi At 11:46:47 PM On 04/06/2008 | - Website - |
Quickr does allow you to have public blogs, there's a placebot to run to allow anonymous access.
Posted by Rob Novak At 09:38:12 AM On 04/07/2008 | - Website - |
I'm just starting out in this quickr thing, and i'm wondering if quickr allows anonymous comments although the blog is not public?
hope you can help me out!
thanks!
Posted by YazminZ At 04:07:25 AM On 05/12/2008 | - Website - |
Also, can we embed html codes within blog entries for different widgets, e.g. for short polls?
Thanks!!!
Posted by Ciyi At 06:14:22 AM On 05/12/2008 | - Website - |