Customize cBioSkins properties

46 views
Skip to first unread message

courte...@gmail.com

unread,
Sep 13, 2019, 8:09:23 AM9/13/19
to cBioPortal for Cancer Genomics Discussion Group
Hi,

I use a docker instance of cBioportal in order to visualize  my own sets of data. Now I'm trying to customize my instance by changing the skin properties as described in the doc (https://docs.cbioportal.org/2.3-customization/customizing-your-instance-of-cbioportal).
Here, I'd like to fill with my own information the news.jsp file pointed by New data and features released menu as said in the skin.right_nav.whats_new_blurb section. However, I don't find any presence of this file in any WEB-INF folders.

Can you help me understand then how the app is able to read the file ? (same thing with tools.jsp by clicking on the New tools released menu)

Best Regards,
Kevin

Aaron Lisman

unread,
Sep 13, 2019, 5:15:56 PM9/13/19
to courte...@gmail.com, cBioPortal for Cancer Genomics Discussion Group
Hi Kevin, 

If you are just trying to customize the What's New Blurb in right bar of homepage:

image.png

then you just set skin.right_nav.whats_new_blurb in portal.properties file to an HTML string.

If you're trying to update the news page, you'll want to set "skin.documentation.news" to an absolute URL of a text file containing HTML or markdown (in which case give it extension .md).

Let me know if you have further questions of if I've misunderstood anything.

--Aaron





--
You received this message because you are subscribed to the Google Groups "cBioPortal for Cancer Genomics Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cbioportal+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cbioportal/a681067f-9f79-4179-bfd9-55555b691316%40googlegroups.com.

courte...@gmail.com

unread,
Sep 16, 2019, 3:28:02 AM9/16/19
to cBioPortal for Cancer Genomics Discussion Group
Thank Aaron ! Indeed, write HTML directly on skin.right_nav.whats_new_blurb does the job. But what if I want to use a hyperlink to redirect to an other page ? Because set href="/path/to/my/file" only displayed the messsage "Sorry, this page doesn't exist."
In fact, it seems that files used through docker volumes are not read by the portal : I tried to change an existing html file in portal/src/main/webapp/content/ to see what happens but my modifications were not take into acount.

Maybe I forgot to execute something ?
Kevin

Le vendredi 13 septembre 2019 23:15:56 UTC+2, Aaron Lisman a écrit :
Hi Kevin, 

If you are just trying to customize the What's New Blurb in right bar of homepage:

image.png

then you just set skin.right_nav.whats_new_blurb in portal.properties file to an HTML string.

If you're trying to update the news page, you'll want to set "skin.documentation.news" to an absolute URL of a text file containing HTML or markdown (in which case give it extension .md).

Let me know if you have further questions of if I've misunderstood anything.

--Aaron





On Fri, Sep 13, 2019 at 8:09 AM <courte...@gmail.com> wrote:
Hi,

I use a docker instance of cBioportal in order to visualize  my own sets of data. Now I'm trying to customize my instance by changing the skin properties as described in the doc (https://docs.cbioportal.org/2.3-customization/customizing-your-instance-of-cbioportal).
Here, I'd like to fill with my own information the news.jsp file pointed by New data and features released menu as said in the skin.right_nav.whats_new_blurb section. However, I don't find any presence of this file in any WEB-INF folders.

Can you help me understand then how the app is able to read the file ? (same thing with tools.jsp by clicking on the New tools released menu)

Best Regards,
Kevin

--
You received this message because you are subscribed to the Google Groups "cBioPortal for Cancer Genomics Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cbiop...@googlegroups.com.

courte...@gmail.com

unread,
Sep 16, 2019, 5:48:13 AM9/16/19
to cBioPortal for Cancer Genomics Discussion Group
Finally found it ! Just put the wrong path. Solution: copy your html file to /usr/local/tomcat/webapps/cbioportal/

Aaron Lisman

unread,
Sep 16, 2019, 10:25:08 AM9/16/19
to courte...@gmail.com, cBioPortal for Cancer Genomics Discussion Group
Glad you figured it out.  So you are basically just hosting another HTML page and linking to it from the blurb?

To unsubscribe from this group and stop receiving emails from it, send an email to cbioportal+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cbioportal/8dc0d677-204d-4d73-a3e4-bdc1cd785951%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages