-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using $this when not in object context in #44
Comments
Also, there is an event: |
Hey there. I just checked the plugin. I didn't get the same error. You are right about the |
Did you use It's strange... Do you have any sugestions? |
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 |
OfftopicI also noticed in Using the |
PHP 5.3.20 |
Oh, I think, it is a sort of anonymous function Changelog Am I right? |
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.
Thats a possibility. Can you give it a test and see? |
Sure. I will do it right now. |
Yup, on PHP 5.4.4 all works fine. P.s. @james2doyle Thanks for great video 👍 |
Thanks. It seems like just that plugin needs it then. Strange. |
I try to use phileTwigFilters ,
limit_words
filter, but it returns an error:line 25:
return trim(substr($string, 0, $pos[$this->settings['limit']])) . '...';
Actually, it there any way to modify meta-data of page depend on parsed content?
I didn't find any appropriate event, and the twig filter does not want to work too :D
I want to port my Pico Custom Post Preview Plugin...
The text was updated successfully, but these errors were encountered: