Item10310: Enhancement/Patch: Add COLUMNWIDTHS support to RenderTableSearchResults

pencil
Priority: Enhancement
Current State: New
Released In: n/a
Target Release: patch
Applies To: Extension
Component: TopicClassificationAddOn
Branches:
Reported By: RobertJacobson
Waiting For:
Last Change By: RobertJacobson
RenderTableSearchResults currently ignores the COLUMNWIDTHS preference when rendering the table for searches on Classification pages.

This simple one-line patch adds support for COLUMNWIDTHS.

--- RenderTableSearchResults.txt
+++ RenderTableSearchResults.new.txt
@@ -33,7 +33,7 @@
 ~~~          then="$percntINITLIMIT$percnt" else="all" glue="off"}%"
 ~~~    FACETS="%IFDEFINED{"%FACETS%" glue="off"}%"
 ~~~   }%
-%TABLE{tablewidth="100%" columnwidths=",,,50px"}%
+%TABLE{tablewidth="100%" columnwidths="%IFDEFINED{"%COLUMNWIDTHS%" then="$test" else=",,,50px" glue="off" }%"  }%
 %~~   DBQUERY{
 *~~
 %~~       DBCALL{"%TCAOWEB%.RenderSearchString"

-- RobertJacobson - 01 Feb 2011

 
Topic revision: r1 - 01 Feb 2011, RobertJacobson
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy