Forums

This topic is locked

Apply Template or Behavior to Multiple Files

Posted 03 Dec 2001 20:10:55
1
has voted
03 Dec 2001 20:10:55 Ernst Blofeld posted:
Anyone -

I need to apply either a template or a server behavior to apply access restrictions to 1000+ files. No other changes are needed (its a document library). Is there some way to do this without opening each file. Files have no template applied now and are .asp files.

Thanks,

ehowman

Replies

Replied 04 Dec 2001 09:06:47
04 Dec 2001 09:06:47 Viktor Farcic replied:
Maybe if you try Find&Replace from site window. Find part of the code you have on all pages and replace it. For example:
Search for:
<head>

Replace with:
CODE FOR ACCESS RESTRICTION
<head>

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Anyone -

I need to apply either a template or a server behavior to apply access restrictions to 1000+ files. No other changes are needed (its a document library). Is there some way to do this without opening each file. Files have no template applied now and are .asp files.

Thanks,

ehowman


<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Replied 04 Dec 2001 17:48:53
04 Dec 2001 17:48:53 Ernst Blofeld replied:
Thanks for the tip, that worked! It's amazing how sometimes the most obvious answer can be elusive, thanks for reminding me to think beyond what's on the drop down menus!

ehowman

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Maybe if you try Find&Replace from site window. Find part of the code you have on all pages and replace it. For example:
Search for:
&lt;head&gt;

Replace with:
CODE FOR ACCESS RESTRICTION
&lt;head&gt;

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Anyone -

I need to apply either a template or a server behavior to apply access restrictions to 1000+ files. No other changes are needed (its a document library). Is there some way to do this without opening each file. Files have no template applied now and are .asp files.

Thanks,

ehowman


<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>


<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Reply to this topic