Skip to content
Grav 2.0 is officially stable. Read the announcement →

Muut Archive Legend

@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • List of "featured" articles · 12 years ago

    Well it is possible, but it would mean you would have to loop over every page and look in each page's header for that position variable. That would be quite inefficient. Taxonomy is basically doing t

  • List of "featured" articles · 12 years ago

    Ok... And would it be possible, to do this without taxonomy? Assuming, that I have a custom field named "position", would it be possible to get only all files with "position: right" (or "position: lef

  • List of "featured" articles · 12 years ago

    Yah that would work fine. Then in your template you could display the featured articles with: {% for featured in taxonomy.findTaxonomy({'featured':true}) %} <h1>{{ featured.title }}</h1&

  • List of "featured" articles · 12 years ago

    I added a "featured" taxonomy, then in each article's .md file, I have: taxonomy: featured: true Is this right? ...Then what's the recommended way of going through the list (sorting by date) in a pa

  • Grav Theme Conceptualization · 12 years ago

    Grav is a little different from traditional CMS platforms such as WordPress and Joomla in that it's core functionality is kept intentionally minimal. Really it just processes and caches a page struct

  • Grav Theme Conceptualization · 12 years ago

    I working on this some days ago, I like to add _template__hooks but this is bad for performance because you add some cicle on the loading page for less time you edit your theme.

  • Grav Theme Conceptualization · 12 years ago

    Grav's themes encapsulate a great deal of functionality, in addition to appearance. I don't know that this is good or bad, but it's different that I think about a theme. If you switch themes, I would

  • All plugin events available in mytheme.php? · 12 years ago

    All events will work except for onPluginsInitialized. Instead of that you can use onThemeInitialized.

  • All plugin events available in mytheme.php? · 12 years ago

    Take a look at the SmartyPants plugin, here's a code snippet: $defaults = (array) $this->config->get('plugins.smartypants'); $page = $event['page']; if (isset($page->header()->smartypants

  • All plugin events available in mytheme.php? · 12 years ago

    That is awesome. I was working with Phile CMS which is very similar to Grav and I had to use a separate plugin to make it all work that way. What would be the best way to have a page header override