jekyll / jekyll-admin

A Jekyll plugin that provides users with a traditional CMS-style graphical interface to author content and administer Jekyll sites.
https://jekyll.github.io/jekyll-admin/
MIT License
2.83k stars 359 forks source link

Future Feature Requests #140

Open budparr opened 8 years ago

budparr commented 8 years ago

I realize it's pretty early yet, so lumping these advanced features here together just to get them out there because I think they're some of the more important things to have. These three are all related in that they reduce the potential for errors.

Here are examples for how others handle this: Cloudcannon (scroll to select), Siteleaf.

benbalter commented 8 years ago

Allow for default fields. A site owner should be allowed to set up fields in the config file, or elsewhere, which creates consistency and ease of use for content creators:

Are you suggesting, for example, I could have the following in my config:

jekyll_admin:
  default_fields:
    - title
    - description

And then when creating a new post, those fields would be initialized, but empty, by default?

Create slug automatically from title.

That's a great idea. Would you mind opening a dedicated issue for that?

Allow a field to automatically reference an item from another collection.

Are you suggesting the Jekyll Admin would provide basically an auto complete / list of options, but that the data would ultimately be stored as the resulting string? Or that it was actually stored as a reference?

budparr commented 8 years ago

Are you suggesting the Jekyll Admin would provide basically an auto complete / list of options, but that the data would ultimately be stored as the resulting string? Or that it was actually stored as a reference?

I think auto complete is a good description, and yes, the data would ultimately be stored as the resulting string.

If I have collection with people who are authors:

bill-thornton.md  
tom-masters.md
rick-jones.md

And another collection or posts that has a field author I'd like that author field to autocomplete with the names of people in the author collection.

The field would still result in something like this in front matter: author: bill-thornton

but presented to the user inputing content as a drop-down list of the titlesof the entries in the author collection.

Here's a screenshot from Siteleaf's documentation, which accomplishes this: meta-collection

The purpose of this proposal is to reduce errors by eliminating the requirement that a content creator remember the entries and their slugs when creating a relationship between entries.

benbalter commented 8 years ago

It sounds like then, an autocomplete feature would likely need two data sources:

  1. Pre-defined choices in config (e.g., colors, sizes, etc.)
  2. Pre-defined relationship in config (e.g, authors, products, posts)
budparr commented 8 years ago

Yes, though, for the pre-defined relationship, both Siteleaf and Cloudcannon use field naming conventions rather than configuration.

I realize the scope of those projects may be different, and here, the consistency of having everything in a config file may be simplest.

benbalter commented 8 years ago

Yes, though, for the pre-defined relationship, both Siteleaf and Cloudcannon use field naming conventions rather than configuration.

Can you explain a bit more?

budparr commented 8 years ago

If you have a key called author in a collection, it will automatically reference the collection _authors if it exists.

benbalter commented 8 years ago

@parkr would say that that violates Jekyll's no magic philosophy because it's an instance of Jekyll trying to be too clever since the user didn't explicitly ask us to do that.

budparr commented 8 years ago

Perhaps. I don't think conventions like author mapping to authors is too terribly clever, but I do think that once you have a config file, everything should go there. Long way of saying you're right.

mertkahyaoglu commented 7 years ago

BTW, first feature implemented by #224

jekyllbot commented 7 years ago

This issue has been automatically marked as stale because it has not been commented on for at least two months.

The resources of the Jekyll team are limited, and so we are asking for your help.

If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.

If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial.

This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.

parkr commented 7 years ago

If you add the pinned label, then @jekyllbot will not close this issue :)

mertkahyaoglu commented 7 years ago

Oh. Thanks for the tip @parkr 👍