Jump to content

Zeka

Members
  • Posts

    1,065
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zeka

  1. Ohh, sorry, my bad. I don't think that there is something built-in that will fully accomplish your request. You can try to adapt fieldtype from this post or develope custom module based on ProcessPageList module to control additional sorting of your product pages per category. Maybe someone else can provide better advice.
  2. Hi @strandoo. You can use sort=sort in your find selector to list the results with the same ordering as in page tree. So your client would be able to roder products in page tree.
  3. Hi @Richard Jedlička You can try public function executeSome() { $this->headline('Your page'); $this->breadcrumbs->pop(); $this->breadcrumb('../', $this->_('Some page')); $this->breadcrumb($this->getProcessPage()->url(), $this->_('Some other page')); }
  4. Hi @johnnydoe Probably you should try to change session name for one of your installation in your site/config.php file. https://github.com/processwire/processwire/blob/master/wire/config.php#L217
  5. Hi @Smirftsch Take a look at this thread. There you will find code examples how you can add images from your custom path to the field of your page. Also take a look to WireFileTools and its find method that you can use to find all your images in your custom folder. https://github.com/processwire/processwire/blob/master/wire/core/WireFileTools.php#L546
  6. @ryan Sorry for being not clear enough. I was talking about the ability to specify custom Page classes and especially the ease of use when you only have to change some lines in the config and all classes and files have their place and get autoloaded. I was thinking that it would be great to expand such behaviour to classes that extend the PagesType class. Take a look at this tutorial https://processwire.com/docs/tutorials/using-custom-page-types-in-processwire/ While it still actual, there is an easier way to deal with custom Page classes. That what I meant. Thanks
  7. @Sascha Nos You can output third level by declaring it in your module config https://github.com/ryancramerdesign/ProcessHello/blob/master/ProcessHello.info.php#L42 https://github.com/ryancramerdesign/ProcessHello/blob/master/ProcessHello.info.php#L50 And if I not mistaken if you want to output some dynamic items you can implement executeNavJSON method like https://github.com/processwire/processwire/blob/d8945198f4a6a60dab23bd0462e8a6285369dcb9/wire/modules/Process/ProcessTemplate/ProcessTemplate.module#L143
  8. @ryan Now we have custom page classes that I'm really like and I use it on all of my current projects, but maybe the same approach can be applied to custom page types? And one more request is the ability to deactivate the default language for page, I know that it could be implemented by custom field and some logic in hooks, but maybe such functionality could be added to InputfieldPageName. Thanks.
  9. @MoritzLost, @markus_blue_tomato Thanks, will look through your examples. @bernhard I have a request from a client to provide a batch of fields that in most cases will act as controls of hooks that should or should not be run on page save, but this fields should also save the state, so there should be some storage and I was thinking that using page meta is the good route for such task. (Though now we have Combo field that also perfectly fit). I'm also as @Ivan Gretsky interesting to see your implementation, of course, if it is possible. Thanks, guys. Best community.
  10. Hi. Could someone provide real cases when you use $page->meta to store data? Thanks.
  11. Happy New Year all and thanks @ryan for all of your work. There are already so many ideas and requests, but here is what my current clients asks: Central media/image manager for reusing images across pages Support for different file storages for image like Flysystem
  12. Hi @Lewis Newson There are two options: You can create custom inputfield based on InputfiedPassword, just rename it, corret render and processInput methods You can hook render and processInput methods and change it to what you need.
  13. З Різдвом Христовим!
  14. I think they don't. ProCache bypasses PHP. @B3ta Why don't use cookies for that?
  15. Thank @ryan. Great additon to ProFields family. Will Combo field work within RepeaterMatrix field?
  16. Hi @uliverse Probably on the desktop you are using hard refresh or opening your page while your ChromeDev tools are opened ( where 'disable cache' is checked). Actually, it's normal behaviour when your desktop/mobile browser is caching image, documents etc. There is a submodule in the ProCache module that helps in such a situation https://processwire.com/blog/posts/pw-3.0.98-procache-buster/
  17. https://github.com/processwire/processwire/blob/master/wire/modules/Inputfield/InputfieldPage/InputfieldPage.module#L841
  18. Hi @DrQuincy Not sure that this is the right way but you can hide this block via CSS, create custom permission and check it in the hook to ___executeResize() if the user has it. https://github.com/processwire/processwire/blob/master/wire/modules/Process/ProcessPageEditImageSelect/ProcessPageEditImageSelect.module#L1282
  19. Hi @humanafterall. Have you read this information https://processwire.com/docs/more/multi-site-support/? By the way, you can use urlSegments to output low-bandwidth version of the pages. For example site.com/some-page/low/ where site.com/some-page/ is normal page and site.com/some-page/low/ is low-bandwidth. It's just an idea, but I think that this one is easier to implement and support.
  20. Do you use MarkupPagerNav module? If so, there is 'baseUrl' property where probably you should pass your modified page URL
  21. @franciccio-ITALIANO You may also consider to you October CMS (Laravel based CMS) + Shoppoholic as ecommerce solution. There are also a lot of modules free and commercial.
  22. I don't remember why there are all these checks in hookAfterTemplateRender, but in such way it could identify a template that was used for rendering of the current page
×
×
  • Create New...