Define and include your plugin in the top plugins.js file, also remove any 
.js.gz file. Which CloudStack branch are you working against? Make sure to 
define correct names and use something like firebug or chrome dev-tools to see 
if require.js is missing to load any plugin asset (like js, css, image files).

I’m currently working on a UI plugin, if this gives you any hints:
https://github.com/shapeblue/cloudstack/tree/quota/ui/plugins

On 21-Jul-2015, at 4:05 pm, Hopkins, Michael 
<michael.hopkin...@imperial.ac.uk<mailto:michael.hopkin...@imperial.ac.uk>> 
wrote:

Hi,
I’m trying to write a 3rd party UI plugin for cloudstack for a university 
project, unfortunately I can’t seem to get the “plugins” section of the UI to 
display.

In usr/share/cloudstack-management/webapps/client/plugins

I have two test plugins “testPlugin” and “csMyFirstPlugin” which are folders 
containing all the relevant files as per the tutorial provided in the 
documentation.

In plugins.js I have registered them as per the instructions in the tutorial.

It seems that in /scripts/cloudStack.js the plugins section is hidden if 
cloudstack.plugins.length is 0.

I thought that registering the plugins in plugins.js would suffice to make the 
section visible but is there another step? I can’t find any answers online.

Thanks, Michael

Regards,
Rohit Yadav
Software Architect, ShapeBlue


[cid:9DD97B41-04C5-45F0-92A7-951F3E962F7A]


M. +91 88 262 30892 | 
rohit.ya...@shapeblue.com<mailto:rohit.ya...@shapeblue.com>
Blog: bhaisaab.org<http://bhaisaab.org> | Twitter: @_bhaisaab




Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Software 
Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure 
Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England & Wales. ShapeBlue Services India LLP is a company 
incorporated in India and is operated under license from Shape Blue Ltd. Shape 
Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company 
registered by The Republic of South Africa and is traded under license from 
Shape Blue Ltd. ShapeBlue is a registered trademark.

Reply via email to