-
-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content generated from data in title and permalink issue #912
Comments
Regarding the slug issue: I had to put the slug filter in front of my data. Sorry about that. Facepalm. |
Okay, found out myself. Here's my solution. Took me a while. I know the renderData is not documented and read about the reason. Is there anything similarly coming up in a next version of Eleventy? WHen working with JavaScript data files, this is a must have.
And to link to a generated page
However the slug function doesn't solve complex characters. I have é and à in my titles, which I generated pages from, and linking this through the collections object (this.url), sometimes breaks the url. |
It is! I’m going to close this as a duplicate of #481, which is coming very soon. Is that okay? |
@BregtDeLange Head's up! |
|
I have a detail page template, which gets its page content data from a JavaScript file that connects to a service. This works all fine, my pages get generated. However, I try to use the slug filter in the YAML section for the permalink, and I want to pass the title to the title field, to be used in my layout for <title>.
I followed the description given by others for this issues, but I'm stuck here. I really can't figure this out. I get this in my title.
[object Object]
SOLVED: And I get this error when using the slug filter in permalink I know this error is coming from Handlebars, but it says "helperMissing".
The slug filter is by default loaded, right?
EXTRA: Is it also possible to link to these generated pages via an object? I know there's the collections.detail which I could use, but I seem not be able to access it in an other template except for a file in the root.
Thanks.
The text was updated successfully, but these errors were encountered: