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

Page-inject plugin shows only a link?

Started by Muut Archive 11 years ago · 4 replies · 373 views
11 years ago

i tried to insert content from another page with the new page-inject plugin:

TXT
[plugin:content-inject](/test.md)

But only a link to the page is displayed.
Content is not injected. Installed the plugin with gpm in user/plugins.
???

11 years ago

Hi @arank,

I think you provided the wrong argument. The argument is identically to the slug of the page with preceding slash, e.g. if you have a page visible under blog/my-awesome-page then the correct slug for PageInject would be

TXT
[plugin:content-inject](/blog/my-awesome-page)
11 years ago

@sommerregen is correct. You are pointing to the .md file. Should be the url path.

11 years ago

I had this problem just now, and for me it turned out to be a trailing slash on the link.

Also of note I also got an error saying modular/default.html.twig was not defined. Copying the one from the templates directory into modular fixed this.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1336 9 years ago
Archive · by Muut Archive, 9 years ago
2 925 9 years ago
Archive · by Muut Archive, 9 years ago
2 4056 9 years ago
Archive · by Muut Archive, 9 years ago
1 2941 9 years ago
Archive · by Muut Archive, 9 years ago
3 1112 9 years ago