2 ms·
Neat! It might be interesting to have a tag for 'replace-with-edited-text-if-available'. (This falls somewhere between the editable-model-fields and alternate-t
by gojomo 14y ago
Neat! It might be interesting to have a tag for 'replace-with-edited-text-if-available'. (This falls somewhere between the editable-model-fields and alternate-translations cases.) For example:
{% replaceable %}
<h1>Hello</h1>
<p>This text might not appear, <i>if</i> it
is ever edited-in-place.</p>
{% endreplaceable %}
When edited, the module would derive a deterministic unique key for the modified HTML and store in the database. Future redisplays would use the edited text. (Optional parameters might help control how the unique key is derived, from either actual access URI or template name, to affect the range of pages over which one edited-replacement-text appears.)