<?php

##################################################
#
# Copyright (c) 2004-2022 OIC Group, Inc.
#
# This file is part of Exponent
#
# Exponent is free software; you can redistribute
# it and/or modify it under the terms of the GNU
# General Public License as published by the Free
# Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################

// these are examples which replace the system router map /framework/core/router_maps.php

$maps = array();

// Find news by the date of the news post. URL would look like news/2013/10/18 to find all the posts on Oct 18, 2013
//$maps[] = array(
//    'controller' => 'news',
//    'action' => 'showall_by_date',
//    'url_parts' => array(
//        'controller' => 'news',
//        'year' => '(19|20)\d\d',
//        'month' => '[01]?\d',
//        'day' => '[0-3]?\d'
//    ),
//);
// Find news by the date of the news post, year/month. URL would look like news/2013/10 to find all the posts in Oct, 2013
//$maps[] = array(
//    'controller' => 'news',
//    'action' => 'showall_by_date',
//    'url_parts' => array(
//        'controller' => 'news',
//        'year' => '(19|20)\d\d',
//        'month' => '[01]?\d',
//    ),
//);
// Find news by the date of the news post, year. URL would look like news/2013 to find all the posts in  2013
//$maps[] = array(
//    'controller' => 'news',
//    'action' => 'showall_by_date',
//    'url_parts' => array(
//        'controller' => 'news',
//        'year' => '(19|20)\d\d'
//    ),
//);
// Find news by the title. URL would look like news/my-news-title
//$maps[] = array(
//    'controller' => 'news',
//    'action' => 'show',
//    'url_parts' => array(
//        'controller' => 'news',
//        'title' => '(.*)'
//    ),
//);

// Find blog post by the title. URL would look like blog/my-post-title
//$maps[] = array(
//    'controller' => 'blog',
//    'action' => 'show',
//    'url_parts' => array(
//        'controller' => 'blog',
//        'title' => '(.*)'
//    ),
//);
// Find blog posts by the tag. URL would look like view-blogs-by-tag/my-tag
//$maps[] = array(
//    'controller' => 'blog',
//    'action' => 'showall_by_tags',
//    'url_parts' => array(
//        'controller' => 'view-blogs-by-tag',
//        'title' => '(.*)'
//    ),
//);
// Find blog posts by date. URL would look like blog/2013/05
//$maps[] = array(
//    'controller' => 'blog',
//    'action' => 'showall_by_date',
//    'url_parts' => array(
//        'controller' => 'blog',
//        'year' => '(19|20)\d\d',
//        'month' => '[01]?\d',
//    ),
//);
// Find blog posts by author. URL would look like view-blogs-by-author/author-username
//$maps[] = array(
//    'controller' => 'blog',
//    'action' => 'showall_by_author',
//    'url_parts' => array(
//        'controller' => 'view-blogs-by-author',
//        'author' => '(.*)'
//    ),
//);

// Find filedownloads by the title. URL would look like file/my-file-title
//$maps[] = array(
//    'controller' => 'filedownload',
//    'action' => 'show',
//    'url_parts' => array(
//        'controller' => 'file',
//        'title' => '(.*)'
//    ),
//);

// Search by url. URL would look like find/my-search-string
//$maps[] = array(
//    'controller' => 'search',
//    'action' => 'search',
//    'url_parts' => array(
//        'controller' => 'find',
//        'search_string' => '(.*)'
//    ),
//);

// Use Portfolio as a Directory. URL would look like directory/my-entry
//$maps[] = array(
//    'controller' => 'portfolio',
//    'action'     => 'show',
//    'url_parts'  => array(
//        'controller' => 'directory',
//        'title'      => '(.*)'
//    ),
//);

// Use Forms as a Directory. Form itself MUST have sef_url of 'directory' or edit below as needed. URL would look like directory/my-entry
//$maps[] = array(
//    'controller' => 'forms',
//    'action'     => 'show',
//    'title'      => 'directory',
//    'url_parts'  => array(
//        'controller' => 'directory',
//        'item'       => '(.*)'
//    ),
//);

// Find products by the category title. URL would look like browse-store/my-product-category-title
//$maps[] = array(
//    'controller' => 'store',
//    'action' => 'showall',
//    'url_parts' => array(
//        'controller' => 'browse-store',
//        'title' => '(.*)'
//    ),
//);
// Find product by the title. URL would look like store/my-product-title
//$maps[] = array(
//    'controller' => 'store',
//    'action' => 'show',
//    'url_parts' => array(
//        'controller' => 'store',
//        'title' => '(.*)'
//    ),
//);

// Find help by the version and title. URL would look like docs/2.0.1/my-help-title
//$maps[] = array(
//    'controller' => 'help',
//    'action' => 'show',
//    'version' => 'current',
//    'url_parts' => array(
//        'controller' => 'docs',
//        'version' => '(.*)',
//        'title' => '(.*)'
//    ),
//);
// Find current help doc by the title. URL would look like docs/my-help-title
//$maps[] = array(
//    'controller' => 'help',
//    'action' => 'show',
//    'version' => 'current',
//    'url_parts' => array(
//        'controller' => 'docs',
//        'title' => '(.*)'
//    ),
//);

?>
