-
Notifications
You must be signed in to change notification settings - Fork 202
Passing data to templates #109
Comments
Sorry, this isn't possible yet. |
I could try to implement it if I could get some pointers/help. I was thinking something like this:
Does that sound reasonable? |
The scope of this feature might be larger than we're considering. I'm not sure it makes sense attaching custom data to the theme. That would mean switching themes destroys custom data (or at least renders it useless when you switch to other themes). Shouldn't it be attached at a higher level? Then supportive themes can use the helper API to access the data and use it however it sees fit. (I'm open to hearing use cases and alternative views here.)
It should probably include a Curious...how would |
Hmm you make a good point. Even if custom fields are a more high-level concept, unless all themes stick to the same set of variables, those custom fields would become irrelevant upon theme switch. I guess the themes would get some dictionary and can lookup whatever variables are relevant to them.
|
Is it possible to pass data to a template? There is stuff like
meta.title
but is it possible to pass arbitrary data to templates from the post editor? E.g. in addition to the image for a post, I would also like to pass an image description and render it under the image as an image subtitle.The text was updated successfully, but these errors were encountered: