Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Guestbook plugin two times same installation

Started by Christian 8 years ago · 0 replies · 1212 views
8 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 Rene, 1 week ago
2 42 1 week ago
Plugins · by Xavier, 4 weeks ago
2 53 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1179 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 47 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 71 2 months ago