Now you are able to create your very own category templates. When you have created your category fields structure, have created at least one product record, and have looked on it in the table, list, product view and you are not too happy with the default product template (i know, the default view is very asketic), so you can go into Templates administrator section of the Advert extension and press the "New" button, then you can load default templates - they will be handy for you to make your own displaying HTML structure, so press there "Load category default templates" button, select desired category to customize and press "Submit". There must be filled three WYSWYG editors with the default templates HTML. I would like to suggest to copy & paste each teplate HTML source into any advanced HTML editor (notepad++ for example), then make there all changes with HTML, then copy & paste your code back.

as you can see, every field markup begins with [field-begin:field name] placeholder and ends with [field-end:field name] placeholder - this allows to system to remove empty fields and insert fields data into proper place. Inside these placeholder goes your html with one or two more placeholders - [field-title] and [field-content] which will be replaced with the field name and field output respectively.

Suppose you have an idea to create a sale directory of books and magazines.

Books, for example, have the following properties

  • Genre
  • Year of manufacture
  • Author

Create a data fields. The data fields is the global dictionary of all categories of your catalog. Some data fields may be used in several different categories, some - only with one category.

  • "Genre" - a field type "select", in the settings field enter the comma separated list of genres, this field might be used with all views types (search, list, table, detailed)
  • "Year of manufacture" - field type "text", used with detailed view
  • "Condition" - field type "select", in the settings field enter a comma separated list - New,Used - can be used with all views types
  • "Author" - field type "text" or "select" - if the number of authors is not too big - can be used with all views types

Create a category, name it "Books", select needed data fields and save it. You can create sub-categories.

In magazines properties structure is looks like the books structure, but you need to add a month field

  • "Month" - field type "select", with a list of comma-separated months - can be used with all views types, it should be ordered before the field "year of manufacture"

Create a category, name it "Magazines", choose needed data fields and save it. You can create sub-categories.

If the products in some categories you do not plan to sell, specify the "Type" of this category as "Catalogue"

If the products in some category are virtual and do not have the image - you can disable loading of the main image of the product, indicating the "Listing image type" as "User logo" - then in the list of products instead of the image of the product will be displayed image (logo / avatar) of this adverise creator

Now when you are adding / editing products there will be loaded specified set of fields for the selected category. Child categories inherit parent categories fields.

In the global settings you can set the sizes of the component images in different types of views of this extension. Changing of the settings for the size of the pictures applyed immediately after saving settings.