Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Multisite setup.py issue
· 10 years ago
Additional details about the exception thrown, exception: implode(): Invalid arguments passed: grav\system\src\Grav\Common\Uri.php at line 331: $valid_page_types = implode('|', $config->get('system
-
Multisite setup.py issue
· 10 years ago
I am attempting to get multisite working, and am getting various errors - I'm sure its something small, but I can't see to quite pin down what it is. I have a site set up in grav/user/sites/www. To te
-
Get page image url in onPageProcessed function
· 10 years ago
thanks @rhukster for putting me on the right track. I did like this if (isset($header->seofacebookimg)) { $image = $header->seofacebookimg; $found_image = $page->media(); $listmedia
-
Get page image url in onPageProcessed function
· 10 years ago
ok, that helps thanks. I would do something like this: $page = $e['page']; $header = $page->header(): $metadata = $page->header()->metadata; if (isset($header->seofacebookimg)) { $image
-
Get page image url in onPageProcessed function
· 10 years ago
i perform that on my template php when $uri = $route in order to get the right frontmatter public function onPageProcessed(Event $e) { } my page header : {#233 ▼ +"title": "Contact" +"metadata": array
-
Get page image url in onPageProcessed function
· 10 years ago
Where are you performing this logic? Also what does your page header look like?
-
Get page image url in onPageProcessed function
· 10 years ago
ok i found not sure best way $seofacebookimage = $this->grav['uri']->url .'/'. $value;
-
Get page image url in onPageProcessed function
· 10 years ago
Hi everyone, I'm stuck with that function, i'm triyng to get the img url from a page frontmatter image name (save with pagemediaselect) ... foreach($header as $key => $value) { $seofacebookimag
-
Restrict pagemedia upload to only images
· 10 years ago
Of course, open an issue here https://github.com/getgrav/grav-plugin-admin/issues, so we don't forget.
-
Restrict pagemedia upload to only images
· 10 years ago
thanks @rhukster. Is it worth opening issue (enhancement ) ?