[Checkins] SVN: gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/ Refine GrokDoc portlet w/ search and better tutorial link. RSS Template puts the full body text in RSS feeds.

Kevin Teague kevin at bud.ca
Mon Jan 28 02:53:51 EST 2008


Log message for revision 83276:
  Refine GrokDoc portlet w/ search and better tutorial link. RSS Template puts the full body text in RSS feeds.

Changed:
  U   gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/browser/dochome.pt
  U   gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/portlets/phc_grok.pt
  A   gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/skins/smash_custom_templates/rss_template.pt
  U   gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/skins/smash_styles/gzo.plonesmashtheme.css.dtml

-=-
Modified: gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/browser/dochome.pt
===================================================================
--- gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/browser/dochome.pt	2008-01-28 07:35:21 UTC (rev 83275)
+++ gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/browser/dochome.pt	2008-01-28 07:53:51 UTC (rev 83276)
@@ -89,20 +89,6 @@
 
     <div class="visualClear"></div>
 
-    <dl class="portlet" tal:condition="nothing">
-      <dt class="portletHeader">Getting Started</dt>
-      <dd class="portletItem">
-        <ul>
-          <li><a href="/hardcoded">Stuff in "End User" doc section</a></li>
-          <li><a href="/hardcoded">Stuff in "End User" doc section</a></li>
-        </ul>
-      </dd>
-      <dd class="portletFooter">All End User Documentation</dd>
-    </dl>
-
-    <div class="visualClear"></div>
-
-
     <h2>Contribute to the Documentation</h2>
     
     <p>

Modified: gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/portlets/phc_grok.pt
===================================================================
--- gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/portlets/phc_grok.pt	2008-01-28 07:35:21 UTC (rev 83275)
+++ gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/portlets/phc_grok.pt	2008-01-28 07:53:51 UTC (rev 83276)
@@ -5,18 +5,44 @@
 <div metal:define-macro="portlet" id="finddoc_portlet">
 
     <div id="sidebarTop">
-    	<p id="sidebarHeader">Grok Documentation</p>
+    	<p id="sidebarHeader">
+    	    <a href="#"
+    	       tal:attributes="href here/getPHCUrl">Grok Documentation</a>
+    	</p>
     </div>
 
     <dl class="portlet">
+        <dd class="portletItem">
+            <form name="searchform"
+                  action="#"
+        		  tal:attributes="action string: ${here/getPHCUrl}/phc_search">
 
+        		<input class="inputLabelActive searchField portlet-search-gadget"
+        			type="text" title="Search Site" size="15" name="SearchableText"
+        			autocomplete="off" />
+
+        		<input class="searchButton" type="submit" value="Search"/>
+
+                <p class="discreet">Searches only in Documentation</p>
+            </form>
+        </dd>
+    </dl>
+    
+    <dl class="portlet">
+
         <dd class="portletItem">
         
         <p style="line-height: 1.5em; margin-bottom: 0;">
-        Brand new to Grok? The 
+        Brand new to Grok?</p>
+        
         <a href="#" tal:attributes="href string:${here/portal_url}/documentation/book/">
-        Grok Tutorial</a>
-        is place to start learning about Grok.
+        <img src="#" tal:attributes="src string:${here/portal_url}/Camp_fire.jpg" alt="" />
+        </a>
+        
+        <p style="margin-bottom: 0;">
+        Start with the
+        <a href="#" tal:attributes="href string:${here/portal_url}/documentation/book/">
+        Grok Tutorial &raquo;</a>
         </p>
         
         </dd>

Added: gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/skins/smash_custom_templates/rss_template.pt
===================================================================
--- gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/skins/smash_custom_templates/rss_template.pt	                        (rev 0)
+++ gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/skins/smash_custom_templates/rss_template.pt	2008-01-28 07:53:51 UTC (rev 83276)
@@ -0,0 +1,60 @@
+<?xml version="1.0"?>
+<rdf:RDF
+  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+  xmlns:dc="http://purl.org/dc/elements/1.1/"
+  xmlns:syn="http://purl.org/rss/1.0/modules/syndication/"
+  xmlns="http://purl.org/rss/1.0/"
+  xmlns:tal="http://xml.zope.org/namespaces/tal"
+  xmlns:i18n="http://xml.zope.org/namespaces/i18n"
+  xmlns:metal="http://xml.zope.org/namespaces/metal"
+ >
+
+<metal:block 
+    define-macro="master" 
+    tal:define="syn context/portal_syndication;
+                default_max syn/getMaxItems;
+                max max_items|python:syn.getMaxItems(here);
+                max python:same_type(max, 1) and max or default_max;
+                objects python: objectList[:max]"
+    >
+
+<metal:block tal:define="dummy python:request.RESPONSE.setHeader('Content-Type', 'text/xml;;charset='+context.plone_utils.getSiteEncoding())" />
+
+<channel rdf:about="" tal:attributes="rdf:about request/URL" >
+  <title tal:content="context/pretty_title_or_id">The title</title>
+  <link tal:content="context/portal_url">http://url.to.portal</link>
+  
+  <description>
+    <metal:block define-slot="description">
+       <tal:block content="context/Description">
+        Default rss description goes here
+        </tal:block>
+       </metal:block>
+  </description>
+  
+  <tal:comment replace="nothing">
+    The syndication tool is pretty brain dead and won't let you access the variables
+    you need for this from something like search_rss, unless you've enable site syndication
+    it really needs rewriting.
+  </tal:comment>
+  <metal:block define-slot="syndication" />
+  
+  <image
+    rdf:resource=""
+    tal:attributes="rdf:resource string:${context/portal_url}/${context/base_properties/logoName}" />
+
+  <items>
+    <rdf:Seq>
+        <tal:block repeat="obj_item python: objects">
+            <rdf:li rdf:resource=""
+                tal:attributes="rdf:resource obj_item/getURL|obj_item/absolute_url" />
+        </tal:block>
+    </rdf:Seq>
+  </items>
+
+</channel>
+
+<tal:block repeat="brain python: objects">    <item rdf:about="" tal:attributes="rdf:about obj_item/getURL|obj_item/absolute_url;" tal:define="obj_item brain/getObject|nocall:brain">        <title tal:content="obj_item/pretty_title_or_id">Title</title>        <link tal:content="obj_item/Identifier">Identifier</link>        <description><span tal:replace="obj_item/Description"/><span tal:condition="obj_item/getText|nothing" tal:replace="obj_item/getText" /></description>        <dc:publisher tal:content="obj_item/Publisher">Publisher</dc:publisher>        <dc:creator tal:content="obj_item/Creator">Creator</dc:creator>        <dc:rights tal:content="obj_item/Rights">Rights</dc:rights>        <tal:block tal:repeat="item obj_item/Subject">            <dc:subject tal:content="item">Item</dc:subject>        </tal:block>        <dc:date tal:content="python: obj_item.modified().HTML4()">Modification date</dc:date>        <dc:type tal:content="obj_item/Type">Type</dc:type>    </item></tal:block>
+
+</metal:block>
+</rdf:RDF>
\ No newline at end of file

Modified: gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/skins/smash_styles/gzo.plonesmashtheme.css.dtml
===================================================================
--- gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/skins/smash_styles/gzo.plonesmashtheme.css.dtml	2008-01-28 07:35:21 UTC (rev 83275)
+++ gzo.plonesmashtheme/trunk/gzo/plonesmashtheme/skins/smash_styles/gzo.plonesmashtheme.css.dtml	2008-01-28 07:53:51 UTC (rev 83276)
@@ -261,15 +261,14 @@
 }
 
 #portal-personaltools {
-	font-size: 0.8em;
-	line-height:1.6em;
-	list-style-image:none;
-	list-style-position:outside;
-	list-style-type:none;
-	margin:0pt;
-	padding:0em 3em;
-	text-align:right;
-	text-transform:none;
+	line-height: 1.6em;
+	list-style-image: none;
+	list-style-position: outside;
+	list-style-type: none;
+	margin: 0pt;
+	padding: 0em 3em;
+	text-align: right;
+	text-transform: none;
 }
 
 #portal-personaltools li a {
@@ -338,7 +337,7 @@
 	font-size: 80%;
 	font-weight: normal;
 	line-height: 20px;
-	color: #bbbbbb;
+	color: #999999;
 	width: 80%;
 	margin: 0 8px 0px 8px;
 }
@@ -413,16 +412,19 @@
 #sidebarTop {
 	background: url(&dtml-portal_url;/sidebarTop.jpg) no-repeat top center;
 	height: 28px;
-	color:#BBBBBB;
-	font-size:12px;
-	font-weight:bold;
-	text-align:center;
+	color: #999999;
+	font-size: 12px;
+	font-weight: bold;
+	text-align: center;
 }
 
 #sidebarHeader {
     padding-top: 0.5em;
 }
 
+#sidebarHeader a {
+	color: #999999 !important;
+}
 
 /* Navigation Portlet */
 



More information about the Checkins mailing list