PermaLink Quickr blog - or QSite - and custom themes03/05/2008 08:42 AM
Tampa, Florida
Greetings 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!



Technorati:
Comments :v

1. Heidi04/06/2008 11:46:47 PM


Hi, just wondering, did you create this blog using QuickR blogging capabilities? If not, do you kinow if QuickR allows you to make public blogs, or is it more for internal company usage?




2. Rob Novak04/07/2008 09:38:12 AM
Homepage: http://www.LotusRockStar.com


No- this blog is BlogSphere from OpenNTF.

Quickr does allow you to have public blogs, there's a placebot to run to allow anonymous access.




3. YazminZ05/12/2008 04:07:25 AM


hi Rob!

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!




4. Ciyi05/12/2008 06:14:22 AM


Hi Rob - I'm new to Quickr as well. For Quickr Blogs, is there any way we can introduce blog tags for different kinds of posts?

Also, can we embed html codes within blog entries for different widgets, e.g. for short polls?

Thanks!!!




Tour Dates
May 2008
Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
On With The Show
Here are all of the SNAPPS templates for Lotus Quickr (now includes AnyPlace SiteMap!)

Demos:
QActivities Demo
QAnnounce Demo
QContacts Demo
QIdeas Demo
QIssues Demo
QMeeting Demo
QPhotos Demo
QPresent Demo
QProject Demo
QSite Demo
QSurvey Demo

DOWNLOADS

Downloads: 36,647
Countries: 87 (Welcome, Botswana!)
Read the article in Intranet Journal
Be With the Band
Opt in to receive Rob's newsletter about QuickPlace, Quickr, Sametime, Free Stuff and Conferences. Just enter your email address below, you can unsubscribe at any time.

Subscribe to my newsletters...
Email:
Idols
Search
Golden Oldies
Last 11 Referrers
Lotus Domino ND7 RSS News Feed RSS Comments Feed Lotus Geek OpenNTF BlogSphere
Google Groupies!