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

[Enhancement] Ability to add 'download links' #27

Open
DeeEmm opened this issue Sep 13, 2020 · 0 comments
Open

[Enhancement] Ability to add 'download links' #27

DeeEmm opened this issue Sep 13, 2020 · 0 comments

Comments

@DeeEmm
Copy link

DeeEmm commented Sep 13, 2020

I'm using this plugin as a customer support portal, part of which includes downloadable content. At the moment I'm adding the content inline within the document. Clicking on the document link and then clicking on the download link within the document to download the content (for example PDF documntation)

It would be good to link directly to a URL instead of a document. So that when the link is clicked on it serves the downloadable content.

For example - in the admin interface, when adding a section or an article, we can instead add a link, like this...

Screen Shot 2020-09-13 at 4 28 40 pm

Where the there is some kind of shortcode with the URL contained in brackets, for example...

My Link Title [mysite.com/mycontent]

Then on the front end it is displayed like this....

Screen Shot 2020-09-13 at 4 29 49 pm

And when the links are clicked on, it takes you to the saved URL.

Simples

I think that this is a simple change but will add great power to your extension as it allows it to be used to serve downloadable documentation and files along side the regular documentation.

Of course it is possible to also make a more complex version that utilises the wordpress media library or even seperate additional file downloads manager, but I think that this is not necessary. There are already many download plugins out there that are full of bloat. What is missing is a simply way to serve files alongside documents.

If required (and to be more W3C compliant) additional meta info can also easily be included, for example...

My Doc Title [url="mysite.com/mycontent" alt="my content download" class="myCustomCssClass"]

All of this is easily translatable into standard HTML / CSS which allows it to easily adopt the standard theme / template style being used.

/DM

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

No branches or pull requests

1 participant