Main Menu
Contact
Popular Plugins
Sign In

Output src (source) only

Sometimes you'd want to only output the source (src) of a file, for referencing where a file is located maybe. You can do that by using the "output_src_only" key and set it to true.

"exampleFile" => [
    "type"  => "File",
    "label" => t("Example File"),
    "view"  => [
        "output_src_only" => true,
    ]
],

Class

You can set a class on the anchor of the image, when NOT chosen for outputting only the source (src) of the image.

"exampleFile" => [
    "type"  => "File",
    "label" => t("Example File"),
	"view"  => [
		"class" => 'my-css-class multiple-allowed',
	],
],

The value has to be a string and can contain multiple class names. By default, no class names are added to the anchor.

Target

In case of wanting to open your anchor in a new tab for example, you can set the "target" of the anchor. You can pass any string, but adviced is to use one of the following (valid HTML values):

Value Description
_blank Opens the linked document in a new window or tab
_self Opens the linked document in the same frame as it was clicked (this is default)
_parent Opens the linked document in the parent frame
_top Opens the linked document in the full body of the window
"exampleFile" => [
    "type"  => "File",
    "label" => t("Example File"),
	"view"  => [
		"target" => '_blank',
	],
],

By default, no target attribute is applied to the anchor and therefore will open in the same frame as it was clicked.

Choose text (choose_text)

If you don't like the default "Choose Image" for chosing an image, you can decide to add your own text instead. Like "Choose Logo" or "Your Logo" or whatever you'd like to have it read. As long as you pass a string as value, it's all good (you may still use the translate function to have it as a multilingual string)!

"exampleFile" => [
    "type"  => "File",
    "label" => t("Your CV"),
	"config"  => [
		"choose_text" => t("Your .pdf or .docx here"),
	],
],

Use, by you or one client, in a single end product. The total price includes the item price and a buyer fee.

  • Quality checked by Concrete5
  • Future updates
  • 30 Day Support
  • Concrete5 buyer fee: $32.70
Add to Concrete5 Cart

Use, by you or a client, in 5 single end products. The total price includes the item price and a buyer fee.

  • Quality checked by Concrete5
  • Future updates
  • 30 Day Support
  • Concrete5 buyer fee: $130.80
  • Save an extra: $109.00
Add to Concrete5 Cart

Use, by you or a client, in x/xx single end products.

Upon request, quote will be made and sent to you via email.

  • Quality checked by Concrete5
  • Future updates
  • 30 Day Support
  • Saves extra $$
Request Quote
Released 4 years ago
Updated 3 years ago
Requires concrete5 5.7.5.3
Current version 0.9.7
Skill level Bleeding Edge

Buyer Rating:

5 average based on 2 ratings More information

Got something to say? Need help?

View support forum