Jump to content

Ivan Gretsky

Members
  • Posts

    1,510
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by Ivan Gretsky

  1. Hi, Oleg! Try this: $page->category->categorytype->title; I assume that you got a pagefield named "category" on you product page pointing at the category. Edit: And you should name a topic something more explicit tham just "fields".
  2. You have to have Language Support module installed. Look here: http://processwire.com/api/multi-language-support/
  3. Hey joey102030! I think kongondo's advice is necessity but not sufficiency to achieve what you need. You should add some js/jquery pligin on top of that wonderful module to make it work as accordion. You download the js plugin and plug it in the template file like any js with <script>. Than customize the plugin and/or Markup Simple Navigation output options and you're done.
  4. I think you can find a ready to use solution for this task cheaper than writing your own (as it seems like a really common task). And a new one could be simplier to develop from ground up or some general framework with classical 1 table per object approach.
  5. Tell a bit more about your aplication so we can give some more help. If your application sends email than Form Builder is the way to go for sure. And you should get Form Builder anyway. I am getting my copy of a developer version this week. It is great! Edit: Got it!
  6. Nice start man) Everyone starting on The Forum with a module should get a free candy . I know nothing about what it is, but if it'll do what you say it's a great thing.
  7. As it is your first appearence in the forums, bluerobsn (greetings, by the way ), I suggest you may be new to the way PW works in general and its terminology. So maybe you are asking about very different thing. If it is not the case, sorry. Just ignore everything below. In Processwire all data from all pages is accessible via api from each template file. So you can get content from any page from any other page and use it there. Just get your head around all this, go through a tutorial or two and it'll make sense.
  8. If you need to query this from the template file via php, I think you could use cURL library. You get you json output and decode it with json_decode. Then you build the desired output with regular php. Probably there is a way to make a temporary PageArray from the received data for the ability to use standard API calls, but I never done it (as never done other things suggested above, so please be critical and share you experience).
  9. 3) I am testing on Firefox with ctrl+shift+m adaptive design check. It never stops loadind. It does load in chrome with mobile view. Have not tested on real mobile devices, so might be something with the browser. 4) On mobile the white background is do narrow it is hard to read the text. Maybe it is not so important.
  10. Nice one. Will check out scrollr - somehow it escaped my attention. 1) It seem like too much scrolling - my finger gets tired) Maybe it should change a bit faster. Especially the bearded businessman part. More dynamic. 2) The arrow in a circle on first screen looks like it has to be clickable, but it's not. 3) Do not know why, bit sometimes the site load as it should, but sometimes that icon jyst keeps on spinning. 4) It seems like you should check it on lowert screens. Not everything is perfect.
  11. For now I can think of making a folder titled as site name or something, name modules with site prefix and put them in there. Maybe it is usefull to make some common modules like executeOnProcessSave.module and put all the logic for manipulating data on saving pages.
  12. Thank you for sharing! I did not read to the end and dug into the source code to spot those js plugins. Came back to reading - and here they are - listed and explained. Always nice to find out some working solutions (although most of them are paid). Always interested in your posts as they uncover some usefull frontend techniques. Please share your experiense when you're done with integrating gulp workflow. The only flaw of the site is that it loads forever from 2mbit/s in Russian backwoods where I am at, but I am not target audience anyway .
  13. As multilangual support is not on by default, you have to turn it on by yourself: http://processwire.com/api/multi-language-support/multi-language-urls/. Probably the 1st time you installed PW with multilangual profile, where corresponding module is preinstalled.
  14. Looks awesome, blad! Video is worth a thousand words. I hope you'll have time to make a detailed video of backend.
  15. I was looking for a way to organize service modules for a site and found this topic. As my question is a bit broader, I decided to start this new one in General Support. How do you organize module files in your module folder? Sometimes I get quite a few similar one-purpose modules which I will never re-use. It feels wrong having separate folder for each one (and even having them listed on the module page) as they just change title on save or something like that. Do you group similar functions in one module? Do you batch install them somehow with a master module?
  16. I am no expert in htaccess commands so won't help you out with this. But I can't see why those redirect modules do not fit. They return 301 http status codes as far as I remember - you can check yourself with something like this. I still vote for going "the module way" here.
  17. Not really. It is much faster on production, I get 340 ms for the same page on a shared linux hosting. As for me, I always get better results going live. Probably because the server is optimised for that exact task. Most of the time is spent building a page (which is faster on server), not transpoting it here and there. I just checked it in the dev tools - you can get those details)
  18. I don't think those 2 seconds are that much. I am getting something similar on xampp on windows. But I am not sure what numbers should be there.
  19. I think it is much easier to manage this kind of redirects with modules rather than manually in htaccess. Check those out: http://modules.processwire.com/modules/process-jumplinks/ http://modules.processwire.com/modules/process-redirects/ Sorry for not answering your question directly, but I am really sure it is a better way (as you do not have to care about manually upgrading htaccess while upgrading Processwire).
  20. This issue still exists on (at least my) linux servers. If a file to upload does not contain any latin characters, you get the "Unable to move uploaded file to: ..." error. If a file name has at least any latin character, the upload works. On windows everything works fine. Can we do something about it?
  21. I did try deleting it anyway and it started to work again! So if nothing helps try this brutal solution))
  22. I have got only LazyCron.cache but not LazyCronLock.cache. In there I see some timesatmps, latest of which is of yesterday, though I certainly tried to make it work today. Is there a way to restart that lazy cron job? Should I just delete that LazyCron.cache file? Could it be that this module can only properly function on a live server but not on localhost?
  23. I am not sure, but it seems like I am having a similar problem. I think I did get a autoload module to hook Lazy Cron, but then it stopped working. I did mess around the system time a bit while testing - changed dates. Maybe this caused it to stop functioning? Could you please suggest how I can properly test it out? I am still not quite sure if Lazy Cron is not working or I screwed up my module.
  24. I think Hanna Code module is what solves your need. But in the example you provided you should rather adit the template file for the page and put there something like this. I think you should start with some basic tutorial and you'll figure out everything pretty soon.
  25. Sorry if this is answered elsewhere, but I found only this old topic, so bringind it up) Is there a way to populate value of a field based on the value of the other field or fields instantly without page save? I see two ways: ajax and js. Well, I am pretty sure there is, as I've seen Adrians's modules working. What I am looking for is some instructions, examples or (hopefully) a module with only options to chose) My need is to calculate the end of a subscription based on a start date and the duration of a chosen option.
×
×
  • Create New...