LunpaCMS Whipping your website into shape! Introducing Lunpa, our mascot.  Her mother was a hamster and her father was Chilean M00se.  Oddly, neither smelt of elderberries.


LunpaCMS Image Repository Manager Documentation

A Quick Introduction

Image Repository Manager is an easy tool to format and use images on LunpaCMS. It has been developed for LunpaCMS to add the ability to upload images to the web server, and reuse them in multiple places within the CMS. It provides users with web interfaces to upload images to the web server and enter image information for easier management. Also, users can create image items from uploaded images with preset image styles. Image items can be called from anywhere in the CMS.

Even after you have placed an image and it's items in many places within LunpaCMS, you can replace the image with new one through a web interface. Once you replace the image, all instances of the image will show new image site wise.

Images in the Image Repository Manager can be used as input of other LunpaCMS Managers. For example, News Manager can use images in the Image Repository Manager as attachment choices. You can choose and reuse images from the Image Repository Manager for different news articles without having the difficulty of uploading an image over and over again.

Installing Image Repository Manager

  1. Run imagerepositorymanager/install.pl, and follow instructions
  2. Image Repository Manager is ready to use

Available Image Item Attributes

Using an Image Item in the Template

In order to use Image Repository Manager, go to the Image Repository Main admin page. From here, you can add and modify images and categories. In order to create and use an image around the site, you must first add an image by clicking on the "Add Image" link and following the prompts. To use place an image on the site, find the image by selecting the category it is in and clicking "Show Images". If you have already created an item for this image, you can click "Show" and it will give you a list of existing items. Otherwise, click "Manage Items" on the image's information box to add an instance of the image.

When you created an image item, LunpaCMS assigns an ID number for the image item. You can place this image in any template at where you want to place the image Image with following code. This example prints image item with ID 12.

:::IMAGE_ITEM:12:::

Using an Image Item in News Articles

In order to use images from the Image Repository Manager, two things have to be set up initially.

  1. Create a category for news article images by going to "Manage Categories" in the Image Repository Manager main menu and adding a category by entering a title and characters alphabetize on and clicking "Add Category"
  2. Get the ID of the Image Repository category that you just created on the manage categories page and add it to the LOCAL_NEWSMANAGER_REPOSITORY_IMAGE_CATEGORY_IDS map in Map Manager. If there are multiple, separate the ids with commas.

Then whenever adding a new article, there will be a section at the bottom where you can select the images you would like to add to the news article. In order to set the image options such as auto image or auto link, you must re-edit the article like you have to do with any other upload.


Add Your Comment


(Only a limited set of HTML tags such as <b>, <i>, <u> are allowed. Embedded flash video from Youtube or Vimeo are also supported.)


Copyright © 2018 Peregrine Computer Consultants Corp. All rights reserved.

About Lunpa, our mascot. Her mother was a hamster and her father was an ill-tempered Chilean M00se. Oddly, neither smelt of elderberries.
The artist is Jennifer Lomax.