# Path: nive_cms/i18n.py

# 
# Path: nive_cms/baseobjects.py
# class PageBase(ContainerCopy, Sort, AlternatePath, PageColumns, PageContainer, PageElementContainer, ObjectContainerBase):
#     """
#     *Page with content element support*
#     
#     - stored in database
#     - rendered as website page
#     - handles sub pages
#     - handles page columns
#     - is an element container
#     - supports paste of elements and pages
#     - contained pages and elements are sortable 
#     
#     Interfaces: ``IPage, IPageContainer, IPageElementContainer, IContainer, IObject``
#     """
#     implements(IPage, IPageContainer, IPageElementContainer)


from nive_cms.i18n import _
from nive.definitions import StagPage, ObjectConf, FieldConf
from nive_cms.baseobjects import PageBase
    

# type definition ------------------------------------------------------------------
#@nive_module
configuration = ObjectConf(
    id = "page",
    name = _(u"Page"),
    dbparam = "pages",
    context = "nive_cms.page.page",
    template = "page.pt",
    selectTag = StagPage,
    container = True,
    workflowEnabled = True,
    icon = "nive_cms.cmsview:static/images/types/page.png",
    description = _(u"Pages are rendered as html files and make up the website.")
)

configuration.data = [
    FieldConf(id="header", datatype="string", size=255, default=u"", fulltext=1, 
              name=_(u"Page header"), description=_(u"Text shown at top of the page")),
    FieldConf(id="titleImage", datatype="file", size=0, default=u"", 
              name=_(u"Title image"), description=""),
    FieldConf(id="description",datatype="text", size=500, default=u"", fulltext=1, 
              name=_(u"Description"), description=_(u"Description used in meta tag for search engines etc.")),
    FieldConf(id="keywords",     datatype="text", size=500, default=u"", fulltext=1, 
              name=_(u"Keywords"), description=_(u"Keywords used in meta tag (not really used by search engines).")),
    
    FieldConf(id="navHidden", datatype="bool", size=1, default=0, 
              name=_(u"Hide in navigation"), description=_(u"Hide the page in navigation. It will only be accessible by direct links.")),
    FieldConf(id="navMenu",    datatype="bool", size=1, default=0, 

# Path: nive_cms/i18n.py

# 
# Path: nive_cms/baseobjects.py
# class PageBase(ContainerCopy, Sort, AlternatePath, PageColumns, PageContainer, PageElementContainer, ObjectContainerBase):
#     """
#     *Page with content element support*
#     
#     - stored in database
#     - rendered as website page
#     - handles sub pages
#     - handles page columns
#     - is an element container
#     - supports paste of elements and pages
#     - contained pages and elements are sortable 
#     
#     Interfaces: ``IPage, IPageContainer, IPageElementContainer, IContainer, IObject``
#     """
#     implements(IPage, IPageContainer, IPageElementContainer)


# Path: nive_cms/page.py
from nive_cms.i18n import _
from nive.definitions import StagPage, ObjectConf, FieldConf
from nive_cms.baseobjects import PageBase

    

# type definition ------------------------------------------------------------------
#@nive_module
configuration = ObjectConf(
    id = "page",
    name = _(u"Page"),
    dbparam = "pages",
    context = "nive_cms.page.page",
    template = "page.pt",
    selectTag = StagPage,
    container = True,
    workflowEnabled = True,
    icon = "nive_cms.cmsview:static/images/types/page.png",
    description = _(u"Pages are rendered as html files and make up the website.")
)

configuration.data = [
    FieldConf(id="header", datatype="string", size=255, default=u"", fulltext=1, 
              name=_(u"Page header"), description=_(u"Text shown at top of the page")),
    FieldConf(id="titleImage", datatype="file", size=0, default=u"", 
              name=_(u"Title image"), description=""),
    FieldConf(id="description",datatype="text", size=500, default=u"", fulltext=1, 
              name=_(u"Description"), description=_(u"Description used in meta tag for search engines etc.")),
    FieldConf(id="keywords",     datatype="text", size=500, default=u"", fulltext=1, 
              name=_(u"Keywords"), description=_(u"Keywords used in meta tag (not really used by search engines).")),
    
    FieldConf(id="navHidden", datatype="bool", size=1, default=0, 
              name=_(u"Hide in navigation"), description=_(u"Hide the page in navigation. It will only be accessible by direct links.")),
    FieldConf(id="navMenu",    datatype="bool", size=1, default=0, 

              name=_(u"Page is a menu"), description=_(u"Used in some navigation lists. If checked the page is handled as menu.")),