Not for official support
We do not provide technical support in this forum.
If you want to contact our customer support, please use our support form.
You are not logged in.
Using an FTP client, where can I find info pages?
For instance, I created a new info page called: "latestdeals". So where is "auxpage_latestdeals.html" store on the server?
It's NOT here: published/publicdata/***/attachments/SC/themes/%theme_name%/.
Thanks
Mark
Offline
In database table SC_aux_pages.
Offline
Thanks Rat, I do appreciate you taking the time to read my posts.
If I could pick your brain just one more time...
If I make an info-page called "terms". Is there a way I could include that page content dynamically into another page? Specifically I want the content to display in a lightbox, without any of the other website structure. Perhaps I could query the database tables?
Thanks again
Mark
Offline
This can be achieved through creation of a Smarty plugin as follows:
1. Create file kernel/includes/smarty/plugins/function.auxpage.php:
<?php
function smarty_function_auxpage ($params, &$smarty){
if (trim($params['slug'])){
$aux_page_text = db_phquery_fetch (DBRFETCH_FIRST, 'SELECT '.LanguagesManager::sql_prepareField('aux_page_text').' FROM `?#AUX_PAGES_TABLE` WHERE `aux_page_slug`=?', $params['slug']);
$smarty->assign ('aux_page', $aux_page_text);
$smarty->display (DIR_FTPLS.'/aux_page.html');
}
}
?>2. Add the following code to the desired storefront template:
{auxpage slug='terms'}Offline
Woooo... works like a charm!
Thanks Rat... again.
Offline