Custom header/footer

163 views
Skip to first unread message

Péter Király

unread,
Feb 14, 2018, 11:04:58 AM2/14/18
to dataverse...@googlegroups.com
Dear Dataverse community,

I am working on a Dataverse installation, and I run to the problem of
customization.

http://guides.dataverse.org/en/4.8.5/installation/config.html#headercustomizationfile
says, that I can set a custom header and footer. What I would like to
do just a test, and after that I would like to restore the status I
have now (the default template files).

To set custom file:

curl -X PUT -d '/var/www/dataverse/branding/custom-footer.html'
http://localhost:8080/api/admin/settings/:FooterCustomizationFile

How can I unset it?

Thank you in advance,
Péter Király


--
Péter Király
software developer
GWDG, Göttingen - Europeana - eXtensible Catalog - The Code4Lib Journal
http://linkedin.com/in/peterkiraly

Philip Durbin

unread,
Feb 14, 2018, 12:10:09 PM2/14/18
to dataverse...@googlegroups.com
Hi! The short answer is this:

curl -X DELETE http://localhost:8080/api/admin/settings/:FooterCustomizationFile

All of these database settings work the same and over at http://guides.dataverse.org/en/4.8.5/installation/config.html#database-settings I tried to explain how to set and unset them:

"The pattern you will observe in curl examples below is that an HTTP ``PUT`` is used to add or modify a setting. If you perform an HTTP ``GET`` (the default when using curl), the output will contain the value of the setting, if it has been set. You can also do a ``GET`` of all settings with ``curl http://localhost:8080/api/admin/settings`` which you may want to pretty-print by piping the output through a tool such as jq by appending ``| jq .``. If you want to remove a setting, use an HTTP ``DELETE`` such as ``curl -X DELETE http://localhost:8080/api/admin/settings/:GuidesBaseUrl`` ."

Reading that again just now maybe it's not the most clear. If someone wants to take a swing at improving the documentation, it's at https://github.com/IQSS/dataverse/blob/v4.8.5/doc/sphinx-guides/source/installation/config.rst#database-settings

I hope this helps!

Phil

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse-community@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/CABFhGtnayTP%2BuoLxynGwff0_BSr0N0nsoywLueDCS%2BHH-8_sKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--

Péter Király

unread,
Feb 14, 2018, 12:26:38 PM2/14/18
to dataverse...@googlegroups.com
Dear Phil,

thanks a lot!

Péter
>> email to dataverse-commu...@googlegroups.com.
>> To post to this group, send email to dataverse...@googlegroups.com.
> --
> You received this message because you are subscribed to the Google Groups
> "Dataverse Users Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dataverse-commu...@googlegroups.com.
> To post to this group, send email to dataverse...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dataverse-community/CABbxx8Hh%3DQ%3D%3D36MrMyK%2BUJrXOGcYvBnXbCjDaDoB38R%3D7xiWnA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.



--

Heppler, Michael

unread,
Feb 14, 2018, 12:47:17 PM2/14/18
to dataverse...@googlegroups.com
Hello, Péter.

If you follow the link you provided for the :HeaderCustomizationFile config option, you will see that there is another link displayed "See Branding Your Installation above." (http://guides.dataverse.org/en/4.8.5/installation/config.html#custom-homepage) Follow that link, and you are brought to the Custom Homepage section that provides detail about the setting, including an example curl command for removing a customization setting.
You can edit that delete curl command for any of the customization settings.

Hope that helps!

Mike


Michael Heppler
User Interface Designer + Developer
Institute for Quantitative Social Science
Harvard University
1737 Cambridge Street, Rm K333
Cambridge, MA 02138
617-496-2450
www.iq.harvard.edu


On Wed, Feb 14, 2018 at 11:04 AM, Péter Király <kiru...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse-community@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages