Jump to content

Zeka

Members
  • Content Count

    817
  • Joined

  • Last visited

  • Days Won

    7

Zeka last won the day on November 26 2019

Zeka had the most liked content!

Community Reputation

870 Excellent

About Zeka

  • Rank
    Hero Member
  • Birthday 04/12/1989

Profile Information

  • Gender
    Male
  • Location
    Kiev, Ukraine

Recent Profile Visitors

3,108 profile views
  1. @2hoch11 Make sure that there are no overrides on the second template on template field context.
  2. Thanks, I know it. The issue is that somehow it worked before update with this option checked.
  3. @Gadgetto Have you seen this? https://github.com/processwire/processwire/blob/dev/wire/core/FieldsTableTools.php#L108
  4. @adrian Hi. I'm facing a small issue and I'm not sure that this one is relative to Tracy, but I feel that it's better to ask anyway. I have quite a simple template that outputs page views based on the GET parameters. URL of this page is /ua/views/. The issue is that I have significant and unreasonable leap in memory usage The strange thing is that if I change URL ( page name) to something else like v or view I get (if not contains 'views') I have reviewed all the code and did not find anything where occurs 'views'. I don’t have any idea what can cause it, it's just some kind of mysticism, so I thought maybe it could be an issue with Tracy or Performance Panel. Thanks.
  5. You can read more about these two options here https://processwire.com/blog/posts/processwire-2.6.7-core-updates-and-more/ You can use config.php if you preffer (API is not ready), but I would go with ready.php and setting().
  6. @LAPS You can place it in ready.php or if you are using 'prependTemplateFile' option in config.php you can place it in _init.php or whatever you call it. https://github.com/processwire/processwire/blob/master/site-beginner/config.php#L40
  7. https://processwire.com/api/ref/functions/setting/
  8. @fuma255 You should put your query to the whitelist https://processwire.com/api/ref/wire-input/whitelist/, but I think that there are some other issue in your search logic. Could you show it to us?
  9. @ryan There is one more issue that I faced after the update. I'm using "Multiple templates or parents for users" and after update when I try to add new user with my custom template I get Can’t save page 0: /ua/authors/test/: Page using template “author” is not moveable. (Template::noMove) [/admin/access/users/ => /ua/authors/]
  10. Hi. I'm using Matrix field as a content builder. One of its type is "Embed code" that contain Textarea field where editors can insert embed code. I know that such an approach opens possibilities for vulnerabilities for and it's better to stick to Textformatter approach but for now editors don't want to change it. Sometime editors inset code like <Iframe src = "https://www.facebook.com/plugins/post.php?href ......" width = "500" height = "441" style = "border: none; overflow: hidden" scrolling = "no" frameborder = "0" allowTransparency = "true" allow = "encrypted-media"> </ iframe> As you can see there are some errors in it that cause that only part of the page is rendered because of HTML parsing errors. So my question is how would you handle such an approach? I was thinking to try to use purifier, but there will be a lot of work to configure it rightly, maybe there is an easier way that I don't think about how to validate HTML?
  11. @ryan It looks like there are some issues with InputfieldDatetime. I have to fields 'publish_from' and 'publish_until'. None of them are configurated to prefill today's date if empty, but after the update, if one of the fields has value second one is prefilled with its value. The second issue is that after page save I cannot change the selected value, it shows that the date is changed but after page save it still show the previous date. The third issue is that Date Picker options are not applied to the field. For example if I set Date Picker option to "No date/time picker" on the first field second one will also have no date/time picker. Looks like there is something wrong with js initialization and first field configuration is applied to all other date fields on the page edit screen. Tested on two different sites.
  12. Wow. Thank you Ryan. Great update.
  13. Not sure that you can modify edit URL in hook, but you can definitely override it in inherited class. Or just add custom method via hook and use it $wire->addHook("Page(template=your_template)::customEditURL", function(HookEvent $event){ return //// });
×
×
  • Create New...