CMS Support - KMods

My Market Toolkit provides automatic data libraries and functions for its CMS tool. A KMod is a code inserted into a template that calls a data library or function.

KMod Types and Descriptions

KMod Type Description Example KMod Code
Header The Header KMod automatically generates the HTML for the meta Title, Description, and Keywords based on what is written on individual pages. The one code inserts all 3 meta types. [kmod type="header"]
CSS My Market Toolkit allows you to manage all of your stylesheets online. To link to a stylesheet, click on the "Edit" (pencil) icon for your stylesheet and copy the code to paste in the template within the head tag. [kmod type="css" name="styles"]
JS My Market Toolkit allows you to manage all of your javascripts online. To link to a javascript file, click on the "Edit" (pencil) icon for your javascript and copy the code to paste in the template within the head tag. [kmod type="js" name="menu-1"]
blog_post_list This KMod is a blog element. It allows you to place a blog post list in a template or KBlock. [kmod type="blog_post_list" name="post-list-1"]
blog_posts This KMod is a blog element. It allows you to design your posts and paste the posts into a template or KBlock. Available KMod Elements are post_date, post_title, post_entry, post_author, and post_categories. [kmod type="blog_posts" name="blog-posts"]
blog_post_comments This KMod is a blog element. It allows you to place blog post comments in a blog post, KBlock, or template. Available KMod Elements are comment_title, comment_author_and_date, comment_author, comment_date, and comment_body. [kmod type="blog_post_comments" name="blog-comments"]
blog_post_tags This KMod is a blog element. It allows you to place blog post tags in a blog post, KBlock, or template. [kmod type="blog_post_tags" name="blog-tags"]
blog_post_archives This KMod is a blog element. It allows you to place blog post archive links in a KBlock or template. [kmod type="blog_post_archives" name="blog-archive"]
menu_simple A My Market Toolkit menu_simple KMod will allow you to build menu items (list items) in one location and place it within a kblock or template. [kmod type="menu_simple" name="top-menu"]
featured_pages This creates a list of CMS pages that you've set as featured. You can sort alphabetically or by the last updated date. [kmod type="featured_pages" name="my-featured-pages"]
page_alpha_list This creates set of links for each letter in the alphabet along with the selected pages. When you click on a letter, it drops you down to the appropriate place on the page. [kmod type="page_alpha_list" name="alphabar"]
page_tags This creates a list of your page tags.  Clicking on a link takes you to a page listing all of the documents linked to that tag. [kmod type="page_tags" name="tag-list"]
page_tag_list This KMod needs to appear in the template you use for your CMS pages. It controls your tag list pages. [kmod type="page_tag_list" name="page-tag-list"]
pages_format This KMod controls how the page_tag_list will format each page entry. Available KVars are page_title, created_date, updated_date, and content. [kmod type="pages_format" name="page-format"]
inline_page_element This allows you to insert some text after a particular number of html tags have been found.  For example, you could display an ad or image after the 3rd paragraph. [kmod type="inline_page_element" name="inline-ad"]
lightbox_gallery This KMod creates an image that when clicked, displays a large image in a layer above the rest of the page. It accepts standard KVars. [kmod type="lightbox_gallery" name="gallery"]
merchant_simple_add_to_cart This KMod is an E-Commerce element. It makes it possible to create Add to Cart buttons with the appropriate HTML form tags for Simple products. [kmod type="merchant_simple_add_to_cart" name="add-to-cart"]
merchant_group_add_to_cart This KMod is an E-Commerce element. It makes it possible to create Add to Cart buttons with the appropriate HTML form tags for Group products. [kmod type="merchant_group_add_to_cart" name="add-to-cart"]
merchant_category This KMod is an E-Commerce element. It creates a list of products by category.  You can use KVars to help format the list. [kmod type="merchant_category" name="cat"]

Using KMods

To apply a KMod to a Template:

  1. Locate the element you want to add (e.g. Manage Stylesheets)
  2. Click the "Edit" (pencil) icon for the object
  3. Copy the appropriate code and paste it into the template.