On a similar note, imagine the possibility of embedding JS in a document, and defining a function such as<div>function calligra_version() { return "2.6"; }</div><div><br></div><div>then, having some kind of user field that contained '=calligra_version()' that would display the appropriate content/</div>
<div><br><br><div class="gmail_quote">On Mon, Nov 14, 2011 at 8:30 PM, Sebastian Sauer <span dir="ltr"><<a href="mailto:mail@dipe.org">mail@dipe.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>
<div bgcolor="#ffffff" text="#000000"><div><div class="h5">
On 11/14/2011 01:51 PM, Pierre Stirnweiss wrote:
<blockquote type="cite">
<br>
<div>
<blockquote>
<br>
Background: I indeed think that is a rather important feature<br>
cause it's the only way to get content into a document that<br>
can be in a centralized way edited/updated. Means you for<br>
example a document describing the features of Calligra as<br>
released and then add a user-variable field for the<br>
version-number (e.g. 2.5 in our case). Then in some months<br>
if the document is updated to reflect what 2.6 is about<br>
someone only need to change the content of the<br>
calligra-version variable and voila. The alternate is to find+<br>
replace for "2.5" manually which is error-prune.<br>
</blockquote>
<div><br>
Do you mean that the only difference between a 2.5 and 2.6
release announcement would be the release number????<br>
</div>
</div>
</blockquote>
<br></div></div>
No, that was an example. Think of a document where you list<br>
all changes done between the 2.x versions. Then you can just<br>
add a new chapter for a new version that includes the changes<br>
done in e.g. 2.6, change the version-uservariables from 2.5 to<br>
2.6 and have text like "The last version of Calligra is [2.6]" or<br>
"Last release on [2011-12-24]" auto-updated.<br>
Other examples could be a reference-number in an<br>
invoice or a postal code, city-name, etc. pp.<br>
<br>
<blockquote type="cite"><br>
PierreSt<div class="im"><br>
<pre><fieldset></fieldset>
_______________________________________________
calligra-devel mailing list
<a href="mailto:calligra-devel@kde.org" target="_blank">calligra-devel@kde.org</a>
<a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a>
</pre>
</div></blockquote>
<br>
</div>
<br>_______________________________________________<br>
calligra-devel mailing list<br>
<a href="mailto:calligra-devel@kde.org">calligra-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
<br></blockquote></div><br></div>