Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C425DAC5 for ; Tue, 2 Oct 2012 22:18:02 +0000 (UTC) Received: (qmail 97054 invoked by uid 500); 2 Oct 2012 22:18:01 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 96923 invoked by uid 500); 2 Oct 2012 22:18:01 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 96915 invoked by uid 99); 2 Oct 2012 22:18:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2012 22:18:01 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_REPLY,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 98.139.91.220 is neither permitted nor denied by domain of kay.schenk@gmail.com) Received: from [98.139.91.220] (HELO nm21-vm0.bullet.mail.sp2.yahoo.com) (98.139.91.220) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 02 Oct 2012 22:17:52 +0000 Received: from [72.30.22.77] by nm21.bullet.mail.sp2.yahoo.com with NNFMP; 02 Oct 2012 22:17:32 -0000 Received: from [66.94.237.104] by tm11.bullet.mail.sp2.yahoo.com with NNFMP; 02 Oct 2012 22:17:32 -0000 Received: from [127.0.0.1] by omp1009.access.mail.mud.yahoo.com with NNFMP; 02 Oct 2012 22:17:32 -0000 X-Yahoo-Newman-Id: 68684.21347.bm@omp1009.access.mail.mud.yahoo.com Received: (qmail 99839 invoked from network); 2 Oct 2012 22:17:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1349216252; bh=nfCt/RHoFdh8O0VdWMJvu/rwrFGktWdSy9g11anTrf4=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=1T6x3d9wrs0bzOZ70+V/igL2JuZ0BqsWg3YDAFFx0y6Gu1T3vtn8Euz00BIHhprbuqmDEm/NygnLbCGfTGg3vhmFxpG3nkodI93snremvCTXcfWRkoULXtmoLrXtMb46+Pgqz1rjwvkP4rHqbXEc8sShpn6DRAzl2/PRELsRlu0= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: tmlSdJcVM1mbtc.BiTJn1N7ojNGoxslWstUPqWGQtFm.Zqi 4rtwnS8q533Ohhekll1cjXUpDl4PghDoDq_i84yA8HivpMOqDdEzudqboEqz pea083adgtcrJbKkWWd71E2nB.yrsOpOninoPPmHLhE5KE5fCE2.QVR0GdVc LUN9YqNV3qAUhLWNKkLThIk7PUtGl9Cmj4wjn1uwF_4XFytLCKYq3mxOezI7 .zJvIkzqvTov5NfxNpfjt9X1pKPqNZYxXA5amdR.IXyY2plwhZcPfKCRg1GS okYuVxhPmucAwuMA7c7ZysD_FDvZBi2hzE4p8.9fDfqxOHO.mjIlb8hhs5yl i_VzOA5qCtViBosr7tfgsBYTXfPNr0vsNK42bzR9PDlQR_jk3eIZq9xa3XUJ TvaSBhhW5BGXOHOsC.csdI3ExJiCxjOUPAFiCc1GyNmcVT1NQ9sj64chI2Xs rJUCagqn3SPbPyyc6pSfni2YGhPami1Hn00pGTSKWUPr8y44s7gAAIZbiPmo BcLNe0s9G7KqTaTzpoXGFH9i9rxiCVC2GsL.gXJiwuhJBTg-- X-Yahoo-SMTP: dHt73eiswBAYjuZ6oL.TTjbe.KQkAIve Received: from [192.168.1.107] (kay.schenk@67.121.235.77 with plain) by smtp112.sbc.mail.mud.yahoo.com with SMTP; 02 Oct 2012 15:17:31 -0700 PDT Message-ID: <506B67B1.9000207@gmail.com> Date: Tue, 02 Oct 2012 15:16:17 -0700 From: Kay Schenk User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120825 Thunderbird/15.0 MIME-Version: 1.0 To: ooo-dev@incubator.apache.org Subject: Re: News article integration with home page References: <5065DA71.3080409@gmail.com> <20120929154044.GC22525@localhost> <8FD502F6-D7B6-415E-8B8C-89F16F0B5483@comcast.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 09/29/2012 02:27 PM, Kay Schenk wrote: > > > On Sat, Sep 29, 2012 at 1:29 PM, Dave Fisher > wrote: > > > On Sep 29, 2012, at 1:24 PM, Dave Fisher wrote: > > > > > On Sep 29, 2012, at 9:24 AM, Kay Schenk wrote: > > > >> On Sat, Sep 29, 2012 at 8:40 AM, Ariel Constenla-Haile > >> >wrote: > >> > >>> On Sat, Sep 29, 2012 at 10:12:25AM -0400, Rob Weir wrote: > >>>> What makes this different from our other SSI uses is we need > to limit > >>>> the number of articles displayed. We want to avoid having an > >>>> open-ended list of articles appear on the home page, since > that would > >>>> just length the page and put the important footer info far > down. It > >>>> would be ugly as well. So ideally we want some logic that > puts the > >>>> 5 or so most recent stories on the home page, and then puts > the full > >>>> list of articles on the dedicated news page. Or maybe even does > >>>> something fancier, like group articles by month or year on the > news > >>>> page. But minimum requirement is probably to be able to limit > number > >>>> of articles on home page. > >>>> > >>>> Is this something that is easy/possible to do with the way > we're using > >>>> the CMS? > >>> > >> > >> Well it would be done with the CSS "frame" idea I mentioned. So > we could > >> limit the initial length. and basically enwble a scrolling like > approach.. > >> > >> > >>> the main Apache site uses a module to generate the "News", > >>> http://openejb.apache.org/ too. > >>> > >> > >> Ariel -- > >> > >> Thanks for pointing this out. This approach was mentioned in > that same > >> chat I had concerning ssi, but I couldn't readily find any > additional > >> information. So, I'll take a look when I get a moment. > >> > >> and ... > >> > >> @Dave, re ssi. I know we use these for the header portion but I also > >> realize this is a like a one time thing that basically only > happens at site > >> build (commit, publish) and is not a continual dynamic parse > like enabling > >> ssi for the site would be, right? > > > > Correct. > > > >> There seemed to be concern about the > >> overhead for ssi on a continual basis, even with specifying say > an ".shtml" > >> extension. Plus, the concern about enabling this for such > limited use. > > > >> > >> Anyway, if we could do this via the CMS for "occasional" news > items, ti > >> would be better I guess. > > > > Exactly. Just edit a news.xml file and setup the CMS to use xsltproc. > > > >> > >> More investigation needed... > > > > Please see my response in the consultants thread. This has almost > the whole explanation. Additional information pertinent to both threads: > > > > (1) templates/html_fragment.html > > > > A new template is required for generated html fragments. > > > >
{% block content %}{{ content|safe > }}{% endblock %}
> > > > The headers.divid can be injected in (3) below. > > > > (2) lib/path.pm > > > > Has name to lib/view.pm proc and templates/ > mappings for different file types. XSLT types will need to be added. > (Also for consultants.xml) > > > > our @patterns = ( > > [qr!doctype.mdtext$!, single_narrative => { template => > "doctype.html" }], > > [qr!brand.mdtext$!, single_narrative => { template => > "brand.html" }], > > [qr!footer.mdtext$!, single_narrative => { template => > "footer.html" }], > > [qr!topnav.mdtext$!, single_narrative => { template => > "navigator.html" }], > > [qr!leftnav.mdtext$!, single_narrative => { template => > "navigator.html" }], > > [qr!rightnav.mdtext$!, single_narrative => { template => > "navigator.html" }], > > [qr!\.mdtext$!, single_narrative => { template => > "single_narrative.html" }], > > [qr!\.html$!, html_page => { template => "html_page.html" }], > > [qr!\.htm$!, html_page => { template => "html_page.html" }], > > ) ; > > > > Add something like the follwoing to convert an xml into an html > file to be included via ssi. > > > > [qr!news.xml$!, news_page => { template => > "html_fragment.html" }], > > Of course it would probably easiest to create news.mdtext and add > > [qr!news.mdtext$!, single_narrative => { template => > "navigator.html" }], > > Set the divid in news.mdtext for the css class for the overall news div. > > Regards, > Dave yes...looking into this more it's become clear to me that this will involve changes to at least our view.pm....so I will need to get going on the "local" setup business to test some things out. more later ... > > > Ok, -- where is this "consultants" thread ???? > > One day I will do a schematic on how the CMS works... > > > > > > > > > Add something like the following to convert an xml into a full > site page. > > > > [qr!consultatnts.xml$!, consultants_page => { template => > "html_page.html" }], > > > > > > (3) lib/view.pm > > > > news_page and consultants_page are new procedures. See xsltproc > information on the other thread. > > > > Regards, > > Dave > > > > > >> > >> > >>> See > >>> > >>> > http://svn.apache.org/repos/asf/infrastructure/site/trunk/newsfeed/README.txt > >>> It seems the DEFAULT_FEED_LOCATION is set to > >>> http://blogs.apache.org/foundation/feed/entries/rss , see > >>> > >>> > http://svn.apache.org/repos/asf/infrastructure/site/trunk/newsfeed/src/org/apache/site/Newsfeed.java > >>> > >>> > >>> Regards > >>> -- > >>> Ariel Constenla-Haile > >>> La Plata, Argentina > >>> > >> > >> > >> > >> -- > >> > ---------------------------------------------------------------------------------------- > >> MzK > >> > >> "Just 'cause you got the monkey off your back > >> doesn't mean the circus has left town." > >> -- George Carlin > > > > > > > -- > ---------------------------------------------------------------------------------------- > MzK > > "Just 'cause you got the monkey off your back > doesn't mean the circus has left town." > -- George Carlin > > > -- ------------------------------------------------------------------------ MzK "Just 'cause you got the monkey off your back doesn't mean the circus has left town." -- George Carlin