No subPages on Page

boboo

Avatar: boboo

2013-01-10 12:16

Instead of new page template you can very easy add an item to options field for choosing subPages view.
For now you have 2 possibilities: list(name,description) and list(name,description,photo).
But sometimes you need a page that has subpages, but their list should be shown only in menu.
Solution:
in /database/translations/xx.php add:

$lang['Subpage_show_0'] = "No subpages";


in /core/common-admin.php in the function throwSubpagesShowSelect() add:

$aSubpages[0]=$GLOBALS['lang']['Subpage_show_0'];


in /core/pages.php in function listSubpages() under the line:

public function listSubpages($mData,$iType){


add:

if($iType==0)
 return 
null;



And fertig.

» Quick.Cart v6.x

www.kimla.de

treewood (OpenSolution)

Avatar: treewood

2013-01-10 15:15

nice tip

boboo

Avatar: boboo

2013-01-10 15:31

So take it in the next Version.
Maybe re-release the v.6

www.kimla.de

Back to top
about us | contact