Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #499241

    Hi!

    I’m trying to build a new avia element, which will be used to select a PDF file (which is a missing element in enfold).
    As base I’m using the image.php shortcode.
    But i can’t select type to be PDF…i’ve tried:
    – application/pdf
    – pdf
    – document
    – “” (empty)
    – media
    – all
    and even commented out the “type” line…which is this one:

    array(
    							"name" 	=> __("Choose Image",'avia_framework' ),
    							"desc" 	=> __("Either upload a new, or choose an existing image from your media library",'avia_framework' ),
    							"id" 	=> "src",
    							"type" 	=> "image",
    							"title" => __("Insert Image",'avia_framework' ),
    							"button" => __("Insert",'avia_framework' ),
    							"std" 	=> AviaBuilder::$path['imagesURL']."placeholder.jpg"),

    Seems to me that only this works for “type”:
    – image
    – video

    So, how can i select from all filetypes in the media library (or especially pdf’s)?

    Thanks!

    #499406

    Hi freddyB!

    That’s not going to work unfortunately. It will only accept images. It would be best to hire a freelancer to help you out with this customization.

    Cheers!
    Elliott

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.