Skip to content

ENHANCEMENT: customizable alternative field #423

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

Merged
merged 1 commit into from
Aug 29, 2012
Merged

ENHANCEMENT: customizable alternative field #423

merged 1 commit into from
Aug 29, 2012

Conversation

Zauberfisch
Copy link
Contributor

allow the alternative field to be populated with a fully customized date
time string.

this will allow you to set the following config's:

{
altFormat: '', // format of the date in the alt field
altTimeFormat: '', // format of the time in the alt field
altSeperator: '', // seperator in the alt field
altTimeSuffix: '', // suffix in the alt field
}

if any of those config settings is omitted, it will fall back to the value of the normal field for this setting
if altFieldTimeOnly is set to true, which it is by default, nothing of the above settings will be used

allow the alternative field to be populated with a fully customized date
time string.
trentrichardson added a commit that referenced this pull request Aug 29, 2012
ENHANCEMENT: customizable alternative field
@trentrichardson trentrichardson merged commit 6ff9b7a into trentrichardson:dev Aug 29, 2012
@trentrichardson
Copy link
Owner

This is awesome, been on the todo list for a while, Thanks!

@Zauberfisch
Copy link
Contributor Author

np, needed that my self on my current project.
Well, one thing for that, that is still to do is the documentation, but I am not sure if I find time for it

@trentrichardson
Copy link
Owner

Documentation needs an overhaul to be honest, I'll try to squeeze it in somehow.

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

Successfully merging this pull request may close these issues.

2 participants