Contributions

Features (Category Index)
Search: 

Dynamic Information Pages

D (ynamic) I (nformation) P (ages) 1.0

This contribution is a modified categories module :-) It works and acts the same. Its 100% OSC code certified ;-)

This will allow you to create your information pages dynamically using the database instead of the normal hardcoded pages.
This makes adjusting your pages ease and fast to do. You can also disable and enable the pages. Multilanguage supported.

In a nutshell:


Dynamic Information pages unlimited system can:

1.Multilanguage automatically
2.Create Unlimited information entries (for each language used)
3.Edit information entries
4.Delete information entries
5.copy information entries
6.Activation / DeActivation the information entries
6.Change Queue

Have fun :)

Expand All / Collapse All

Fix this errror ! 17 Oct 2010

Replace this section:
case 'delete_page_confirm':
if ( ($HTTP_POST_VARS['pages_id']) ) {
$page_id = tep_db_prepare_input($HTTP_POST_VARS['pages_id']);

for ($i = 0, $n = sizeof($page_id); $i < $n; $i++) {
tep_db_query("delete from " . TABLE_PAGES . " where pages_id = '" . tep_db_input($page_id) . "' ");
tep_db_query("delete from " . TABLE_PAGES_DESCRIPTION . " where pages_id = '" . tep_db_input($page_id) . "' ");
}

$page_id_query = tep_db_query("select count(*) as total from " . TABLE_PAGES . " where pages_id = '" . tep_db_input($page_id) . "'");
$page_id = tep_db_fetch_array($page_id_query);

if ($page_id['total'] == '0') {
tep_remove_page($page_id);
}
}

if (USE_CACHE == 'true') {
tep_reset_cache_block('pages');
}

tep_redirect(tep_href_link(FILENAME_INFORMATION));
break;



With :

case 'delete_page_confirm':

$page_id = tep_db_prepare_input($HTTP_POST_VARS['pages_id']);
tep_db_query("delete from " . TABLE_PAGES . " where pages_id = '" . (int)$page_id . "'");
tep_db_query("delete from " . TABLE_PAGES_DESCRIPTION . " where pages_id = '" . (int)$page_id . "'");

$messageStack->add_session(SUCCESS_PAGE_REMOVED, 'success');

tep_redirect(tep_href_link(FILENAME_INFORMATION));

break;

META TAGS for each Dynamic Information Pages 1.1 24 Oct 2008
META TAGS for each Dynamic Information Pages 1.0 24 Oct 2008
Update 1.1 Nejat Philip Eryigit 2 Sep 2004
Dynamic Information Pages Xander Witteveen 24 Nov 2003
Dynamic Information Pages Xander Witteveen 24 Nov 2003

Note: Contributions are used at own risk.