Coder Social home page Coder Social logo

grav-plugin-fullpage's People

Contributors

olevik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

grav-plugin-fullpage's Issues

correct caching setup for full page plugin?

Hi there

Testing out full page with a plain / new install of full page plugin with GRAV 1.4.0-rc.1...

Not sure why, but if I take this 'plain' install and add the full page plugin, I can build a successful full page page — EXCEPT when I refresh the page I lose the fullpage.js and the full page.css and the page loses most of the full page styling...

Seems to be something to do with the caching... any tips on how to set this up correctly?

thanks

fullpage 1.2.0 does not load css and js files in fullpage.html.twig

Hello Ole,
just updated to newest version. All other plugins are also installed with latest available version. Config file for fullpage seems also to be okay:

---------------- user/config/plugins/fullpage.yaml: ------------------------

{% set theme_config = attribute(config.themes, config.system.pages.theme) %}
<!DOCTYPE html>
<html lang="{{ grav.language.getLanguage ?: 'en' }}">
  {% block head %}
  <head>
    {% block meta %}
      <meta charset="utf-8" />
      <title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
      {% include 'partials/metadata.html.twig' %}
      <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    {% endblock meta %}
    <link rel="icon" type="image/png" href="{{ url('theme://images/favicon.png') }}" />
    <link rel="canonical" href="{{ page.url(true, true) }}" />
    {% block stylesheets %}
      {% if config.plugins['fullpage'].transition %}
        {% do assets.addCss('plugin://fullpage/css/transition.css', {'group': 'critical'}) %}
      {% endif %}
      {% if config.plugins['fullpage'].builtin_css == true %}
        {% do assets.addCss('plugin://fullpage/css/jquery.fullpage.min.css') %}
        {% do assets.addCss('plugin://fullpage/css/fullpage.css') %}
      {% endif %}
      {% if config.plugins['fullpage'].theme_css %}
        {% do assets.addCss('theme://css/custom.css') %}
      {% endif %}
    {% endblock %}
    {{ assets.css('critical')|raw }}
    {{ assets.css()|raw }}
  </head>
  {% endblock head %}

  <body id="top" class="{{ page.header.body_classes }}">
    {% if config.plugins['fullpage'].transition %}
    <div id="page_transition">
      <div class="la-line-scale la-dark la-3x">
        <div style="color: #0B110D;"></div>
        <div style="color: #2C4D56;"></div>
        <div style="color: #C3AA72;"></div>
        <div style="color: #DC7612;"></div>
        <div style="color: #BD3200;"></div>
      </div>
    </div>
    {% endif %}
    {% block content %}
    <div id="fullpage">
      {{ page.content|raw }}
    </div>
    {% endblock content %}
    {% block scripts %}
      {% if config.plugins['fullpage'].builtin_js %}
        {% do assets.addJs('system://assets/jquery/jquery-3.x.min.js') %}
        {% do assets.addJs('plugin://fullpage/js/jquery.fullpage..min.js') %}
      {% endif %}
    {% endblock %}
    {{ assets.js()|raw }}
    {% block init_fullpage %}
      {% if config.plugins['fullpage'].builtin_js %}
        <script type="text/javascript">
          {{ fullpage_init }}
        </script>
      {% endif %}
    {% endblock %}
  </body>
</html>

---------------- user/config/plugins/fullpage.yaml: ------------------------

> enabled: true
> order:
>   by: default
>   dir: asc
> theme_css: true
> builtin_css: true
> builtin_js: true
> color_function: '50'
> header_font: 'Verdana,Geneva,sans-serif'
> block_font: 'Verdana,Geneva,sans-serif'
> change_titles: true
> shortcodes: true
> transition: true
> styles:
>   -
>     background: '#222222'
> options:
>   navigation: true
>   navigationPosition: right
>   showActiveTooltip: true
>   slidesNavigation: true
>   slidesNavPosition: bottom
>   css3: true
>   autoScrolling: true
>   fitToSection: true
>   scrollBar: false
>   loopTop: false
>   loopBottom: false
>   loopHorizontal: false
>   touchSensitivity: 15
>   keyboardScrolling: true
>   animateAnchor: true
>   recordHistory: false
>   controlArrows: false
>   verticalCentered: true
>   sectionSelector: .section
>   slideSelector: .slide
>   lazyLoading: true
>   menu: true

Best regards
Reinhard

Fullpage does not work on new clean installation of GRAV 1.5.x

I just installed a new clean Grav 1.5.6 and also the Fullpage Plugin via the administration-panel->plugins. After installation I followed the guideines given here. There is no possibility to select a fullpage template while creating a new page. Are there any further installation steps not documented?

Usually Grav uses the Quark theme now as standard theme.

Can You please advise how to solve? Thank You very much.

Kind regards
Reinhard

Page Typ "Fullpage" not exist

Hello,

the plugin does not seem to work under grav CMS 1.4.2. I can not select the type "Fullpage" when creating a page because it does not exist.

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.