×

Catalog

Specialities in the News pages:

  • images have fixed aspect ratio 2:1, big images are resized, small images are rejected.
  • image class for tinymce is changed to allow images the full column width
  • detail page shows title, the 1st image, description and content. To the right is a side bar

Optimizing (future plan):

  • Full text search
  • 2nd datadefinition for detail page, due to avoid to send the content to the catalog page.

Datadefinition

Here are only the changes listed:

head

  • tinymce library
  • tinymce initialization, image class changed in js-file
  • no detail script

masterdata upload

  • upload_max_filesize=5M
  • minimum width and height
  • resize width and height
  • crop the larger side

masterdata SQL

  • searchcolumn set to margin,headtitle, headdescription
  • k8login joined for username
  • "sql_orderby": "datetimecreated desc"

k8form

  • marking is required
  • groupID changed to select
  • headtitle is required
  • headdescription changed to textarea
  • added tinymce to content

HTML

  • catalog_record
  • detail_record

HTML

catalog record

filename: kitsamples/newspages/newspages_catalog_record.html

The images uses the full width of the left column. The following placeholders for the right record column are in:

  • {{headtitle}}
  • {{datetimecreated}}
  • {{username}}
  • {{headdescription}}

Please regard in your snippets the classes:

  • js_rec_record: important!
  • js_inlineform: optional for the form

detail record

filename: kitsamples/newspages/newspages_detail_record.html

In this markup are 2 columns

  • the record with the news, fields and images use the full width of the column
  • the sidebar: class="js_sidebar"