<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Georgia;
        panose-1:2 4 5 2 5 4 5 2 3 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Shawn,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sorry we don’t have this documented yet.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">To add an item to an existing top level app menu (Files, Jobs, Clusters, Interactive Apps), if it is a static URL, you can add an app directory to /var/www/ood/apps/sys/ whose manifest.yml has a “url:
<a href="http://url.to.redirect.to">http://url.to.redirect.to</a>”. Here is an example:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a href="https://github.com/OSC/osc-xdmod">https://github.com/OSC/osc-xdmod</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The subcategory is optional and places it in a separate section in the dropdown menu.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">To add a new top level dropdown menu you have to currently modify a global variable in the dashboard app initializer. Modify or create /etc/ood/config/apps/dashboard/initializers/ood.rb and add this line:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">NavConfig.categories += ["Your Category"]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Then that dropdown will appear if any apps specify that category string. You may need to select Help -> Restart Web Server for the change to take effect.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In OnDemand 1.4 this requirement to modify the Rails initializer will be removed so that by default it will be easier to just drop new “apps” in place and have the menu organized how you prefer.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Eric<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">---<o:p></o:p></p>
<p class="MsoNormal">Eric Franz, Senior Web & Interface App Engineer<o:p></o:p></p>
<p class="MsoNormal">Ohio Supercomputer Center<o:p></o:p></p>
<p class="MsoNormal">An Ohio Technology Consortium (OH-TECH) Member<o:p></o:p></p>
<p class="MsoNormal">1224 Kinnear Road<o:p></o:p></p>
<p class="MsoNormal">Columbus, OH 43212<o:p></o:p></p>
</div>
<p class="MsoNormal">email: efranz@osc.edu<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">OOD-users <ood-users-bounces@lists.osc.edu> on behalf of "Sivy, Shawn via OOD-users" <ood-users@lists.osc.edu><br>
<b>Reply-To: </b>"Sivy, Shawn" <ssivy@tcnj.edu>, User support mailing list for Open OnDemand <ood-users@lists.osc.edu><br>
<b>Date: </b>Monday, November 12, 2018 at 3:49 PM<br>
<b>To: </b>"ood-users@lists.osc.edu" <ood-users@lists.osc.edu><br>
<b>Subject: </b>[OOD-users] Adding menu's & submenus to Open OnDemand<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Are there any instructions available for adding an another menu option to OnDemand with the menu items being links to external websites or other web apps like WebMO (I know the signon won't be passed through).  I'd like to include links
 to common sites used by our faculty and students.  <o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div class="MsoNormal" align="center" style="mso-margin-top-alt:3.75pt;margin-right:0in;margin-bottom:3.75pt;margin-left:0in;text-align:center">
<hr size="0" width="100%" align="center">
</div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody>
<tr>
<td width="140" valign="top" style="width:105.0pt;padding:0in 0in 0in 0in">
<p class="MsoNormal"><a href="http://tcnj.pages.tcnj.edu/" target="_blank"><span style="color:windowtext;text-decoration:none"><span style="color:blue;border:solid windowtext 1.0pt;padding:0in"><img border="0" width="135" height="90" style="width:1.4062in;height:.9375in" id="_x0000_i1025" src="cid:~WRD000.jpg" alt="Image removed by sender. The College of New Jersey"></span></span></a><o:p></o:p></p>
</td>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:13.5pt;font-family:"Georgia",serif;color:#293F6F">Shawn Sivy</span></b><span style="font-family:"Georgia",serif;color:#293F6F"><br>
</span><b><span style="font-size:10.5pt;font-family:"Georgia",serif;color:#293F6F">HPC System Administrator</span></b><span style="font-family:"Georgia",serif;color:#293F6F"><br>
</span><span style="font-size:10.5pt;font-family:"Georgia",serif;color:#293F6F">School of Science</span><span style="font-family:"Georgia",serif;color:#293F6F"><br>
</span><span style="font-size:10.0pt;font-family:"Georgia",serif;color:#293F6F">PO Box 7718 Ewing, NJ 08628-0718</span><span style="font-family:"Georgia",serif;color:#293F6F"><br>
</span><span style="font-size:9.0pt;font-family:"Georgia",serif;color:#293F6F">609-771-3475</span><span style="font-family:"Georgia",serif;color:#293F6F"><br>
</span><span style="font-size:9.0pt;font-family:"Georgia",serif;color:#293F6F"><a href="mailto:email@tcnj.edu" target="_blank">ssivy@tcnj.edu</a></span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="mso-margin-top-alt:3.75pt;margin-right:0in;margin-bottom:3.75pt;margin-left:0in">
<o:p> </o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>