Base Tag Library
Note: We have updated our folder structure in Neto 6 and this has not been updated on all tweaks yet. More info.

content_path

Lists all contents relating to products and contents

Example

[%content_path content_id:'[@content_id@]' %]
    [%param *header%]
        content content_path header
    [%/param%]
    [%param *body%]
        [@content_name@] : [@content_id@]
    [%/param%]
    [%param *footer%]
        content content_path footer
    [%/param%]
[%/content_path%]

Usage

The content_path tag lists all content relating to the product or content either specified or currently selected.

Displaying the brand or category a product belongs to

You can display the category a product belongs to in a specific content type by configuring the code below.

[%content_path id:'[@inventory_id@]' type:'category' limit:'1' %]
    [%param *body%]
        <a href="[%url type:'cms'%][%param id%][@content_id@][%/param%][%/url%]">[@content_name@]</a>
    [%/param%]
[%/content_path%]

content_path Parameters

Name Options Description
id:'' String The ID to target and load the content path from in the case of inventory
content_id:'' String The ID to target and load the content path from in the case of content pages
type:'' String A comma-separated list of content_type_code. You can get the content_type_code on page Admin > content types Manager
header HTML & b@se tags Renders a single usable space above the body
body HTML & b@se tags Runs an array for each option in the tag
footer HTML & b@se tags Renders a single usable space below the body
ifempty:'' HTML & b@se tags If the content_path tag produces no results, this block is printed in place of the header, body & footer
debug:'' 1/0 Prints a debug log
sortby:'' name, SKU, brand, lowest_price, highest_price, largest_item, smallest_item, shortest_item, longest_item, sortorder, sortorder2, popular, top_sellers, new_arrivals, lowest_qty, highest_qty, random, trending, shippingweight, promo_end, sortbycol, wishlist, sortorder_price, sortorder2_price, sortorder_sortorder2, subtype_sortorder2 The sort option for the content page results. Adding -desc will reverse order in most cases.

content_path Data Tags

Name Description
[@parent_content_id@] The parent content ID of the selected ID
[@content_id@] The current ID of the result
[@content_name@] The current name of the result
[@content_ref@] The unique ref ID for the result
[@content_fullpath@] The full URL path of the result
[@content_level@] The level where the selected page sits
[@content_external_ref1@], [@content_external_ref2@], [@content_external_ref3@] The external reference ID of the result
[@content_short_description1@], [@content_short_description2@], [@content_short_description3@] The content short description fields for the result
[@content_description1@], [@content_description2@], [@content_description3@] The content description fields for the result
[@content_label1@], [@content_label2@], [@content_label3@] The content label fields for the result
[@content_type_name@] The name of the content type the result is assigned to
[@content_type_code@] The ID of the content type the result is assigned to