Last year, I published a sample script that changes the layout of boxed views from two columns to a single column.
Several readers reported that it didn’t work for them. Larry Pfaff investigated the issue, and came up with the following update:
To include the script in your page, use a CEWP placed below the boxed view.
The above script is written for wss v3. It identifies the Web Part by its id “WebPartWPQ1”. If you use MOSS, or if the boxed view is on a page along with other Web Parts (typically on the site home page), you’ll need to change the id to “WebPartWPQ2” or “WebPartWPQn“. Or you can modify the code to scroll through all the Web Parts on the page and grab the boxed views.
Larry’s update works for all boxed styles, while my initial code only worked against the “Boxed, no labels” style.
Remember that the purpose of this sample script is simplicity (5 lines!). It relies on the innerHTML property.
I am going to publish a more complete (and of course heavier) solution that will allow you to choose the number of columns.
“Larry Pfaff, Sr, Systems Analyst working for Convergys Corp, a global company, based out of Jacksonville Florida delivering training and outsourcing for major corporations. I have been working with SharePoint for almost 7 years and manage many internal projects using SharePoint as the collaboration tool. I enjoy new challenges and automating existing process. I seek out cookie cutter solution and mold them to fit for “Non-Developers” working with SharePoint by developing and providing training for end user and sharing my knowledge with as many as I can.”