Latest News: (loading..)
Search the Community
Showing results for tags 'information infobox'.
Found 1 result
-
Hi, I had installed this define content for 2.3 addons on 234.1 Edge (BS) version and it works when the page urls are generated based on page titles are entered. It means if the page is privacy.php / privacy.php / conditions.php then it will not be able to be updated or edit. As I also installed the Information Page Unlimited, this will not work together with it. So I thought to define the page to cm_footer_information_links.php here is the code I changed: function execute() { global $oscTemplate; if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) { $content_query = tep_db_query("select page_title, page_url from `define_content` where status='yes' order by id"); } else { $content_query = tep_db_query("select page_title, page_url from `define_content` where status='yes' and login_view='no' order by id"); } $content_data = ''; if ($number_of_rows = tep_db_num_rows($content_query)) { while ($content = tep_db_fetch_array($content_query)) { $content_data .=' <a href="' . tep_href_link('pages.php', 'page=' . $content['page_url']) . '">' . $content['page_title'] . '</a><br />' ; } } $data = ' <div class="col-sm-<?php echo $content_width; ?> cm-footer-information-links">' . ' <div class="footerbox information">' . $content_data . '</div>' . ' <ul class="nav nav-pills nav-stacked">' . tep_information_show_category(1) . //' <a href="' . tep_href_link('shipping.php') . '">' . MODULE_CONTENT_FOOTER_INFORMATION_SHIPPING . '</a><br />' . //' <a href="' . tep_href_link('privacy.php') . '">' . MODULE_CONTENT_FOOTER_INFORMATION_PRIVACY . '</a><br />' . //' <a href="' . tep_href_link('conditions.php') . '">' . MODULE_CONTENT_FOOTER_INFORMATION_CONDITIONS . '</a><br />' . ' <a href="' . tep_href_link('about_us.php') . '">' . MODULE_CONTENT_FOOTER_INFORMATION_ABOUT . '</a>' . ' </div>' . '</div>'; $content_width = (int)MODULE_CONTENT_FOOTER_INFORMATION_CONTENT_WIDTH; //ob_start(); //include('includes/modules/content/' . $this->group . '/templates/tpl_' . basename(__FILE__)); //$template = ob_get_clean(); $oscTemplate->addContent($template, $this->group); } At admin I can modify and update the pages, but the front end it did not dynamically be updated. Can any please give advise of how to make it works? Many thanks. Lyn
- 7 replies
-
- define content
- information infobox
-
(and 1 more)
Tagged with: