Skip to content
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

Build the permalinks UI as an ember component #4484

Closed
ErisDS opened this issue Nov 19, 2014 · 3 comments
Closed

Build the permalinks UI as an ember component #4484

ErisDS opened this issue Nov 19, 2014 · 3 comments
Labels
affects:admin Anything relating to Ghost Admin

Comments

@ErisDS
Copy link
Member

ErisDS commented Nov 19, 2014

This is split from the permalinks epic: #1631


The custom permalink UI has been built out in HTML, CSS with some mock JS which you can find here.

Please note: As this is a complex feature depending on a couple of issues to wrap it up, the UI should be added behind a config flag, something like permalinksUI: true.

How this UI should work

(Taken From #1631 (comment))

  • With certain keys such as a comma (final to be determined), the current value of the input is taken and added to the permalink structure
  • Pressing backspace in an empty input deletes the last parameter
  • gif's are worth a thousand words

permalinks

In detail

We need to be able to interact with this component in a few different ways:

  • typing url-valid chars (a-z, A-Z, 0-9, _ and -) should result in them being added to the current 'url part'
  • typing a terminator (space, comma, /, tab or enter) should result in the current url part being ended and a new one begun (please note this needs to be done in a locale-sensitive way.
  • typing a special tag should allow users to enter an item of dynamic data such as :slug, :id, :year, :month, :day or :author. What the special tags will be (i.e. will it be %y or :year or something else) is still to be tested out and decided so this ought to be easily configurable in the code.
  • pressing backspace should delete the entirety of the current url part as shown in the gif.
  • typing any other character not supported by the component should probably result in nothing happening?
  • The component should stop allowing input once 5 url parts have been added (see [Feature] Permalink Settings UI #1631 for full details of what is valid)

Also, the URL in the component should be the blog's real URL

@ErisDS ErisDS added the affects:admin Anything relating to Ghost Admin label Nov 19, 2014
@ErisDS ErisDS added this to the Current Backlog milestone Nov 19, 2014
@ErisDS ErisDS modified the milestones: Next Backlog, Current Backlog Nov 25, 2014
@ErisDS ErisDS removed this from the Next Backlog milestone May 19, 2015
@ErisDS
Copy link
Member Author

ErisDS commented Oct 9, 2015

Closing along with #1631 (#1631 (comment)) - we will revisit this in future in line with demand / priority.

@ErisDS ErisDS closed this as completed Oct 9, 2015
@Tyriar
Copy link

Tyriar commented Jan 15, 2016

@ErisDS Any movement on this issue? Seems pretty essential for those who want to migrate from Blogger without losing their page rank.

@ErisDS
Copy link
Member Author

ErisDS commented Jan 15, 2016

@Tyriar there are ways to work around the lack of UI. Custom permalinks are possible by editing the DB / emailing Ghost(Pro) support if you're a customer. The remaining bits that aren't supported like .html on the end of a URL can be mitigated with 301 redirects without loss of pagerank. If you need help migrating, pop into the #help channel on slack and we can walk you through the process 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects:admin Anything relating to Ghost Admin
Projects
None yet
Development

No branches or pull requests

3 participants