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

File field in guest book

Started by Muut Archive 9 years ago · 3 replies · 489 views
9 years ago

Hello Grav friends! My first post! And I would like to start of by saying in all of my 10+ years in web-developing I see Grav CMS to have the biggest future impact on WWW! I am saying this only after reading all the Grav documentation and testing several skeletons and developing new themes for own projects.

So my question is:
Working with the guestbook plugin I adapted it to become a costumer review plugin and everything works great!
One thing I can not figure out is how output the file location in the messages.yaml file in <img src="file_location"> I have tried <img src="{{ message.field_name.path }}"> since that is the closest to the other outputs that I have seen.

9 years ago

That's a cool quote!
BTW please use the markdown options when posting code snippets. See the question mark in the upper right corner of the text entry area when writing a question or reply.
I think you meant to write <img src="file_location"> and <img src="{{ message.field_name.path }}"> ?

9 years ago

Hmm... Not sure what you mean by "cool quote" :) Write from my hearth every time:)
Yea you are right! Thought it would be automatic. Learning something new every day! Thanks @bleutzinn!

9 years ago

When a web developer with over ten years of experience says he expects Grav to have the biggest future impact on the web, I think that's cool. A very warm thing to say too ! :)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1344 9 years ago
Archive · by Muut Archive, 9 years ago
2 930 9 years ago
Archive · by Muut Archive, 9 years ago
2 4058 9 years ago
Archive · by Muut Archive, 9 years ago
1 2943 9 years ago
Archive · by Muut Archive, 9 years ago
3 1116 9 years ago