Hello,
I've got a number of html fragments (in a template file) which are bundled
together in a cms.
I'm sure that there's a way through javascript to convert a piece of code
like this:
<!-- START BE_sectionNew-htmlarea2.tpl -->
to a clickable link like:
<a href="admin/editTemplate.ph p?file=BE_secti onNew-htmlarea2.tpl"> <img
src="/image/template.png"></a>
I'm just not a javascript guy and am not sure how to apply a regular
expression and rewrite the page output in javascript.
Any suggestions?
My ultimate goal is to put some way to easily mark and/or edit the
beginning/end of each of the template files which is used to make up a
page to make it easier for folks to edit it.
Mike
I've got a number of html fragments (in a template file) which are bundled
together in a cms.
I'm sure that there's a way through javascript to convert a piece of code
like this:
<!-- START BE_sectionNew-htmlarea2.tpl -->
to a clickable link like:
<a href="admin/editTemplate.ph p?file=BE_secti onNew-htmlarea2.tpl"> <img
src="/image/template.png"></a>
I'm just not a javascript guy and am not sure how to apply a regular
expression and rewrite the page output in javascript.
Any suggestions?
My ultimate goal is to put some way to easily mark and/or edit the
beginning/end of each of the template files which is used to make up a
page to make it easier for folks to edit it.
Mike
Comment