NAME

Interchange6::Schema::Result::Navigation

TABLE: navigation

DESCRIPTION

Navigation is where all navigation, category and static page details are stored. In addition information such as page title can be linked to these records as attributes.

Attribute

Common attribute names for a Navigation records include these examples.

meta_title meta_description meta_keywords head_js head_css

SYNOPSIS

NOTE: with items such as head_css which may contain more than one record you must set the priority of the record. This ensures each record has a unique value and also allows for proper ordering.

$nav->add_attribute({name => 'head_css', priority => '1'}, '/css/main.css');
$nav->add_attribute({name => 'head_css', priority => '2'}, '/css/fancymenu.css');

ACCESSORS

data_type: 'integer'
is_auto_increment: 1
is_nullable: 0
sequence: 'navigation_navigation_id_seq'

uri

data_type: 'varchar'
default_value: (empty string)
is_nullable: 0
size: 255

type

data_type: 'varchar'
default_value: (empty string)
is_nullable: 0
size: 32

scope

data_type: 'varchar'
default_value: (empty string)
is_nullable: 0
size: 32

name

data_type: 'varchar'
default_value: (empty string)
is_nullable: 0
size: 255

description

data_type: 'text'
default_value: (empty string)
is_nullable: 0

alias

data_type: 'integer'
default_value: 0
is_nullable: 0

parent_id

data_type: 'integer'
is_nullable: 1

priority

data_type: 'integer'
default_value: 0
is_nullable: 0

product_count

data_type: 'integer'
default_value: 0
is_nullable: 0

created

data_type: 'datetime'
set_on_create: 1
is_nullable: 0

last_modified

data_type: 'datetime'
set_on_create: 1
set_on_update: 1
is_nullable: 0

active

data_type: 'boolean'
default_value: true
is_nullable: 0

METHODS

Attribute methods are provided by the Interchange6::Schema::Base::Attribute class.

PRIMARY KEY

UNIQUE CONSTRAINTS

RELATIONS

Type: has_many

Related object: Interchange6::Schema::Result::NavigationProduct

Type: has_many

Related object: Interchange6::Schema::Result::NavigationAttribute