Wordpress handles media in a very simple way. Users can upload media, and then the media can be inserted into posts. This doesn't allow for many tasks and capabilities:
- lack of metadata management
- choosing appropriate images when sharing associated post to social media
- pulling featured images from CDN
- CDN
- purposes:
- media repository
- limitations/issues:
- metadata is limited to tags
- can't store attribution details
- can't handle being both a metadata and media repository
- options:
- purposes:
- metadata manager
- purposes:
- manages metadata
- interfaces to CDN
- keeps track of connections between postss and images
- attribution details (title, author, source, license, associated links)
- rights expiration details (if any)
- date
- forFeatured
- forSocial
- limitations/issues:
- custom node app
- amazon dynamodb for storage
- https://us-west-2.console.aws.amazon.com/dynamodb/home?region=us-west-2#gettingStarted:
- https://aws.amazon.com/dynamodb/getting-started/
- http://docs.aws.amazon.com/amazondynamodb/latest/gettingstartedguide/GettingStarted.NodeJs.html
- https://aws.amazon.com/sdk-for-node-js/
- needs host provider (likely zeit now)
- purposes:
- find relevant images
- go to /upload
- enter link and the following metadata:
- attribution (title, author, source, license, associated links)
- date
- capable of being featured media or used in social media posts
- possibly expiration (if applicable)
Wordpress can only add featured media to an posts if that media is uploaded directly to wordpress. Featured media must be an appropriate size and quality. This is manually determined by the user when the media is uploaded to the gallery (see above step). In order to add featured media to a post:
- go to /gallery
- filter by featured tag
- add post's slug tag to the appropriate media
- Featured articles will automatically pull the associated featured media based on the tag
Regular media is that which shows up somewhere in the posts.
- create/edit post on wordpress
- go to /gallery
- insert relevant links from gallery into post
Most of the metadata is inserted into the database when media is added to the gallery. But one important detail that isn't added at that time is the link between media and posts. Having this information makes it possible to filter gallery content based on specific postss. This link will be represented by a tag on the media that is the slug of the posts. This tag will be automatically added by the metadata app. Steps this app will take during this process are:
- remove all post's slug tags from images in CDN
- periodically get all posts from wordpress
- parse each post's img tag src attribute
- add new tag representing associated posts to each image linked to in the CDN
Placeholder... more details later
See this link for guidelines.