Jump to content

tekno

Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by tekno

  1. thanks K07N its not giving error with this codes

    <?php if ($page->template=='products'): ?>
        <link rel="stylesheet" href="<?=$config->urls->templates;?>assets/css/calendar.css">
    <?php endif; ?>
    

    but its not work too

    i want to add some extra metas into included _header.php why didnt i succeed? or how its easier to include?

  2. hi i use if condition for $page->template=='templatename' but after 2. if condition codes get error

    codes are the same but when i add 2. condition gets an error "syntax error, unexpected end of file"

    <?php //gallery lightbox css
    if ($page->template=='photos'){?>
    	<link rel="stylesheet" href="<?=$config->urls->templates;?>assets/css/lightbox.css">
    <?php} ?>
    
    

    this works fine

    but

    <?php //gallery lightbox css
    if ($page->template=='photos'){?>
    	<link rel="stylesheet" href="<?=$config->urls->templates;?>assets/css/lightbox.css">
    <?php} ?>	
    . . . . .. . . . . .. . . . .. . .
    . . . . .. . . . . . . .. . . . ..
    <?php //products calendar css
    if ($page->template=='products'){?>
    	<link rel="stylesheet" href="<?=$config->urls->templates;?>assets/css/calendar.css">
    <?php} ?>
    

    whats wrong? 2.condition for same operator ($page->template) using different?

  3. hi guys i want to list on a side menu which only contains active pages childrens. page with same template.

    if i made $RootPage = $page->parent; and render it with $SideList->render(null,$page,$RootPage) works fine but in services main page lists all sub pages.

    if i made $RootPage = $page->children; and render works fine but child pages does not contains same level pages.

    i want it on service page menu displays service#1, service#2, service#3

    on service#1 page menu displays the same (service#1, service#2, service#3)

    or other page on product menu displays (product#1, product#2,product#3)

    on product #1 page menu (product#1, product#2,product#3)

    i cant do this with same template

×
×
  • Create New...