Custom informational HTML page on OOD - How To?

Hello,

I am new to OOD and i wanted to ask about how to create a custom page in OOD portal? For example to add an “Information” link on the navigation bar so it will contain in the body my custom HTML content? Such as text/links/pictures?

What is the proper way to create a custom page in OOD?

Regards

Hello, and welcome to the Open OnDemand community! We have a section in our documentation for custom pages: Customizations — Open OnDemand 3.1.0 documentation I would definitely recommend checking that out and coming back with any further questions.

Hi!

Thank for your reply. I checked this page but i didn’t found a way to customize the custom_page with my own HTML block. Can you provide an example?

Hi @nortex,

I’ll provide an example from my own setup, where I created a Wiki page.

  1. Add a ‘custom_pages’ section, in your /etc/ood/config/ondemand.d/*.yml
    file, also add a link to the Wiki page in the help menu:
custom_pages:
  wiki:
    rows:
      - columns:
          - width: 12
            widgets:
              - welcome
          - width: 12
            widgets: 
              - wiki
help_menu:
  - group: "Help"
  - page: "wiki"
    title: "HPC Wiki"
    icon: "fas://book"
  1. Widgets are actually the html files with your content, they should be in:
    /etc/ood/config/apps/dashboard/views/widgets
    and their fllename should be in this format:
    _someContent.html.erb

so in my case it’s :

_welcome.html.erb
_wiki.html.erb
2 Likes

Perfect! Exactly what was needed.

Thank you for proper example.

1 Like