GithubHelp home page GithubHelp logo

Comments (11)

Frodox avatar Frodox commented on June 16, 2024

Also, there is an event: template_engine_registered, but there are no lines in the docs about this :(

from phile.

james2doyle avatar james2doyle commented on June 16, 2024

Hey there. I just checked the plugin. I didn't get the same error.

You are right about the template_engine_registered event. I can add the event to the docs.

from phile.

Frodox avatar Frodox commented on June 16, 2024

Did you use limit_words filter, and set {{ page.content|limit_words }} exactly?

It's strange...

Do you have any sugestions?

from phile.

james2doyle avatar james2doyle commented on June 16, 2024

Yeah. Here is my snippet I tested.

{% for page in pages %}
  <article>
    <h3>{{ page.title }}</h3>
    <p>{{ page.content|striptags|limit_words }}</p>
  </article>
{% endfor %}

I tried it without the striptags as well. Still no errors. What version of PHP are you on?

from phile.

Frodox avatar Frodox commented on June 16, 2024

Offtopic

I also noticed in error.log, that [error] the key date for sorting is deprecated use meta:date or any other meta tag

Using the meta:date resolve an error, but it's default line in config..
$config['pages_order_by'] = 'title'; // Order pages by "title" (alpha) or "date"

from phile.

Frodox avatar Frodox commented on June 16, 2024

PHP 5.3.20

from phile.

Frodox avatar Frodox commented on June 16, 2024

Oh, I think, it is a sort of anonymous function
and

Changelog
5.4.0 $this can be used in anonymous functions.

Am I right?

from phile.

james2doyle avatar james2doyle commented on June 16, 2024

I also noticed in error.log...

Yeah that needs to be added to the documentation too. We would also need to change all the default .md files. Something for the backlog.

5.4.0 $this can be used in anonymous functions.

Thats a possibility. Can you give it a test and see?

from phile.

Frodox avatar Frodox commented on June 16, 2024

Can you give it a test and see?

Sure. I will do it right now.

from phile.

Frodox avatar Frodox commented on June 16, 2024

Yup, on PHP 5.4.4 all works fine.

P.s. @james2doyle Thanks for great video 👍

from phile.

james2doyle avatar james2doyle commented on June 16, 2024

Thanks. It seems like just that plugin needs it then. Strange.

from phile.

Related Issues (20)

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.