Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

default values for 'Embed doc' input parameters
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: default values for 'Embed doc' input parameters
#63345
default values for 'Embed doc' input parameters 6 Years, 4 Months ago Karma: 0
Hi, are there any plans to add plugin parameters to set default input paramaters when embed docs?

As of now you can in plugin parameters set default engine to use which is nice, but it would be even nicer to be able to set default value for the other input parameters 'Document URL', 'Width' and 'Height'. These have to be entered manually every time you want to embed a document to the article.

The default for 'Document URL' would be the default path to the folder you store your files in, and then the customer only needs to add the filename to it.

I have however added default values to the input parameters by modifying the file .../media/aridocsviewer/editor/tpl/modal_body.tpl

Code:

<div class="adv-jeditor-group-doc control-group">
    <label class="control-label with-tip" for="#{prefix}_tbxADVDocUrl" title="#{messages.docUrlTip}">#{messages.docUrl}</label>
    <div class="controls">
        <input type="text" id="#{prefix}_tbxADVDocUrl" class="input-xlarge" data-plugin-key="url" value=files/ />
    </div>
</div>
<div class="control-group">
    <label class="control-label with-tip" for="#{prefix}_tbxADVWidth" title="#{messages.widthTip}">#{messages.width}</label>
    <div class="controls">
        <input type="text" id="#{prefix}_tbxADVWidth" class="input-mini" data-plugin-key="width" value="100%"/>
    </div>
</div>
<div class="control-group">
    <label class="control-label with-tip" for="#{prefix}_tbxADVHeight" title="#{messages.heightTip}">#{messages.height}</label>
    <div class="controls">
        <input type="text" id="#{prefix}_tbxADVHeight" class="input-mini" data-plugin-key="height" value="1200"/>
    </div>
</div>



This would of course get overridden again if I was to update the plugin in the future, so therefor if an option in the plugin parameters to assign default values to all the input parameters would be added for a next version of Ari Docs, then that would be nice.

Last Edit: 2018/07/10 14:56 By hammur.
The administrator has disabled public write access.
 
#63346
Re:default values for 'Embed doc' input parameters 6 Years, 4 Months ago Karma: 760
Hello,

Thank you for your suggestion. We will add ability to define default values in plugin settings in the next version of the extension.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#63359
Re:default values for 'Embed doc' input parameters 6 Years, 4 Months ago Karma: 760
Hello,

Update the plugin to v. 2.2.0. It supports ability to define default values for "Width" and "Height" parameters in plugin settings.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1