Viewing 6 replies - 1 through 6 (of 6 total)
  • KevEd,

    I added this to the beta version.

    http://davismetro.com/gde/beta-program/

    There is a “File Base URL” setting added. If the URL you pass to [gview file="..."] doesn’t start with “http” (including https) and this setting has a value, it’s prepended to the URL before embedding. This way you can still link directly to files outside the base URL, but save time on the documents that are in the same root location (or subfolders, according to your organizational scheme).

    Give it a try and let me know what you think.

    Kevin

    Kevin,

    This is working perfectly for me on the latest beta. I sent you an email from your web site earlier that it was not and figured out that I should not be using the full url to the file, but only the portion after the location I set in “settings”.

    Nice plugin, thank you!

    Jeff

    Thread Starter KevEd

    (@keved)

    Hi K3davis, thanks for the beta mod. I found another way to achieve the prefill of url string.
    edit the dialog.js file on line 53
    shortcode = shortcode + ' file="'+('http://mydomain/MY_FILES/')+jQuery('#url').val()+'"'

    This adds the first part of my domain’s url string in front of whatever filename is typed into the URL field.
    I amended gde-dialog.php to read ‘enter filename’ instead of ‘enter URL’ too.

    sminc,

    I’m sorry I didn’t receive your email. Is there a way you think that I could clarify the wording of the setting to help this?

    KevEd, you are right I will need to update the dialog.js appropriately. That method itself is probably not sufficient though since I don’t want EVERY file to be prefixed, but only those that aren’t a full URL already. This is both to allow links to files in other locations when needed, and also for backward compatibility. I will amend this in beta 2. Currently working on another feature.

    Thanks both for your feedback.

    Kevin

    Kevin,

    At the post or page edit, when you click the button to bring up the pop up to create the short code, it asks for the “Complete URL” there, some mention that you should consider what you did in settings would help, like, “Complete the file location and file name URL started with the “File Base URL” in settings” or something like that.

    Jeff

    Hi Jeff,

    I hadn’t updated the wording on the dialog (or in several other places referenced in the documentation) as of beta 1. The next beta will address this issue and include other improvements to the editor integration. Still working out a few kinks… and also, just working, which makes these things take a little while 😉

    Thanks for the feedback.

    Kevin

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Google Doc Embedder] Pre-populate part of url field’ is closed to new replies.