Quick Nav:  Online Store   |   Login | Register

Replaceing text with user vars inside of replaced text

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Nelson Fernandez
<100 Posts
Posts:50


09/27/2007 11:00 AM  

Is it possible to make a replacement rule that would include a replacement for the uservars?

For example I might want to replace (using { so the formatting will not screw up):

    {head}

with:

    {head}

       {script}

         user = {RE:UserInfo.UserID}

       {/script}

 

 

 

John Mitchell
Posts:3033


09/27/2007 11:20 AM  

Yes, just make up your own token, and then create a rule to replace it .

So your inline js may have :

UserId = ~UserId~;

and then you could have a rule to replace that token



searchFor : ~UserId~
replaceWith:[RE:DNN.UserInfo.UserID]

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > Replaceing text with user vars inside of replaced text



ActiveForums 3.7
Powered by: Snapsis Software