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

Merge project with bolt-shorturl #18

Open
madc opened this issue Apr 25, 2017 · 4 comments
Open

Merge project with bolt-shorturl #18

madc opened this issue Apr 25, 2017 · 4 comments
Labels

Comments

@madc
Copy link

madc commented Apr 25, 2017

Just a thought: I wrote a plugin that has a similar functionality some time ago.
bolt-shorturl provides a custom fieldtype that allows to setup a shorturl per entry. From the docs:
"This plugin provides a new 'shorturl' fieldtype for contenttypes and redirects accordingly. When set up, it redirects i.e. from http://yourhost/s/short to http://yourhost/page/this-is-my-long-slug."

Maybe we could merge these plugins, as they are quite similar. Also, not sure, if the whole custom fieldtype thing is still necessary.

@mikerockett
Copy link
Contributor

The thing is that you'd need to consider multiple source URIs mapping to the same entry/page/content. That particular package would have to be able to allow an entry to specify multiple sources, and I'd also recommend a separate view that brings them all together in a single list for easy-access purposes.

@SvanteRichter
Copy link
Contributor

Hmm, I think that they serve two different audiences, the shorturl one is mainly meant for content authors, right? This extension is (IMO) mainly meant for developers trying to migrate a large number of old urls to a new bolt site.

I think it might be good if they shared a common base for handling redirects though, If my new work does not end up being very stressful I should be able to manage to put that out in the comming months.

@mikerockett
Copy link
Contributor

I'd agree with that too. Sure, they could be interchangable, as suggested. So either share a common base, or perhaps incorporate the Shorturls package into this one...

@madc
Copy link
Author

madc commented Apr 28, 2017

I totally agree, that they serve different audiences, but the overhead of combining them seems quite minimal to me. My suggestion would be to take the custom fieldtype from my extension and integrate it into this one. That would mean, as a developer I still can configure any redirection over my config file and as editor I can use the custom fieldtype.

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

No branches or pull requests

3 participants