Page 1 of 1

cgsimple::has_children([$alias]) not working - CMSMS 2.1.1

Posted: Sun Jan 10, 2016 7:55 pm
by naturelab
I am trying to use this

Code: Select all

cgsimple::has_children([$alias])

Code: Select all

Example:
{cgsimple::has_children('','has_children')}{if $has_children}The current page has children{else}The current page has no children{/if}
But it will NOT recognise that children exist.
Has anyone else had this ? Can anyone test for me ?

Thankyou

----------------------------------------------

Cms Version: 2.1.1

Installed Modules:

AdminSearch: 1.0
CMSContentManager: 1.1
DesignManager: 1.1.1
FileManager: 1.5.2
MenuManager: 1.50.2
MicroTiny: 2.0.2
ModuleManager: 2.0.1
Navigator: 1.0.2
News: 2.50.3
Search: 1.50.2
Gallery: 2.0.3
CGExtensions: 1.51
CGSimpleSmarty: 2.0.2
CGContentUtils: 2.1
JQueryTools: 1.3.8
CGBlog: 1.13.3
CGSnapshot: 1.0

Re: cgsimple::has_children([$alias]) not working - CMSMS 2.1

Posted: Sun Jan 10, 2016 10:49 pm
by naturelab
Ah OK, do we have to do this now :-

Code: Select all

{assign var='children' value=cgsimple::get_children('')} 
rather than this ?

Code: Select all

{cgsimple::get_children('',0,'children')}
Which doesn't seem to work anymore