[daisy] variables
Robert Rich
rrich at gstisecurity.com
Mon Oct 16 20:05:10 CDT 2006
Thanks for the feedback Victor! I do have a question. In your
implementation, is there an explicit declaration of the variable
anywhere, or is it essentially a very granular method of addressing a
specific part of a document in an include? Did it end up looking like
your original example below?
>Like this:
>
><p>This is a piece of static text, and I would like to expand it with
some <pre >class=”query-and-include”>variable query</pre> text.</p>
>
>The result should be this (assuming the query returns the plain text
‘Variable’):
>
>This is a piece of static text, and I would like to expand it with some
Variable text.
Thanks!
Victor Oomens wrote:
> Hi Robert,
>
> I've created the variable by:
>
> 1. Modifying the include functionality.
> 2. Adding a couple of buttons in the html editor to include the variable.
>
> The first part is the hardest part, you have to really dig into the code and
> make adjustments on several places. Please be careful with the html cleaner.
> To stay close to the daisy functionality, I've modified the include
> functionality so that it's possible to include just a single part from a
> document. The variable here is actually just a part of a document. There you
> have reusability of content. You can alter the layout of the variable
> content (no headers etc.) by using document type styling.
>
> Cheers, Victor.
>
> -----Oorspronkelijk bericht-----
> Van: daisy-bounces at lists.cocoondev.org
> [mailto:daisy-bounces at lists.cocoondev.org] Namens Robert Rich
> Verzonden: vrijdag 13 oktober 2006 20:09
> Aan: Daisy: open source CMS - general mailinglist
> Onderwerp: Re: [daisy] variables
>
> Hey Folks,
>
> I found this thread from about a year ago. In it, Victor is soliciting
> feedback on the idea of, essentially, variable substitution in Daisy
> documents. I'm encountering a similar need and wonder if anyone has done
> any more with this since then.
>
> In my case, i'm creating 'report templates', and would like to have a set of
> variables (e.g customer_name, customer_short_name, project_name) and have
> them substituted when the document is displayed, possibly only in the
> context of generating a report. (So, for example, the first document in the
> report could be a header where these values are set, and the rendering of
> the 'template' in that context would show the substituted value, not the
> variable name).
>
> This seems like something that would be most suitable for the wiki.
>
> Thoughts?
>
>
> --
> Robert Rich
> Global Security Technologies, Inc.
> Office: 614.890.6400 x7023
> NEW Mobile: *937.243.9529*
>
>
> ----- Original Message -----
> From: Victor Oomens
> [mailto:victor at oomens-ict.nl]
> To: daisy at lists.cocoondev.org
> Sent: Fri, 28
> Oct 2005 09:57:08 -0400
> Subject: [daisy] variables
>
>
>
>> Hi All,
>>
>>
>>
>> I would like to know if the following is possible.
>>
>>
>>
>> Within the daisy HTML editor, I have a piece of text within a paragraph,
>> note, fixme, or other tag. For reusability purposes, I want to put some
>> parts of the text in a 'variable' (e.g. an image part component, but then
>> for plain text). Then, the variable would be included inside the text,
>>
> thus
>
>> within the current tag. This way, I could reuse this content in another
>> document.
>>
>>
>>
>> The purpose for this would be meaningful. Suppose you are writing a manual
>> describing software, you could put al sorts of captions (like button
>> captions etc), text resources etc. in variables. When these captions,
>> resources etc, change, you would only have to change the variable content
>> and all subsequent documents are updated. (Just an example).
>>
>>
>>
>> Hope you can help me with this.
>>
>>
>>
>> Kind regards,
>>
>>
>>
>>
>>
>> Victor Oomens
>>
>>
>>
>>
>>
>>
> _______________________________________________
> daisy community mailing list
> Professional Daisy support:
> http://outerthought.org/site/services/daisy/daisysupport.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
>
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: http://outerthought.org/site/services/daisy/daisysupport.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
>
More information about the daisy
mailing list