Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Henry PRGRM Newcomer
@Paragrimm · Joined 3 years ago · 5 posts · 2 topics · 0 reputation
Badges
Recent posts
-
Iframe for video link saved as a entry
· 3 years ago
I embed some videos as iframes in my articles. I define the YouTube Video ID in the frontmatter of the article and I check if page.header.youtube is set within the template and if so, I embed the vide
-
Plugin that executes regularly
· 3 years ago
Hey, I've implemented a plugin that fetches game data from my own game database and "converts" these to Grav-Pages. So far so good, but the file_get_contents() function (using cURL makes no difference
-
Twig Timespan? Show playtime of games in a readable format
· 3 years ago
Ahh great idea, is it possible to pass the playtime as parameter to the twig template? Because on the /Games-Folder I iterate through all games and display the playtime for each and on the page of a s
-
Twig Timespan? Show playtime of games in a readable format
· 3 years ago
The solution I have in mind is calculating 2 times (1x hours, 1x minutes). This is my current solution: {% if article.header.playtime > 0 %} {% set hours = ((article.header.playtime)/60)|round(0,
-
Twig Timespan? Show playtime of games in a readable format
· 3 years ago
Hey, I'm currently developing a Grav Theme for my Internet presence and I want to use it as a Blog and "Content aggregator". I've tracked my playtime for several games in my own database and I develop