cydrobolt / polr

:aerial_tramway: A modern, powerful, and robust URL shortener
https://polrproject.org
GNU General Public License v2.0
4.98k stars 892 forks source link

Feature Request: Add a Link Title and/or Description #331

Open DigitalBoffin opened 7 years ago

DigitalBoffin commented 7 years ago

Add (an) additional field(s) for a Link Title and/or Link Description to make it easier to identify links in the Admin page

Expected Behavior

When creating the Link (under "Link Options" perhaps) - a field to enter a Title (i.e. "My Shortened Link to Somewhere") Admin Page: an editable field to Title/Describe the link

DigitalBoffin commented 7 years ago

I was thinking about trying to code this myself, though I am not familiar with this environment. Can you point me to the relevant files that contain the code which

I think I have found the code that creates the webpage "views". What I cannot find is the php code for writing records to the database.

Thanks for the help.

cydrobolt commented 7 years ago

Database migrations: https://laravel.com/docs/5.4/migrations

Eloquent ORM: https://laravel.com/docs/5.4/eloquent

In regards to adding a description field, I'm not sure if adding the field would be helpful to users. The short link and long link are usually enough to identify a link or understand its purpose. Fitting in the title and description into the admin panel would also be rather difficult, given the amount of space needed to display the text.

However, if you want to add this yourself, I linked some resources that could be helpful.