I asume you're thinking about how to modify the text in the user control you have created? You should be able to edit it using Visual Studio and if you're just modifying the .ascx file it should not be neccessary to do a build. Simply just copy over the file to whereever you need it.
Hope this helps - otherwise please ellaborate a bit more :)
If you're wanting to allow a user to edit the data in a usercontrol, I guess you could have a document type with say a field called "usercontrolContent" and then pull this field from the backend of the usercontrol using the umbraco API?
Yes, I can understand that - sorry for misunderstanding your initial post. #h5is :)
In the scenario you describe above I see this as a maro that can be inserted a different pages through the rich text editor. And I think the best option is to have the label text set as parameters on the macro so the parameters are passed to the user control.
When you have created a macro in the developer section you can click on it and go to the "parameters" tab where you can add the desired parameters. Define their alias (what you will refer in the user control) and friendly name (dispayed when inserting the macro) and then set the type to "text".
Editing text in user control
Hi All -- Wrote a small registrion user control. What is the best way to edit the text in the user control by "Editor" user? Thanks.
Hi Sha Le
I asume you're thinking about how to modify the text in the user control you have created? You should be able to edit it using Visual Studio and if you're just modifying the .ascx file it should not be neccessary to do a build. Simply just copy over the file to whereever you need it.
Hope this helps - otherwise please ellaborate a bit more :)
/Jan
If you're wanting to allow a user to edit the data in a usercontrol, I guess you could have a document type with say a field called "usercontrolContent" and then pull this field from the backend of the usercontrol using the umbraco API?
@Jan, I meant the text in the user control page....(yes...I can edit since I created this user control, but I want the site editor to handle this).
Details:
Hi Sha Le
Yes, I can understand that - sorry for misunderstanding your initial post. #h5is :)
In the scenario you describe above I see this as a maro that can be inserted a different pages through the rich text editor. And I think the best option is to have the label text set as parameters on the macro so the parameters are passed to the user control.
When you have created a macro in the developer section you can click on it and go to the "parameters" tab where you can add the desired parameters. Define their alias (what you will refer in the user control) and friendly name (dispayed when inserting the macro) and then set the type to "text".
This video shows you how it's done :) http://umbraco.com/help-and-support/video-tutorials/introduction-to-umbraco/developer-introduction/macro-parameters/TVPlayer
Hope this helps.
/Jan
Great! Thx Jan.
is working on a reply...