Creating a new format for classified ads
SE: Classified Ads -> Settings -> FORMAT
We use the formats to define the layout of classifieds. The elements are defined through tags that are associated with the styles defined in InDesign, so when ads are imported, XML documents will automatically be formatted. Names of tags are defined by ourselves and by pseudocodes we define the content that we want to include within our tags.
Pseudocodes:
{AD_CONTENT} | the code for entering the content of classified - the AD CONTENT field when writing a classified in StoryEditor |
{R} | code for entering a new paragraph |
{IMAGE} | the image entry code in classified - the MEDIA field when entering a classified in StoryEditor |
{AD CONTACT} | code for entering contact information - Contact INFO field when entering a classified in StoryEditor |
{TAB} | the code for entering a tab character within a classified |
{classID} | the code for entering the Identification Number (ID) from StoryEditor |
{AD_EMAIL} | code for entering email addresses - Email field when entering a classified in StoryEditor |
{CODE} | the code for entering a special code - the Special Code field when entering a classified in StoryEditor |
{II} | an code for User initials who has entered a classified in StoryEditor |
Using codes, we pull content from StoryEditor to InDesign while using tags (eg Class-Normal) we define their layout by mapping styles with tags.
By clicking New Format, we create new empty fields where Format name is entered in Format Column and in Structure we enter the structure of the tags for each format.
Explanations of other tags:
Img-FR-Center |
Each image should have its own tag so that it can position it in the middle using the paragraph style, and with automatic leading, image does not exceed the rest of the text. Likewise, with this paragraph style we define the space before and after the picture. |
AD-Normal | We create a new Paragraph style named AD-Normal according to the design |
Table-FR-Yellow Table-FR-White |
Here are some of the tags we've created in the formats for the needs of small boxed or subscripted ads. As with any category, each such format must have 3 tags (Table - Cell - Paragraf). For Table tag we create table style in inDesign. In the table style, we can define which cell style the table usually contains (General -> Cell Styles -> Body Rows), and in the style of the cells are defined the paragraph styles (General -> Paragraph Styles) so we only need to map Table style with Table Tag. |
Cell i Table parametri |
aid:table="cell" - type of part of a table (table or cell) aid:crows="1" - the number of rows to be drawn in InDesign aid:cols="1" - the number of columns that we will get in InDesign aid:ccolwidth=121.2131....- column width in InDesign. |
Each format also has some of its settings for prices, word count and image width. (Configuration column in formats)
Image Width (mm): | definition of image width when entering XML file in InDesign. |
Price (first n words - count): | number of words to which the price is defined |
Price (first n words - price): | the price of the words number we defined the step earlier |
Price (next word - price): |
the price of each additional word when passing over the defined amount of words (Price (first n words - count):) |