Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Calling function in Editabletext - html webpart View modes: 
User avatar
Member
Member
tjadoon-gmail - 9/3/2010 3:58:32 PM
   
Calling function in Editabletext - html webpart
Following link describes how to use custom functions in transformations:
http://www.kentico.com/docs/devguide/index.html?adding_custom_functions_to_transformations.htm

How can i use this same inside Editabletext - html webpart?

I have a similar problm like below when putting links to other documents in my webpart.
http://devnet.kentico.com/Forums/f45/t16108/Media-Selection-Url-Issue.aspx

here is my a tag, i need to get rid of /CompanyCmsSite if it is not my local development:
<h2><a href="/CompanyCmsSite/Research-Resources/Research-Partners.aspx">Research Partners</a></h2>
<p>Some text</p>
<h2><a href="/CompanyCmsSite/Research-Resources/Research-Team.aspx">Research Team</a></h2>
<p>Some text</p>


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/4/2010 3:05:53 PM
   
RE:Calling function in Editabletext - html webpart
Hi,

I am afraid but transformations and WYSIWYG Editor are two, very different things. In the editor you can switch the view to "source" view and add e.g. javascript or other scripts code directly into the HTML code.

Best regards,
Juraj Ondrus

User avatar
Member
Member
tjadoon-gmail - 9/4/2010 3:16:34 PM
   
RE:Calling function in Editabletext - html webpart
Not a big problem but what if javascript is bloked...

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/6/2010 2:15:45 AM
   
RE:Calling function in Editabletext - html webpart
Hi,

Another option is to use inline controls. Or, as I mentioned, in the HTML code you can use SCRIPT tags and add e.g. C# code there.

Best regards,
Juraj Ondrus