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.

#1 2011-12-02 00:53

marknotton
Member

Where are my info pages stored?

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

 

#2 2011-12-02 03:36

rat
Administrator

Re: Where are my info pages stored?

In database table SC_aux_pages.


Be careful what you wish for — you might get it.

Offline

 

#3 2011-12-03 00:05

marknotton
Member

Re: Where are my info pages stored?

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

 

#4 2011-12-05 00:08

rat
Administrator

Re: Where are my info pages stored?

This can be achieved through creation of a Smarty plugin as follows:
1. Create file kernel/includes/smarty/plugins/function.auxpage.php:

Code:

<?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:

Code:

{auxpage slug='terms'}

Be careful what you wish for — you might get it.

Offline

 

#5 2011-12-06 17:50

marknotton
Member

Re: Where are my info pages stored?

Woooo... works like a charm!

Thanks Rat... again.

Offline

 

Board footer

Powered by PunBB