Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Guestbook plugin two times same installation

Started by Christian 9 years ago · 0 replies · 1545 views
9 years ago

Hi,
I'm trying to use the guestbook plugin twice in the same grav installation with different message.yaml files. So far, I have edited the frontmatter where the save path to the messages.yaml is stored.
However, the filename for loading the guestbook entries is retrieved from guestbook.yaml in the plugins folder. Is there any method to have the guestbook.php file use the frontmatter variable instead?
The following did NOT work (in guestbook.php):
$filename = DATA_DIR . 'guestbook/' . $this->grav['page']->get('form/process/save/filename', null, '/');
This did not work either (in guestbook.yaml):
filename: <%= form.process.save.filename %>

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 3 weeks ago
2 289 3 weeks ago
Plugins · by renedebaaij, 4 weeks ago
1 263 3 weeks ago
Plugins · by Thomas, 4 weeks ago
1 280 4 weeks ago
Plugins · by complanar, 2 months ago
6 600 1 month ago
Plugins · by BenLaKnet, 1 month ago
1 504 1 month ago