Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The configuration of CMS_IMGEDITOR is splut split into three different sections.

To configure the image edtor editor click on the blue image icon(see screenshot below).

...

In the first tab Directories you can select one directory. One the right side, you will see all files from the selected directory. You can choose the a file there or remove an already selected file by selecting the first option. After selection of the file you can save selection Save the settings of all tabs by clicking on the green checkbox or cancel selection discard all changes by clicking on the red cross icon.

In the second tab Meta you can input different meta information like title, description, keywords, internal notes and copyright.

After input you can save selection by clicking on green checkbox or cancel selection by clicking on red cross icon.

In the last tab Upload you can create new directory in upload treedirectories, upload new files or select allready already existing files .The way how to select file ist in the same like way as in directory tab(see above)the Directories tab.

To upload the new file click on the browse button, select a file from your filesystem and uploaded file it will be placed in selected directory.sent to the server and then appear in the current folder.

Methods for CMS_IMGEDITOR

Have a look at the complete API documentation here.

FunctionDescription
getAbsolutePath()Get the absolute path to the image (e.g. "var/www/contenido/cms/uploads/images/image.jpg")
getRelativePath()Returns a path to the image relative to the upload directory of the client (e.g. "images/image.jpg")
getAbsoluteUrl()Return the absolute URL of the image (e.g. "http://example.com/cms/uploads/images/image.jpg")
getRelativeUrl()Get the URL of the image relative to the client base directory (e.g. "uploads/images/image.jpg")
getMetadata()

Gives an array with configured meta data

Code Block
languagephp
$returnValue = array(
	"medianame" => "bla",
	"descirption" => "picture of a lake",
	"keywords" => "lake nice picture"
	"internalnotice" => "do not touch"
	"copyright" => "(C) 1295");