Jump to content

regesh

Members
  • Content Count

    55
  • Joined

  • Last visited

Everything posted by regesh

  1. Can anyone tell me how to find pages in propper way)) Now i solved taks like this //$place = 1036 //$type = 1122 //doctors_office = page field with multiselect by checkbox //direction_category = page field with select field for one value can be choosen foreach ($pages->find("template=doctor") as $doc) { foreach($doc->doctors_office as $item) { if($item->id == $place){ if($doc->direction_category->id == $type){ $list[] = $doc->title; } } }
  2. Thanks. As i wrote on github, i started project with v1 of this plugin. So there is no time to check. After i'll finish, i'll test. Thanks again.
  3. Can't use this module if select any parser (smarty or twig) Fatal Error: Uncaught Error: Class 'Twig_Loader_Filesystem' not found
  4. Could anyone tell my how to make thing like this: 1) When subpage for page with special template is created in admin than no fields to enter "title" and "name" is displayed - page creates automatic skipping this step and it has "name" and "title" like so - "post_1122" 2) And of course if this page is created from script - things go the same. I think hooks can help by i don't know how to use them in my case. Thanks a lot.
  5. I have to languages - english and russian. I need russian language to be set as default for admin panel. How to do it? Thanks!
  6. Thanks for recipe. It works well but i can't get values before selecting template ( So if i put this code in init.php nothing works. I think it's because at this step there is no variable mobileDetect if($config->mobileDetect->deviceType!='desktop'){ $config->urls->templates = $config->urls->site . 'm_templates/'; $config->paths->templates = $config->paths->site . 'm_templates/'; }
  7. Hi all. I need to change $config->paths->data['templates'] value from "templates" to "m_templates" for example. I think this wil be more easy to use specific folder for mobile view. How to change depending on some actions? (detecting if site viewing on mobile browser) Thanks
  8. field.count=0,field=1 ( not works) so i need to find page that containes field value = 1 and all pages that not containing any value. solved: field=0|1
  9. That's not work for me. If just copy all files to domain 2 folder and change path to "site" folder - how to do it.
  10. Hi all. Could anybody help with this: I have two domains: site1.domain.com and site2.domain.com They are hosted at one server and put in folders site1: /home/site1/public site2: /home/site2/public (for example) All processwire files are in site1 folder and this site goes well. I put file index.php in site2 folder with the same content as it is in site1 folder but only changed $rootPath to path for site1 folder But still i can use only api but site doesn't loads the same way as site1 I need to you use one installation of prw to load site at two domains (copy) What i need to do to start it works!?
  11. I need to update prw site but it uses version 2.4 How to update it to 2.5 or 2.6 or maybe to latest. I need it because many usefull modules don't support 2.5 thanks
  12. And how to add them via api in module.config file?
  13. Is it possible to create tabs for settings in module?
  14. Please help with this. all my SEO jobs failed.......
  15. but is there any option to automate it. such as "add .html to url" ?)))
  16. How to add .html to all links. For example i have page "news" and i want it to be available at "news.html" and if i go next level i got "news/my-fist-post.html" thanks a lot.
  17. I can't find out this "bug" $query = 'template=shop_item,item_category=1101'; $items = $pages->findMany($query); echo count($items); if user is logged in. The result is 1, But if not the result is 0.
  18. I just copied contents of file admin.php in templates directory Even if i write: require($config->paths->modules . 'AdminTheme/AdminThemeDefault/controller.php'); Result is the same.
  19. So no one knows how to fix...???
  20. I created custom admin page with link in top menu and set template for it. But opening it has another admin theme, not like is used in core admin pages. So here is two screen shots. Does anybody know how to solve it. And one more thing)) I included just small peace of code in this custom template for my admin page: <?php namespace ProcessWire; require($config->paths->adminTemplates . 'controller.php'); Thanks for advice!
  21. Thanks a lot but can you give an example code! please!!!
  22. Thanks. And how to use it? Create same classes in my module and use them?
  23. Hi all. I'm creating module and it needs to create some actions in admin panel to work correct. So it would be great if somebody tell my how to do some things below using api (___install() method): create fields put fields to template Thanks
×
×
  • Create New...