Search DominoPower's 10,675 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
PROGRAMMING POWER
Get twisted and change your twisties
By Shabbir Tayeb Ali

There are relatively few options available for customizing views displayed in a browser. However, if you get crafty, you can do some interesting stuff. One thing that's always bothered me in Notes Views is what all us Notes-folk call "twisties" (you know, the little arrows you click to drop down more options or expand on a topic). These twistie shapes are fixed whenever views are previewed in the Web browser. In this article, I'll show you how you can change the twistie displayed on your views.

Two tracks to twisting twistie
Normally, a Twistie is represented by the little, blue triangle images we've all come to know and love, as shown in Figure A. Two triangle orientations dictate the expanded and collapsed categories, as well as provide links to expand and collapse the category displayed. However nicely these two images work, there is always a desire for a better replacement.

FIGURE A


Here's a snapshot of a view in the browser, with categorized columns and the pretty, little default twisties. Roll over picture for a larger image.

In this article, I'll look at two different ways you can change your twistie without getting your knickers in a twist.

Twist them all
Here's the core of the secret: Domino displays two images EXPAND.GIF (arrow pointing down) and COLLAPSE.GIF (arrow pointing to the right) located in the DOMINO/ICONS folder in the Notes DATA directory. If you want it in URL form, they're /icons/expand.gif and /icons/collapse.gif.

So, if you're willing to change the twistie shape for all the views in all the databases on your server, just replace these files. This is an easy job.

And, Hurrah! You got it. Just replace these two images with whatever images you want and they are all changed in one go.

Other icons you can hack
For extra credit, look into the ICONS directory and you'll find lots of other images you can change. Just don't get too twisted.

Table A lists some of the other interesting images to give an idea of what you can change.

Image Name Description
actn***.gif *** represents three digit numbers like 012 and "act" stands for "action" so these images are displayed in Web browsers in place of the normal Notes action buttons and are linked to perform actions. There are a total of 155 images from actn001.gif to actn155.
vwicn***.gif These are the 172 different icons that are displayed in view columns that have the property checked "Display values as icons" in the column properties box. Like the action icons, they're numbered from vwicn001.gif to vwicn172.gif. You evaluate the column value to a number you require for the row's icon. You can easily add vwicn173.gif or so and evaluate the value to show that picture in the browser.
prevview.gif, nextview.gif, expview.gif, colview.gif, schview.gif Previous, Next, Expand All Categories, Collapse All Categories and Search View images (these are the defaults if no view template is used). If you look back, you can see these images in Figure A at the top of the view.
expand.gif, collapse.gif These are the two images of our changing twistie shape.


1  ·  2  ·  3  ·  Next »
Other articles you might like
Home > Internet Technologies > JavaScript (13 articles)
   Sorting your Domino views with JavaScript
   Give your Domino views life with DHTML
   Using dynamically generated HTML to thwart spam email address harvesting
Home > Lotus Technologies > Application Development (47 articles)
   How hide-whens in Rich Text can ruin your whole day (and what to do about it)
   Little known traps about Lotus Notes fields
   Integrating a Notes Connector database with Google Enterprise Search
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
What to look for in a Domino-based document management solution
Understanding Domino.doc end-of-life options
When the debugger won't debug hidden code that isn't hidden
What to do if the LotusScript debugger won't single-step over code
Top 10 ways to launch and build a Lotus consulting practice (with a little help from the Beatles)
Troubleshooting an OpenSuse Notes install
Incident report: denial of service attack against ConnectedPhotographer.com
Latest Lotus Headlines
SnTT - Enabling ALL the bells and whistles!
Tivoli Data protection causes Domino to crash
Fun when running DB2 CLP scripts
Introducing Flippr, the easy way to admin Quickr
DXL and fake security
Using search forms in IBM Workplace Collaborative Learning 2.7
Schmidt, Freed, and Gering on the OVF Toolkit
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Eight steps to successful and reliable home backups
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Can Outlook run when it's not running (and other mysteries)?
-- Advertisement --

Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.

The many included activities and demos will make you a pro! Expert instructor help is a click away.

Click here to try a FREE demo course!!

-- Advertisement --

Want The Top Lotus Experts By Your Side Without Paying Hefty Consulting Fees? Look No Further.
Like having a team of consultants by your side -- ones who have all the answers and never make mistakes -- THE VIEW gives you immediate access to field-tested instruction, guidance, and best practices from the brightest Lotus professionals around.

Join your peers who realize their Lotus technology is too important to let people from blogs and forums tell them how they should implement it, run it, and use it. THE VIEW is where only the world's top Lotus experts provide validated support to you on a weekly basis to ensure you work more efficiently, get more out of your Lotus technology, and stay clear of costly mistakes.

Check out the new instruction, tips, and best practices added to THE VIEW this week.

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2009, ZATZ Publishing. All rights reserved worldwide.
Editor's Login