Giter Club home page Giter Club logo

grav-plugin-themer's People

Contributors

sommerregen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lagaz

grav-plugin-themer's Issues

how to use

hi, i read the document but i can not understand how to use it yet.
you say in document: copy themer.yaml file and change it. so if i have three page: home, blog, gallery and if i want to use theme1 for home, theme2 for blog and theme3 for gallery page how can i do it?
is it possible with themer plugin.

Cannot `direct-install` Themer

Hey @Sommerregen ,

I use GPM's direct-install command to pin each plugin to a specific version so that my continuous integration pipeline produces more consistent builds. However, for some reason using direct-install with Themer results in a silent failure - GPM claims that it has installed the plugin successfully, but nothing is added to user/plugins.

Here's the command I'm running:

bin/gpm direct-install -y https://getgrav.org/download/plugins/themer/1.1.0

And the output I get:

Preparing to install https://getgrav.org/download/plugins/themer/1.1.0
  |- Downloading package...   100%
  |- Extracting package...    ok
  |- Checking destination...  ok
  |- Installing package...    ok
  '- Success!

I've confirmed that using GPM's install command does install Themer normally, so I don't expect this to be an issue specific to my environment... but who knows!

Twig_Error_Runtime - Error

I get the follwing error message, if I activate the plugin under Grav v1.1.5 inside my Admin Plugin and go to /admin/pages (Admin v1.2.2).

Twig_Error_Runtime An exception has been thrown during the rendering of a template ("FilesystemIterator::__construct(/home/my-user-name/www/grav/user/themes/multiverse/templates/modular): failed to open dir: No such file or directory") in "pages.html.twig" at line 124.

TraceableTwigEnvironment not found

The plugin doesn't working anymore when debugging is enabled:
Class 'Grav\Common\Twig\TraceableTwigEnvironment' not found

TraceableTwigEnvironment has been removed in grav 0.9.43 (commit getgrav/grav@66d5eab 14 Sep 2015), however themer is still using it (themer.php line 96):

        // Update TwigCollector for DebugBar
        if ($enabled && $debug) {
          $twig->twig = new TraceableTwigEnvironment($twig->twig)

Multiple inherited themes

I started using Themer fairly recently to setup Learn2 as the theme of a specific part of my website. While googling for how to setup both Themer and Learn2 I found this answer on Discourse saying that, when using Themer, only the default theme can be inherited.

Because this was back in 2016 I wanted to know if it is already possible for several themes to be inherited.

Thanks.

Upstream integration?

Hi,
I find that per-page theme is a pretty useful feature.
Given that the implementation itself seems quite lean and that it didn't needed update since 2016, I wonder if there have been any attempt to upstream the feature?

Wouldn't Grav benefit from having this out-of-the-box?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.