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 %>
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Plugins
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 2 | 49 | 1 week ago | ||
| 2 | 57 | 4 weeks ago | ||
| 3 | 1184 | 1 month ago | ||
| 1 | 50 | 1 month ago | ||
| 3 | 75 | 2 months ago |