nextcloud / cms_pico

🗃 Integrate Pico CMS and let your users manage their own websites
https://apps.nextcloud.com/apps/cms_pico
GNU Affero General Public License v3.0
137 stars 43 forks source link

Adding themes is unclear #180

Closed johnwry closed 3 years ago

johnwry commented 3 years ago

I am trying to add a new theme. From the instructions it's supposed to be simple so I'm probably overcomplicating it. 

  1. I go to PICO's site and download a theme (my_theme)
  2. Upload and unzip 'my_theme' to PICO's themes directory
  3. Copy the index.twig file from default theme to 'my_theme' folder
  4. Add 'my_theme' in the PICO admin section
  5. Change default to 'my_theme' in my PICO website in the dropdown

....this returns my website without any style.

PhrozenByte commented 3 years ago

Unless you want to create your own custom theme I'm not sure why you're copying the default theme's index.twig. The theme you've downloaded should already include a index.twig. Please note that themes relying on external resources often don't work with Pico CMS for Nextcloud, because the app blocks 3rd party resources by default for security reasons. You'll have to edit the theme to fit your needs then.

johnwry commented 3 years ago

Thanks @PhrozenByte , just to make sure,I need to duplicate the default theme folder, rename and adjust accordingly? I presuem this done in the same place the default folder is?

PhrozenByte commented 3 years ago

If you want to create your own theme: Yes. As an alternative you can also use the "Copy theme" button in the app's admin settings page.

If you want to use a pre-made theme: No. Use the provided index.twig - which you can naturally still edit to fit your needs.

johnwry commented 3 years ago

Not sure where you "Copy Theme" in the admin page.  That would be great to have in the doc or in a tutorial for newbies.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! :+1: