pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3196 posts · 17 topics · 1020 reputation
Badges
Recent posts
-
Data from "user://data" folder in TWIG templates
· 2 years ago
@VadiOs, I was hoping my hints would suffice... Try: {{ (read_file('user-data://my-form/file.yaml')|yaml_decode).value }}
-
Find elements in home page
· 2 years ago
@Gian125, No 2 themes are alike... Some provide almost no options, the other a bit more... You might also consider the premium Typhoon theme. It is packed with options.
-
Find elements in home page
· 3 years ago
@Gian125, Have you already had a chance to take a look at the docs... Especially about themes? In Admin, you only write the content of the page (the Markdown). When a page is requested by a user the f
-
Site refuses to update on server
· 3 years ago
@TonHaarmans, Without proper information there is not much we can do apart from mind guessing... Please have a look at these suggestions on how you can enrich your question.
-
Data from "user://data" folder in TWIG templates
· 3 years ago
@VadiOs, Have you had a chance to read the docs on Twig Tags, Filter & Functions and the available functions and filters? Btw. You can also use stream user-data:// to get the data folder.
-
Only use canonical tag when page is set to index
· 3 years ago
@Thorst3n, I have a resume.de.yaml file but it won’t change anything [..] Don't use language extensions like .de.yaml to blueprints. The field's label and help properties will automatically be tran
-
Plugin: How to get url of media in current page's folder
· 3 years ago
@seanparko, Sorry, if you make me spent time while you take the lazy route, I'm out...
-
Plugin: How to get url of media in current page's folder
· 3 years ago
@seanparko, I see you already have a $page in your code. I presume it contains an instantiation of \Grav\Common\Page\Page. Have you tried calling $page->media()?
-
Plugin: How to get url of media in current page's folder
· 3 years ago
@seanparko, Where do you get stuck? Any errors?
-
Plugin: How to get url of media in current page's folder
· 3 years ago
@seanparko, Have you tried Page::media() and Media::files()? See Page and the MediaCollectionsInterface of Media