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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Usk70 Member

@Usk70 · Joined 9 years ago · 20 posts · 14 topics · 0 reputation

Badges

✏️ First Post 💬 Conversation Starter

Recent posts

  • Simple Search Plugin not showing results · 9 years ago

    Hi, I am trying to get the simple search plugin working. I have integrated the search bar in my theme and applied the following config to /user/config/plugins/simplesearch.yaml: enabled: true built_in

  • Link to external url in markdown · 9 years ago

    I would like to include in a given page an external link. Such as: This web uses Google Analytics, all information can be found in this [link]('https://developers.google.com/analytics/devguides/collec

  • Cookies Policy - Understanding languages in Grav · 9 years ago

    I have installed Cookies Policy plugin. How can I make message available in Spanish rather than in English, or, how plugin decides which language shall be used? (there is language.yaml with several la

  • Get a collection but only for a given template type · 9 years ago

    I have the following collection which selects latest pages from /blog. page.find('/blog').collection({'items': '@self.descendants','order': {'by': 'date','dir': 'desc'}}).slice(2,1) However, I would l

  • Random page from collection · 9 years ago

    Given a collection -i.e.-: page.find('/blog').collection({'items': '@self.descendants','order': {'by': 'date','dir': 'desc'}}) Is it possible to get a random page from that collection inside a twig te

  • Number of views of pages · 9 years ago

    Documentation says: The full view count data is dumped as an associative array (i.e., route => count) into the Twig variable viewcounts. To support backwards compatibility, the counts are also sti

  • Number of views of pages · 9 years ago

    Is there any plugin or workaround to get or sort pages by the number of times they have been viewed? I am trying to get a "popular" category in a blog with Grav. Thanks,

  • Get page content without format and limit the number of characters · 9 years ago

    I want to get the content of a given page but without format and limiting output to n characters. The idea is to include the first part of content in an index of pages. Similar to list of blog posts.

  • Get first page image in TWIG with "width: 100%" style applied · 9 years ago

    I am trying to get the first page folder image inside a twig template with a "width: 100%" CSS style applied. I have tried both: <a href="{{ page.url }}">{{ page.media[0].html('{{ post.title }}'

  • Get most viewed (popular) pages · 9 years ago

    I would like to understand if there is something easy to find most viewed pages to implement a "popular" blog articles feature. So far I get latest articles by doing this: {% for post in page.find('/b