Expressionengine Get File Upload Directory in Plugin

Aqueduct Images Documentation

Installation and Updating

Installing

  1. Within the/system/expressionengine/third_party/ directory, copy the channel_images folder into your sites./organisation/expressionengine/third_party/ directory.
  2. Within the/themes/third_party/ directory, copy thechannel_images binder into your sites./themes/third_party/ directory.
  3. Go to the Modules area in the ExpressionEngine command panel, detectChannel Images in the list, and clickInstall.

Updating

  1. Within your sites./organization/expressionengine/third_party/ directory, delete thechannel_images folder and upload the new 1 from the/system/expressionengine/third_party/ directory in your download package.
  2. Inside your sites./themes/third_party/ directory, delete thechannel_images binder and upload the new ane from the/themes/third_party/ directory in your download package.
  3. Go to the Modules expanse in the ExpressionEngine control panel and click theRun Module Updates button.

Channel Images has 5 main template tags.  However, template development should really occur using the bodily curt field name from your aqueduct field setup.  The Images Tag and the fieldtype are identical in employ if you are using the field from within a Channel Entries loop.

Images Tag

This is the main tag of the Channel Images module. It is identical to using but the short proper name for the field. This tag would be used to create thumbnail displays or total epitome galleries. It is designed to evidence the images in the society in which they are laid out in the entry.  In this tag you have access to all the variables or "sizes" as called in your channel field settings.

Grouped Images Tag

The grouped_images tag sorts the images by category. Where the Images tag lays out the images in order. This tag first groups the images by category and then bear witness the images within that category in the order in which they are laid out in the entry.

Images Static Tag

This is not a ordinarily used tag. This is a single case tag that does non loop. It is designed to push Channel Images images into variables coming from other field types.  The images_static tag will look for embed variables in a nested field and output prototype data from the ordered variable called.

Next Epitome Tag

This tag is very elementary. It will only requite you what the next prototype from the list is.

Previous Paradigm Tag

This tag is very simple. It will just give you what the previous image from the list is.

Aught Tag

This tag is designed for local file uploads merely. When the tag runs information technology volition zip all the images from that entry together.

Add Channel Images Field

Adding the Field

Channel Images Field

To add Channel Images to your Channel but add the field and select Channel Images from the fieldtype choices. Once you brand the pick you will see the post-obit field type setup (equally of v. 5.4.16).

Channel Images as well has ii layout options, Tiles and Tabular array. Tiles is a simple view option where you take no demand for custom fields. Table view allows for boosted content entry. Option to change titles, descriptions, categories and other custom fields.

Image Size Name

Upload Actions

Setting up Channel Images is fairly straight forrard. Almost of import is to setup your "sizes" and "actions". Channel Images can accept an unlimited amount of sizes and deportment per size. By default you go three sizes added to your field, small, medium and large. These can be changed by clicking on the size title.

Actions

Past clicking Evidence Settings you will see a new area of actions. Currently Channel Images back up over 40 different actions. These actions will accept place in the club in which they are placed. Each activeness volition occur after the concluding. For example if accept colorize and then resize, the epitome will colorize before the image resizes.

Each activeness has instructions when called.

Upload Location Settings

The Upload Location Settings tab gives you control of where the files volition go. Aqueduct Images has three options Local, Amazon S3, Rackspace Cloud Files.  Click the Examination Location button to see if the connexion works.

Local Settings

Aqueduct Images uses standard ExpressionEngine File Upload Folders to provide local uploads. Each entry will create a subfolder with the entry id number. If you choose to Keep Original Epitome and then the uploaded file will exist stored and will allow for regeneration of images if preferences change in the hereafter. Annotation: Without storing the original image you volition never be able to regenerate images.

Amazon S3 and Rackspace Cloud Files

Optionally remote uploading is possible. Notation: All remote uploads yet upload offset through the server. And so maximum php upload limits and post size however are in result.

Fieldtype Settings

Channel Images has extensive <i>Fieldtype Settings</i>. The following is a list of the options.

i) Categories

- Aiblity to categories to private images. This is not continued to ExpressionEngine categories. Commas are separated by a comma.

ii) Default Category

- Automatically give each image a category

iii) Testify Stored Images

- Allows for y'all to connect images already uploaded on another entry. Annotation: Merely images in the aforementioned field group are linkable.

iv) Limit Stored Images by Author

- Just show Stored Images that have the aforementioned author of the current fellow member.

5) Stored Images Search Type

-  When viewing stored images you tin show all images without reference to their entry or show all entries and so the images.  This is useful when hundreds of entries of images be.

6) Show Import Files

- Add an Import Files button to the Channel Images field. When clicked it will open a box that will allow you to click and add files from a local path on the server. Useful if you wish to import images already on your server.

vii) Evidence Image Edit Push button

- Add an Edit Image button to the Channel Images field per paradigm. This button allows for multiple options for manipulating private images.  It allows for simple cropping, rotation and regeneration of images.

8) Show Image Replace Button

- By default Channel Images does not allow yous to upload an epitome with the aforementioned name. The Replace Buttonallows for uploading of a replacement epitome.

9) Allow Per Image Action

- This allows for single actions to take place from the entry. By clicking the Activity Push, per image, a popup will occur that allows you to practice unmarried actions. For example, sepia, colorize, resize and other actions within Aqueduct Images.

x) Epitome Limit

- Just limit how many images can be uploaded to an entry. Provides a numerical count down on the entry.

11) Hybrid Upload

- Past default Aqueduct Images uses HTML5 uploader. Hybrid Upload provides a Wink fallback uploader.

12) Create Progressive JPEG

- All images creating using the default GD2 library will be progressive.

13) Original Image Option in WYSIWYG

- Integrated WYSIWYG plugin option to show your original epitome. Without this option on, only the additional sizes will be shown.

14) Relieve image metadata in Custom Field

- All meta information will exist stored in the action exp_channel_data tabular array. This volition allow for ExpressionEngine search tools to notice text inside the standard database table.

xv) Disable Cover push

- Remove the Cover Image choice from the image list.

sixteen) Catechumen all uploaded images to JPG

- Useful if some members upload png or gif files you wish always converted to jpg.

17) Movement Cover images to the beginning position

- Always move the selected embrace image to kickoff position. In a gallery environment this would e'er identify the image first.

18) WYSIWYG Output

- Within the embeded WYSIWYG you may employ the full URL of the image or a static variable. Static Paradigm variables let yous to use the Static Images tag to create custom looks or options from inside some other field.

19) Parse IPTC, EXIF and XMP

- Parses data and makes all variables available for use in templates and Channel Images custom fields.

twenty) Human activity URL

- Useful for debugging. This URL must fire to accept AJAX requests from the module.

Field Columns are customizable as well. By removing the text from the input field of the column will remove the selection from the Channel Images entry table. Y'all are required to have at to the lowest degree one field. If y'all wish to have a make clean, image just layout, switch to the Tile View.

Using the Aqueduct Images Field

When creating an Entry within ExpressionEngine you will be shown the Channel Images fieldtype. Depending on your setup you volition either see the Tile View or the Table View.

Table View

This is the powerhouse of the Channel Images fieldtype. It gives you the option of controlling multiple levels of content and actions.  There are 3 principal buttons that work for the entire field. Those are Upload Images, Stored Images, and Import Images.

ReplaceUpload Images

- This push opens a multi-select window where you can cull one or multiple images from your reckoner or device. Each image will upload with a progress bar and process whatever actions in one case complete. Annotation: You may simply drag and drop images to anywhere in the field too if yous are using an HTML5 compliant browser.

ReplaceStored Images

- Opens an area that volition let yous to select other images from the aforementioned field group. This button is optional and configurable in the field settings tab.

Replace  Import Images

- Opens a minor popup where you can select images from a local server directory. This push button is optional and configurable in the field settings tab.

Next there are several columns that can be used. These are setup during the field settings but utilized in the field rows. Here you can edit the Championship, Clarification, change the category and provide custom field information. Note: Y'all must click out of any field for it to salve when submitting the entry. If yous still accept the field "active" when submitting in ExpressionEngine the data will not be stored.

Lastly there are 6 optional buttons at the paradigm level. Those buttons are Process Deportment, Move, Cover, Edit, Replace and Delete.

Replace Process Actions

- Provides a popup option to apply a "one time" action to an paradigm. You are given a dialogue to choose from the electric current activeness sizes, an additional action you wish to apply and finally the ability to preview the activity submitting the change. Note: If you regenerate your images these "i fourth dimension" actions will be lost.

Replace Move

- Uncomplicated drag and drop ordering tool for your images. Past default Channel Images outputs images in the social club displayed in the field.

Replace Cover

- Ability to select an image as "featured" or otherwise known as theembrace paradigm. The Channel Images tag allows for y'all to limit past or skip the cover prototype in template options.

Replace Edit

- Opens a per image edit screen. Here you can resize, rotate, crop and regenerate the images on a per image footing. These changes are permanant and not effected by regeneration.

Replace Replace

- This selection allows y'all to replace the image past uploading a new prototype. By default Channel Images volition not overwrite images with the same file proper name.

Replace Delete

- Deletes the image files, sizes and remove the image data from the database.Note: This will too remove all linked images to this image.

Break Link Intermission Link

- This will simply bear witness if the image is a linked prototype. By clicking you will intermission the link simply non delete the image.

Tile View

The tile view is a elementary view for those not needing the options of the table view. The tile view only has the power to edit the title, replace image, edit and delete. The options are identical to the table view, simply simplified and available only when you hover the epitome.

Editor Integration

  1. Within InstallingAqueduct Images and Editortogether and a new button will be added to the Editor configuration options. SeeEditordocs for how to add together buttons.

Channel Images Button

Wygwam Integration

  1. When using Channel Imagesand Wygwam fields in the same aqueduct, a new button will be added to the Wygwam configuration options. SeeWygwamdocs for how to add buttons.

brownaltood.blogspot.com

Source: https://eeharbor.com/channel-images/documentation

0 Response to "Expressionengine Get File Upload Directory in Plugin"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel