Worked like a charm.
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…
View original post 170 more words