![](http://processwire-forums.s3.us-west-2.amazonaws.com/set_resources_6/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
tekno
Members-
Posts
19 -
Joined
-
Last visited
Everything posted by tekno
-
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?
- 11 replies
-
@Soma with this module the created new page links to list function. how can i link to directly edit page? appreciated
- 11 replies
-
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
- 21 replies
-
- admin
- admin theme
-
(and 1 more)
Tagged with:
-
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
-
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?
-
no i controlled it, when i remove 2. condition it works fine
-
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?
-
Getting all fields in a list or array from a page.
tekno replied to Harmster's topic in API & Templates
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? -
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; }
-
$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?
-
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
-
i tried it again and it works after i added second image. thank you!
-
i tried ->orientation , ->orientationField , ->orientationValues but it did not print. i try it again thanks for your reply
-
hi thats awesome module. good job. i want to know how i print the images orientation values?
-
ahh i made it with $RootPage= $page->rootParent i waste my few hours with it
-
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
-
None English Language as Default Language
tekno replied to lisandi's topic in Multi-Language Support
hey guys the default language posts "en" for language with "echo _x" command. how can i change this? i look up config file for this but i can not find anything. thanks -
i installed all of them (fieldtypealanguage,FieldtypePageTitleLanguage, and others about language) via admin panel. i will look multilanguage forum thanks for your reply
-
hi i installed multilanguage module and addons and i create another language for my site. but in page title selection multi language does not seen? there is no multi tab on title section this is my blank site with installed module http://prntscr.com/6z4a5v this is created multilanguage web site template http://prntscr.com/6z4a9c