I tire of the elaborate hoops I have to jump through to do the simplest things in Umbraco. I frequently wish for a simple method to place code directly into a page at any point I choose, without having to set up a new macro, XSLT file, document type, associating them all together, allowing the doc type to be created under the node in question, logging in to the server to create some code-behind, recycling the app pool and touching the web config file. What a waste of time this system is. Is there a way to add some c# code straight into the RTE, with tags around it to signify its purpose, as one can do in all other CMSs I've worked with (Drupal, Joomla, DNN, Wordpress, DNN, Textpattern)?
Why is that you need to mix code and content? The rich text editor is for content only. Not for entering markup directly.
What is the purpose of the code you have the need to put int the pages? Is it something general or is it something unique for a specific node? Could you try to describe the scenarios that you're facing? Perhaps there is a better way around it than mixing up content and code - does not sound correct in my ears.
Besides I really doubt that it's possible to enter C# code directly in drupal, Joomla, Textpattern and wordpress ;-)
But please ellaborate a bit more on what you often need to do - I'm positive that there is a better way around it.
Hi Jan, thanks for your kind patience. You're right of course.
Specifically, I have a function in my master page that I would like to call from within the text of any article (it checks a user's AD groups and displays a line of content based on their memberships). And I'd like to call that function at any point within the text of any page - how is this done in Umbraco?
Use code in RTE
I tire of the elaborate hoops I have to jump through to do the simplest things in Umbraco. I frequently wish for a simple method to place code directly into a page at any point I choose, without having to set up a new macro, XSLT file, document type, associating them all together, allowing the doc type to be created under the node in question, logging in to the server to create some code-behind, recycling the app pool and touching the web config file. What a waste of time this system is. Is there a way to add some c# code straight into the RTE, with tags around it to signify its purpose, as one can do in all other CMSs I've worked with (Drupal, Joomla, DNN, Wordpress, DNN, Textpattern)?
You can always use uSiteBuilder to create your templates. You'd then have code-behind to place your c# code.
Hi Jed
Why is that you need to mix code and content? The rich text editor is for content only. Not for entering markup directly.
What is the purpose of the code you have the need to put int the pages? Is it something general or is it something unique for a specific node? Could you try to describe the scenarios that you're facing? Perhaps there is a better way around it than mixing up content and code - does not sound correct in my ears.
Besides I really doubt that it's possible to enter C# code directly in drupal, Joomla, Textpattern and wordpress ;-)
But please ellaborate a bit more on what you often need to do - I'm positive that there is a better way around it.
Cheers,
Jan
Hi Jan, thanks for your kind patience. You're right of course.
Specifically, I have a function in my master page that I would like to call from within the text of any article (it checks a user's AD groups and displays a line of content based on their memberships). And I'd like to call that function at any point within the text of any page - how is this done in Umbraco?
Thank you!
is working on a reply...