plone / plone/documentation

add doc on customizing moment.js date formats

Open
#692 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

31 needs: help 33 needs: docs 41 lvl: easy 99 tag: classic-ui 99 tag: good first issue 99 tag: hacktoberfest 99 tag: Plone 6.x
Dominant language
Makefile
Stars
106
Forks
190
Avg merge
3d 2h
Merged PRs (30d)
1

Description

Where to add this customization documentation? https://5.docs.plone.org/adapt-and-extend/index.html ?

The new moment.js formats dates so they show up as "7 days ago", "3 days ago", etc.

To make a configuration change so the full dates are shown in the Contents view, e.g. https://mysite.com/folder_contents, go to the Resource Registry control panel, click "Pattern Options" tab, add a pattern called "structure" and give it the value

{ "momentFormat": "MMMM D, YYYY" }

For more information about moment.js formats, see http://momentjs.com

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the adapt-and-extend documentation at https://5.docs.plone.org/adapt-and-extend/index.html and the linked moment.js formatting reference. Document the Resource Registry control panel's Pattern Options configuration for the structure pattern, including the momentFormat example. Done means a newcomer can find the guidance and understand how to display full dates in the Contents view.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.