Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 27324 invoked from network); 21 Jan 2006 18:07:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jan 2006 18:07:17 -0000 Received: (qmail 3134 invoked by uid 500); 21 Jan 2006 18:07:16 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 3108 invoked by uid 500); 21 Jan 2006 18:07:16 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 3091 invoked by uid 99); 21 Jan 2006 18:07:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2006 10:07:15 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.23.3.140] (HELO pythagoras.zen.co.uk) (212.23.3.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2006 10:01:08 -0800 Received: from [82.69.78.226] (helo=[192.168.0.2]) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1F0N2d-000711-4G for dev@forrest.apache.org; Sat, 21 Jan 2006 18:00:47 +0000 Message-ID: <43D276CA.90300@apache.org> Date: Sat, 21 Jan 2006 18:00:42 +0000 From: Ross Gardler User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@forrest.apache.org Subject: Re: Best way to add repeatable code in v2/v3 (was Re: Example use case) References: <009401c61c2c$34aa69c0$0400a8c0@madaboutipv6> <43CE3F65.8090909@apache.org> <20060119043922.GA15785@igg.indexgeo.com.au> <014b01c61ceb$6dc7a2d0$0400a8c0@madaboutipv6> <1137683606.16109.15.camel@localhost> <009101c61d50$10857a10$0400a8c0@madaboutipv6> <43D025EE.6070003@apache.org> <00b901c61d91$e5ee2210$0400a8c0@madaboutipv6> <43D0C294.8060907@apache.org> <002f01c61dc7$a15caaa0$0400a8c0@madaboutipv6> <006201c61e83$18fa8c60$0400a8c0@madaboutipv6> In-Reply-To: <006201c61e83$18fa8c60$0400a8c0@madaboutipv6> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Originating-Pythagoras-IP: [82.69.78.226] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Gav.... wrote: > Hi All, > > On the right hand side of http://minitutorials.com I have some 'headlines' > in a 'headlines' div > All boxes are in a 'rightbar' div also. > The code for this is in One file called rightnav.ssi and included using > either 'include' or 'require' > This obviously has the effect that all of the site pages get the content > from the one file. ... > 3. The html code required I transfered from rightnav.ssi into rightnav.html > and put this file > into xdocs directory. I am hoping that the /rightbar.html is > therefore correct. > > 4. Didn't see what else I would need to do, so did a 'forrest run' , did not > show up. > Also did a ForrestBot onto the web server, also does not show up. > > So, this did not work, the question is, have I done something wrong, missed > something out > or is there a different/better way to include content into the 'headlines' > hook ? I've not checked your syntax as I am not familiar enough with these contracts to see it without cross-checking with the documentation, which I assume you have done. Others will be better at spotting syntax errors. Assuming syntax is correct. Have you verified that requesting "http://localhost:8888/rightbar.html" actually returns some code? The other thing is that I wrote this contract for V1. There have been many changes since then, including the use of JX. I'm not sure if this is still the "right" way to include content. > Alternative I thought of would be to create a contract for it. Although I > can see how to > create a contract, not sure again on the best way of approaching it. Maybe > doing a similar > thing as including the body from say index.xml but using > rightnavcontent.xml, use jx: ?? See above - we need a views savvy dev to advise here. > (Re-reading the above, I see at least (at last ?) I have suggestions, so > must be learning something!) :-) and you're teaching those of us still trying to get to grips with views (when I taught at Universities I always used to learn loads by doing the labs when students would ask me why their code behaved this way or that way). > P.S- > > Creating an empty hook has the side effect of a self closing div - obviously > inlvalid and messes > up the rest of the page. Raise an issue (if there isn't one already, this is ringing a bell somewhere in the deep recesses of my mind). Ross