Jump to content

tekno

Members
  • Posts

    19
  • Joined

  • Last visited

tekno's Achievements

Jr. Member

Jr. Member (3/6)

1

Reputation

  1. aaa. theres another thing. how to add custom fields to the page (admin template). how everyone uses this custom pages? list on parent page on main nav bar and add chield pages with different template?
  2. @Soma with this module the created new page links to list function. how can i link to directly edit page? appreciated
  3. i create ready.php file and wrote this codes but nothing changed? is it difference between versions? what is it ready.php under /site/ directory? still error saying "Unknown page
  4. ahh sorry codes working but im searching printed codes on wrong place thanks guys btw if (condition): //do elseif (condition): //do another endif; usage is really easier thanks
  5. 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?
  6. no i controlled it, when i remove 2. condition it works fine
  7. 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?
  8. hi i tried this but i cant success. there is a template as products.php and a field as product_type i want to list all product_type values for search form. how can i print this uniq values?
  9. ahh yea i use this codes and page refresh does not increase view. it looks only session $key = "pageview" . $page->id; if(!$session->$key) { $page->Counter += 1; $page->of(false); $page->save('Counter'); $page->of(true); $session->$key = 1; }
  10. $page->setOutputFormatting(false); $page->views = $page->views+1; $pages->saveField($page, 'views'); $page->setOutputFormatting(true); this codes work well but every page refresh counter increase. how can i use it for each session?
  11. thank you it works great how can i translate image standart fields (orientation, description, caption)? i look ImageExtra.module but i can not dare to change anything
  12. i tried it again and it works after i added second image. thank you!
  13. i tried ->orientation , ->orientationField , ->orientationValues but it did not print. i try it again thanks for your reply
  14. hi thats awesome module. good job. i want to know how i print the images orientation values?
  15. ahh i made it with $RootPage= $page->rootParent i waste my few hours with it
×
×
  • Create New...