I would like to ask a tutorial to create a sample plugin for Umbraco CMS. It is just like a plugin that can show a HelloWord text on home page of Umbraco CMS.
I'm about to pack the plugin into a zip file and try to install it via "Installed packages". But I stuck at how to add the helloworld section into "/Config/Dashboard.config"? During the installation, there must be a method to do that. Could you help me about this?
Attachment is the sample plugin for Umbraco CMS that I have made base on your instruction.
Is there HelloWorld plugin for Umbraco CMS?
Hi Everyones,
I would like to ask a tutorial to create a sample plugin for Umbraco CMS. It is just like a plugin that can show a HelloWord text on home page of Umbraco CMS.
Sincerely, Tri
Hello Nguyen.
To get you started:
Your plugin structure should look something like this:
In your helloworld.html, add:
In your helloworld.controller.js, add:
To connect the html file and the js file together, add this in your package.manifest file:
Lastly, you need to update /Config/Dashboard.config. Find the StartupDashboardSection section and in that add the following:
The result will be this in the admin welcome page:
Hope it helps!
Oh, sorrry.
You need this line at the bottom of your helloworld.controller.js:
Thank for your feedback, Dennis Adolfi. Now I have a first understanding of how a plugin work on Umbraco CMS.
Sincerely, Dung Tri
Awesome!
Glad i could help! :)
Hi Dennis Adolfi,
I'm about to pack the plugin into a zip file and try to install it via "Installed packages". But I stuck at how to add the helloworld section into "/Config/Dashboard.config"? During the installation, there must be a method to do that. Could you help me about this?
Attachment is the sample plugin for Umbraco CMS that I have made base on your instruction.
Sincerely,
Dung Tri
Hi Dennis Adolfi,
I have managed to solve the issue of adding the helloworld section into "/Config/Dashboard.config".
Inside the package.xml, I add this section:
This section means:
Note: The same action tag with runat="uninstall" will remove HelloWorld tag from Dashboard.config file when you delete your package from Umbraco CMS.
For more information please read these articles:
Umbraco add dashboard with code
Example package.xml
Sincerely,
Dung Tri
Great work!!!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.