Feature request: ability to specify date=NOW in metadata settings #277

Closed
darvin opened this Issue Jan 13, 2013 · 20 comments

Projects

None yet
@darvin
#prose.io settings
prose:
  rooturl: "source"
  metadata:
    "source/_posts": |
      layout: post
      title: "Title"
      date: 2012-12-22 14:07
      comments: true
      categories: 
      published: true

I would like to be able to specify date: CURRENT or something and have this field autogenerated on document creation. or just point me on place to implement this

@dhcole
prose member

CURRENT_DATETIME should work now, via b22708a

@dhcole dhcole closed this Mar 25, 2013
@bcomnes bcomnes referenced this issue in bcomnes/bcomnes.github.io Jul 31, 2013
Closed

Set up prose.io configuration #21

@bcomnes

I added this variable to the wiki to make it more visible.

@bcomnes

With that being said, I can't get it to work. Can anyone provide an example on how to use this?

@mikemorris
prose member

Looks like this was only ported over to preserve existing implementations of default metadata for older versions of Prose. Support hasn't been added for the new metadata editor configuration yet.

@mikemorris mikemorris reopened this Aug 1, 2013
@joewiz

Before I added prose configuration to my _config.yml, prose.io was prepopulating the filenames of new Jekyll posts with the current date. But once I added prose configuration, it stopped doing that, even after I added - date: CURRENT_DATETIME as suggested above.

@bcomnes

@joewiz That advice was from an older version of prose. It sounds like it needs to be re-implemented at this point.

@mikemorris
prose member

Yep, that's correct @bcomnes @joewiz

@joewiz

Ah, thanks, guys. A very nice feature indeed.

@jhabdas

Currently, once configuration is added to _config.yml for Jekyll-based sites, the ISO date is not required in the post title field in Prose, and will be added automatically upon file save.

@mohamnag

and what about - date: CURRENT_DATETIME? when will it work? or is there another way to set YML on new posts to current date time?

@orschiro

I am also currently moving my blog to be managed with prose. However, handling date is a really important feature.

Any chance that this will be working again any time soon?

Thanks!

@LPTK

I'm having the same problem. Having a date for my posts is one of the most important things. It seems the right date is already generated for the name of the file... couldn't it be used also for a "date" meta field?
@jhabdas I'm not sure what you mean. For me, whether I specify it or not in the config file, the date field seems to be never inferred.

@fulldecent

Hello and thank you for this issue report. There have been several point releases in Prose since this issue was opened and there has not been much discussion here. I wanted to ask if you could please assist in confirming this is still an issue in the latest version of the product. If it is fixed, please close this issue :-)

Also, if possible could you please

  • Create a test case -- a list of steps we can perform to reproduce the problem

Since this project is looking for new maintainers (#743), it will be helpful if users can double check the old issues and delete ones that are fixed. This will be super helpful for the new team that works on moving this project forward.

I'm sorry this message is impersonal. And thanks for your help!

@orschiro

I think this issue is fixed. Last time I created a new md document, I didn't specify any date, which was automatically inserted by Prose using the current date.

@holic holic added a commit to holic/prose that referenced this issue Apr 29, 2015
@holic holic Re-implement CURRENT_DATETIME replacement in metadata
Closes #277
7b4089b
@holic holic added a commit to holic/prose that referenced this issue May 13, 2015
@holic holic Re-implement CURRENT_DATETIME replacement in metadata
Closes #277
353efbf
@dereklieu dereklieu closed this in #831 May 13, 2015
@dereklieu
prose member

#831 allows you to set date: CURRENT_DATETIME to get the current date.

You can also do something like:

- name: "date"
  field:
    element: "text"
    label: "Date"
    value: "CURRENT_DATETIME"
@joewiz

Wonderful! Thanks very much for this!

@ndarville

@dereklieu What am I doing wrong, if I just get a date field with the CURRENT_DATETIME string in it instead of the date?

@dereklieu
prose member

@ndarville If you're using prose.io then these changes haven't been deployed yet. We're discussing automatic deployment in #835. I will look into a manual deployment in the meantime.

@ndarville

@dereklieu Ah, I see.

@orschiro

@dereklieu This is fantastic. Thanks very much for your efforts!

@kennethormandy kennethormandy added a commit to losttype/losttype-prose that referenced this issue Aug 3, 2015
@holic holic Re-implement CURRENT_DATETIME replacement in metadata
Closes #277
abb0524
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment