Skip to content
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

Make templates more dynamic (user, dates, etc) #103

Open
pteehan opened this issue Nov 2, 2016 · 2 comments · May be fixed by #179
Open

Make templates more dynamic (user, dates, etc) #103

pteehan opened this issue Nov 2, 2016 · 2 comments · May be fixed by #179
Assignees
Milestone

Comments

@pteehan
Copy link

pteehan commented Nov 2, 2016

When creating a post with knowledge_post create, it would be nice if the created_at and updated_at dates were set to the current date.

@matthewwardrop
Copy link
Collaborator

Hey @pteehan,

Yeah... we need to make the templates more dynamic. Thanks for reminding us about this. I'll change the title of the issue to reflect the more general ambition, and we'll see if we cannot address it soon. :).

@matthewwardrop matthewwardrop added this to the v0.7.0 milestone Nov 2, 2016
@matthewwardrop matthewwardrop changed the title Template dates are hard-coded to 2016-06-29 Make templates more dynamic (user, dates, etc) Nov 2, 2016
@matthewwardrop matthewwardrop modified the milestones: v0.7.0, Next Nov 8, 2016
@matthewwardrop matthewwardrop modified the milestones: Next, Next +1 Feb 17, 2017
@matthewwardrop matthewwardrop self-assigned this Jul 4, 2017
@jordan-wright
Copy link
Contributor

I'd be happy to take a stab at this. What do we want dynamic templates to look like? It seems like the biggest lifts currently would be:

  • Automatic created_at and updated_at when creating a new post (and maybe updating updated_at when submitting the post, though this may be too opinionated)
  • Getting the current username and adding that as the user attribute

However, I could see this being even more powerful if we just treated these as Jinja templates and passed a reasonable context to them. Combined with FR #339, this would make the workflow of using templates much better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants