Jump to content

horst

PW-Moderators
  • Posts

    4,088
  • Joined

  • Last visited

  • Days Won

    88

Everything posted by horst

  1. Hi @grumpy, It looks to me that you have done nearly everything right. The only thing you left out is to populate $images in your code. I think you simply forgot $images = $page->images; , assumed that your current $page has an images field that is called "images". But you also can ommit this extra line and change your code in line 10 to be: foreach($page->images as $image) {
  2. And what's about the risc, that when once finished translating a huge text to 12 languages, hitting that button by accident?
  3. Sorry to hear this, - but despite this unfortunate fact: welcome to the forums. All settings can be seen in the wire/config.php, but please copy those you need into site/config.php and edit them there. (settings in wire/config.php are the defaults, individual custom settings goes into site/config.php, so they are save on upgrades and / or can be detected & collected by site exports, etc.) And, yes, now you know it, more often saving (also if needed without publishing a page) is better. And besides that, I use a Plugin with my browser (FireFox) that stores all textarea inputs for a configurable time: https://addons.mozilla.org/en-US/firefox/addon/textarea-cache/ This I do because I run into the same situation some time ago, ;-)
  4. Hey, this works here too. But it isn't the best solution because hardcoded page-ids isn't practical. I need to export / import that at some point to another site and need to use generic properties like name. I will file an issue with this, at least I'm interested why it works with id but not with subfield.name. But also nice to have it working for a first tests here.
  5. Thanks for looking at it. Is there a chance that I have setup something wrong? The place in pagetree where the data is saved?
  6. Have you used the showOnlyIf conditional? Here is a exported siteprofile of it. It is a clean and fresh install from 2.6.0 stable from today started with a blank profile: site-wrongShowonlyif.zip
  7. Hi, I have setup a new blank site with PW 2.6.0 stable version. I have created a template that has two fields, the Title and a PageTable. The PageTable 's template contains besides the title a single Pagefield with radios plus three other fields (text or integer) that should only be shown if the right option from the Pagefield is selected. This works fine and as expected! But the values entered into the fields do not get stored in the DB! If I strip the showOnlyIf condition, the values get stored as expected! With the SHowOnlyIf condition, the data isn't stored when opening the page from the PageTable-field in a modal window, nor when selecting the page from the pagetree and open it directly for editing. ?? Is this expected behave or do I miss something?
  8. Hi @soma, thanks for the continuous maintenance of this (and other) tool(s). This is one of my favourite modules.
  9. Hhm, it is still the same as before Have tried with IE, what I don't use normally and have the same behave. Also the site was newly setup today as a new (formerly not used) virtual host on my local machine. With FF I have cleared all browser cache and everything else, - completly and multiple times now. Wirefolder was switched, not merged. The old templates-admin folder was deleted after the first successful request with the new wire folder. That old colors came from a custom css file what was loaded with AdminCustomFiles module. But I have disabled that option and now it isn't loaded and the color isn't overwritten, but the behave is still the same. Hhm, so, what else can I check? EDIT: when hovering over the [ uninstall ] header I get lots of JS console errors: passing empty string to getElementById(), but now I can open it by click and can access the uninstall checkbox! But the behave of the pagination is still weird. EDIT 2: FINALLY SOLVED after dropping / refreshing all from browser cache and double checking the sites and wire folders etc. the only logical thing was that it must be something in the DB. And after dropping once all rows from the caches table it works fine now.
  10. Hi, I have updated a site from 2.3.5 to 2.5.29 by changing .htaccess and index.php and switching the wire folder. Now I have some quirks in the admin. The pagination doesn't work. Everytime I press a page number it shows me not only the next 25 pages, it shows me 25 x the next 25 pages! Also it with every additional click it multiplys them! To show this in a screencast, I have set the item number to only 5 instead of 25. . . . Another thing is that I cannot uninstall modules because when hovering or clicking the [ uninstall ] header, nothing happens. . . Is anything like that already known?
  11. hmm, did you overwrite $q in your foreach($qs as $q) { ?
  12. Hi, regarding to a BlogPost from @Ryan yesterday, I want share a simple solution for all windows user, but the comments cannot show <?php start tags. So I post my comment here and link to each other. ------------------------------------------------------------------------------------------------------------------------------------- You can mimic this, for example on windows, very easy like this: 1) create a php file, here named "pwphp.php", with this content: <?php echo "PHP (" . phpversion() . ") - Interactive mode enabled\n"; $fp = fopen('php://stdin', 'r'); define('quit', 'quit'); $in = ''; while('quit' != substr($in, 0, 4)) { echo 'php > '; $in = trim(fgets($fp)); eval($in); echo "\n"; } exit(0); . 2) create a windows batch file like this, (here named as pwphp.bat): @ECHO OFF SET phpexe=C:\php-54\php.exe SET phpparams=-d output_buffering=0 TITLE PHP Interactive Mode :: %CD% "%phpexe%" %phpparams% %~dp0pwphp.php TITLE %CD% Drop both files into the same directory. But this directory must be in your systempath! Now open a windows shell and type: pwphp and have fun! To finish and leave Interactive Mode, you type "quit".
      • 10
      • Like
  13. Read the first line of the error: ... $page->setTemplate(NULL) You do something wrong with your template(s) / template file(s). And I don't get what you are telling about the hirarchical setup of your categories. I does not sound very common or I simply do not get it. Do you have already read this: https://processwire.com/talk/topic/3579-tutorial-approaches-to-categorising-site-content/ ?
  14. can you delete all rows from the table caches via phpmyadmin? or, if not, can you delete the table caches and create a new one: CREATE TABLE `caches` ( `name` VARCHAR(255) NOT NULL, `data` MEDIUMTEXT NOT NULL, `expires` DATETIME NOT NULL, PRIMARY KEY (`name`), INDEX `expires` (`expires`) ) COLLATE='utf8_general_ci' ENGINE=MyISAM; This should solve it. After hitting refresh, it rows should be populated again.
  15. have a look here: http://cheatsheet.processwire.com/pagearray-wirearray/sorting-and-filtering/a-sort-property/ mainly all multiple results in PW are based on wirearray and thus you can use this to sort them, or you define a sort={property} in your query selector ->find("something=something, sort=title") or sort=-date etc.
  16. it use wiremail() in the dev branch at least: https://github.com/ryancramerdesign/ProcessWire/blob/dev/wire/modules/Process/ProcessForgotPassword.module#L197 and in last stable too: https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/modules/Process/ProcessForgotPassword.module#L197
  17. I use it since it exists and it works as expected. Why should it function with one wiremail call and not with another? There must be something different with those calls. I use wiremailsmtp v 0.1.9 and processforgottpassword v 1.0.1 and all is fine. Do you have setup the same emailadress as sender in processforgottpasswords modules config screen like the default sender in wiremailsmtp? DO you have setup a default sender in wiremailsmtp? Do you have setup a valid emailadress with your useraccount? (without typos?) (just thinking loud)
  18. Welcome @J0sh, I also know someone who has built a lot of sites (some great ones too) with ProcessWire in the last 2 years. He also hasn't had a forum account here. (Now he has one because he currently has buyed a ProCache agency licence, but his post counter is still saying 0) And I believe that there are many other out there.
  19. Hey, uhm, not a nice situation. Here is a case study where a agency was able to go another way: https://processwire.com/talk/topic/7494-case-study-the-triumph-of-national-geographic-traveller-india-in-processwire/ They should build a big website with one of the other systems, they switched to PW but ommitted a conversation with the client in the first place, ...
  20. Hi Hari, ah, ok. That's great. So I can pass it the path to a custom profile in a zip archive to install this instead of one from the PW distribution. Thanks for making it.
  21. There is an option --profile={value}, but it isn't working for me with the default profiles of the download package. When I try it, I get those error messages: D:\TEMP\pw2>ws new pw2 --profile=site-languages Downloading ProcessWire... Preparing project... Extracting profile... [RuntimeException] The profile can't be installed because the downloaded package is corrupted or because the installer doesn't have enough permissions to uncompress and rename the package contents. File "site-languages" does not exist I have also tried with --profile=languages instead of site-languages. The downloaded package isn't corrupted, without setting the profile option it works perfect, but installes only the default profile automatically.
  22. which PW Version?
  23. link = https :// www.google.com/ search?q=site:processwire.com/talk+-%22Viewing+Profile%22+module+translation gives me back way too many results, but it gives me Not sure, - do you already know these: https://processwire.com/talk/topic/7298-google-custom-search-for-your-browserbookmarks/ https://processwire.com/talk/topic/6196-easy-search-on-pw-forums-with-google/
  24. Hi @fliwatuet, welcome to PW. You can achieve this easy, without the need of buying a ProModule. You can achieve everything without ProModules in PW, but if you once have worked with a ProModule, you never want miss it, You need to build a strategy for your site in regard of how to store / categories the uploaded files. And besides what the others already have pointed out, there is a new possibility with serving the files (if you create pages for each uploaded file): PW 2.5.26 has content type support on templates basis If you start building your strategy, you can ask here for tips.
×
×
  • Create New...