----- Original Message ---- > From: Dave Fisher <[email protected]> > To: [email protected] > Cc: [email protected] > Sent: Mon, July 4, 2011 2:47:50 PM > Subject: Re: svn commit: r792168 - in /websites/production/openofficeorg: ./ >content/openofficeorg/people.html > > OK - I have a sense how atachments work from >http://www.apache.org/dev/index.html and then invoking the bookmarklet > > I see that attachments are important for multiple content markups. > > <div class="section-content"> > {{ links.content|markdown }} > </div> > > In the other example: > > {% block content %} > <div id="content" class="grid_16"> > <div class="section-content">{{ main.content|markdown }} > {{ table|safe }} > </div> > </div> > {% endblock %} > > It is not clear how table|safe corresponds with the attached eccnmatrix.xml >and eccnmatrix.xsl. Is that hidden in the view.pm?
Yes, you need to look at the code in view.pm which handles that url to see how it works. > > Maybe I don't understand attachments in the Apache CMS. > > I am thinking of sidenav.mdtext. Is it possible to attach this to every >English language page and maintain it a single space? Well that's not how I'd do it. I'd create per-language base templates each of which pull-in a different per-lang version of sidenav.mdtext. You can give them all the same basic look and feel using template inheritance and css. > > Also for the xml example, this looks like a path to a sort filter. I just tried my hand at implementing one. > > Regards, > Dave > > > On Jul 4, 2011, at 11:20 AM, Joe Schaefer wrote: > > > > > > > > > > > ----- Original Message ---- > >> From: Alexandro Colorado <[email protected]> > >> To: [email protected] > >> Cc: [email protected] > >> Sent: Mon, July 4, 2011 2:04:30 PM > >> Subject: Re: svn commit: r792168 - in /websites/production/openofficeorg: >./ > > >> content/openofficeorg/people.html > >> > >> On Mon, Jul 4, 2011 at 12:45 PM, Joe Schaefer ><[email protected]>wrote: > >> > >>> That's not useful criticism. Either learn some perl > >>> and code it up for the project to use, or learn some > >>> python and submit your change upstream. Either way > >>> discussing php is kinda pointless for this. > >>> > >> > >> Well it could be whatever u want, as long as is some dynamic script, it > >> could be Javascript for all I know. Is the implementation that I have no > >> idea how to integrate to the CMS. So the problem is not the script. Python > >> and Perl also have some sort()-like function as well. > > > > As I explained to Dave, the best way to understand how the CMS works is to > > think of it as django done (mostly) in perl, but with an agressive >filesystem > > cache. (Pretend the markdown files are "from the database", and read up on > > how django dispatches urls to view code via urls.py- that will give you >clues as > > to how the path.pm @patterns array works). > > > > The code you write in view.pm to process a (markdown) file can be > > arbitrary, > > > even > > to call out to php if you can convince me to install php on the cms > > server. >And > > besides that aspect, the markdown daemon is the python implementation > > which >is > > designed to be extensible, and we already run a custom asf-only extension >here. > > Adding more of those if they're well done is certainly ok with me. > > > > Yes it takes time to familiarize oneself with the CMS, as it is not a >typical > > CMS. It is designed to be both powerful and easy to use, and based on > > generating > > read-only cacheable content from a variety of sources (not all of which > > need >to > > be on disk). Look over the documentation for the www.apache.org site and > > checkout > > how a few of the more complex sample pages like http://www.apache.org/dev/ >and > > http://www.apache.org/licenses/exports/ to see some of the capabilities. > > > > If you have any questions along the lines of "How do I do so and so" that >are > > not answered at http://www.apache.org/dev/cmsref.html , ask here and I'll be > > glad to both update that page and give you suggestions. If it's >interesting > > enough I may even help you write it ;-). > > > >> > >> > >> > >>> > >>> > >>> > >>> ----- Original Message ---- > >>>> From: Alexandro Colorado <[email protected]> > >>>> To: [email protected] > >>>> Cc: [email protected] > >>>> Sent: Mon, July 4, 2011 1:25:33 PM > >>>> Subject: Re: svn commit: r792168 - in >/websites/production/openofficeorg: > >>> ./ > >>>> content/openofficeorg/people.html > >>>> > >>>> On Mon, Jul 4, 2011 at 11:09 AM, Dave Fisher <[email protected]> > >>> wrote: > >>>> > >>>>> > >>>>> On Jul 4, 2011, at 8:54 AM, Joe Schaefer wrote: > >>>>> > >>>>>> At 23' full-screen it renders just fine ;-). I'd say try > >>>>>> playing with the min-width css attribute for th or td. > >>>>>> > >>>>>> > >>>>>> You have a choice here of using ooo.css or embedding > >>>>>> a <style type="text/css"> block in the markdown just > >>>>>> before the table. > >>>>> > >>>>> That will be a PITA - each column needs a different minimum width and > >>> there > >>>>> is no way to differentiate. > >>>>> > >>>>> Maybe someone should enhance markdown extras. > >>>>> > >>>>> http://michelf.com/projects/php-markdown/extra/#table > >>>>> > >>>>> All it can do is control the alignment. Width control ought to be > >>> allowed, > >>>>> either that or an id / class tag to actually tie it in with specific > >>> css. > >>>>> > >>>>> | Item | Value | > >>>>> | ------200 | --:100| > >>>>> | Computer | $1600 | > >>>>> | Phone | $12 | > >>>>> | Pipe | $1 | > >>>>> > >>>>> Thoughts? > >>>>> > >>>>> Otherwise I really don't see why it's wrong to have the html table > >>> here. > >>>>> > >>>> > >>>> Now we just need to find out if there is something like ^ or v to sort > >>> the > >>>> table by names. If it was pure php then we could do some sort() > >>> function. > >>>> > >>>> > >>>> > >>>>> > >>>>> Regards, > >>>>> Dave > >>>>> > >>>>>> > >>>>>> > >>>>>> ----- Original Message ---- > >>>>>>> From: Dave Fisher <[email protected]> > >>>>>>> To: [email protected] > >>>>>>> Cc: [email protected] > >>>>>>> Sent: Mon, July 4, 2011 11:50:06 AM > >>>>>>> Subject: Re: svn commit: r792168 - in > >>>>> /websites/production/openofficeorg: ./ > >>>>>>> content/openofficeorg/people.html > >>>>>>> > >>>>>>> Hi Joe, > >>>>>>> > >>>>>>> Thanks for switching the people.mdtext to wiki formatting. > >>>>>>> > >>>>>>> There was one change lost in your conversion. I had set the width > >>> of > >>>>> the first > >>>>>>> three columns. By doing that the table was much easier to read. > >>>>>>> > >>>>>>> How do we set column width in markdown? > >>>>>>> > >>>>>>> Regards, > >>>>>>> Dave > >>>>>>> > >>>>>>> On Jul 4, 2011, at 8:22 AM, [email protected] wrote: > >>>>>>> > >>>>>>>> Author: joes > >>>>>>>> Date: Mon Jul 4 15:22:24 2011 > >>>>>>>> New Revision: 792168 > >>>>>>>> > >>>>>>>> Log: > >>>>>>>> Publishing merge to openofficeorg site by joes > >>>>>>>> > >>>>>>>> Modified: > >>>>>>>> websites/production/openofficeorg/ (props changed) > >>>>>>>> > >>> websites/production/openofficeorg/content/openofficeorg/people.html > >>>>>>>> > >>>>>>>> Propchange: websites/production/openofficeorg/ > >>>>>>>> > >>>>>>> > >>>>> > >>> > >>> > >>> >------------------------------------------------------------------------------ > >>>>>>>> --- svn:mergeinfo (original) > >>>>>>>> +++ svn:mergeinfo Mon Jul 4 15:22:24 2011 > >>>>>>>> @@ -1 +1 @@ > >>>>>>>> -/websites/staging/openofficeorg/trunk:791146-792165 > >>>>>>>> +/websites/staging/openofficeorg/trunk:791146-792167 > >>>>>>>> ; > >>>>>>>> Modified: > >>>>>>> > > websites/production/openofficeorg/content/openofficeorg/people.html > >>>>>>>> > >>>>>>> > >>>>> > >>> > >>> > >>> >============================================================================== > >>>>>>>> --- > >>> websites/production/openofficeorg/content/openofficeorg/people.html > >>>>>>> (original) > >>>>>>>> +++ > >>>>> websites/production/openofficeorg/content/openofficeorg/people.html > >>> Mon > >>>>>>> Jul 4 15:22:24 2011 > >>>>>>>> @@ -192,7 +192,7 @@ to look at all contributors to our issue > >>>>>>>> </tr> > >>>>>>>> <tr> > >>>>>>>> <td>homembit</td> > >>>>>>>> -<td><a href="http://www.homembit.com"">Jomar Silva</a></td> > >>>>>>>> +<td><a href="http://www.homembit.com">Jomar Silva</a></td> > >>>>>>>> <td>Sao Paulo, Brazil</td> > >>>>>>>> <td>C/C++, Python, XML, ODF, Architecture, Marketing, > >>> Localization, > >>>>>>> Documentation, Community Management</td> > >>>>>>>> </tr> > >>>>>>>> > >>>>>>>> > >>>>>>> > >>>>>>> > >>>>> > >>>>> > >>>> > >>>> > >>>> -- > >>>> *Alexandro Colorado* > >>>> *OpenOffice.org* Español > >>>> http://es.openoffice.org > >>>> > >>> > >> > >> > >> > >> -- > >> *Alexandro Colorado* > >> *OpenOffice.org* Español > >> http://es.openoffice.org > >> > >
