Jump to content

tpr

Members
  • Posts

    2,321
  • Joined

  • Last visited

  • Days Won

    44

Everything posted by tpr

  1. Sounds like a JavaScript error, check the console (devtools).
  2. Use AdminOnSteroids and enable Field and Template edit links, then hover on field label to see field name in a tooltip, or edit on click.
  3. Just added a new 'getembedurl', 'append' and 'prepend' filters to v4.4. With getembedurl you can retrieve the embed url to be used when embedding videos (currently for Youtube/Vimeo). Editors aren't really capable of copying the embed url so you can use this filter to allow them adding the url of the video to the admin. Filters append and prepend are convenience filters that you can use to quickly append/remove data. Data can be primitive or arrays. These filters are particularly useful when chaining filters so you don't have to split the current line just to modify the original data. The bodyclass filter now contains the name of the viewFile (if exists), prefixed with "v-", and directory separators converted to "-". Custom classes can be added using $page->body_class if needed.
  4. I'm using AdminRestrictBranch module on a similar site. There is only one code base and I use the URL to check which site to load. In the admin site owners can only see/manage their own pages. Some owners have custom domain and they all point to the same directory on the server.
  5. Thanks, I also think yours is better. At the time I wrote the original Js I wasn't aware of .one(), I would use that too.
  6. You can also try AutoSmush and see whether it fits.
  7. The search is over, thanks to @Juergen providing login to the site in question. I have modified the way the controls are added, now it happens when you hover on the admindatatable, this seems to be the most reliable way. See the modified file attached. BatchChildEditor.js
  8. It's a neverending question, you should choose one (or not choose any) and stick with that, until you find more attractive one Personally I use a grid mixin and use custom CSS for everything. I can't say this is the best way, that always depends on the situation. For a larger project with multiple devs I would probably use a framework.
  9. Yepp, the main goal would be to detect where it stops at your side Btw "variable length" in these cases are the number of items found in the DOM. So if it's 0 for "$(bce_adminDataTableSelector).length" it means the html tag is not found in the DOM. I guess you can't provide login details via PM, that would make things easier
  10. Try adding console.log() directly into BatchChildEditor.js file instead.
  11. Thanks - a script can fail even if there are no errors, eg. in this case probably the markup can't be added because the target element is not found in the DOM (maybe the selector used doesn't match anything). It's hard to tell anything else without seeing it. I would try using console.log(obj.length); where object is the target (jQuery) element. If it's 1 (shown in the console) then it's there, otherwise not.
  12. Just upgraded the module to v0.4.3. There's a new option to disable the "noescape" filter, and a workaround for translations on a non-multilanguage site. The latter is a simple solution for a situation when you copy over a latte file from another project full with translations but the current project is single-language only. This is perhaps not an issue if you're using full strings for translation keys, e.g "_t('Read more')" instead "_t('read_more_text')" because the original key is returned. But even so you may start a non-English project and there you'll be in trouble I was there several times and ended up rewriting strings/translations all over the project, now they can remain in place and I have to add translations at one file (which you can copy over).
  13. Still no idea, try to load BatchChildEditor.js and check "addBceColumnControls" function at line 213. I guess you've tried disabling AOS to ensure it's not interfering.
  14. I can't see issues here. Perhaps you could find the corresponding JS code in BCE and see where it fails. You could also check if the markup is there so it's not only a CSS issue (with devtools).
  15. Are you using AJAX loading?
  16. Just used this module for adding a video link to images. There was a glitch that there was no indication on the thumbnails whether there is a link added or not, so I put together a small js/css combo to add an icon: Here is the corresponding code - dirty but works
  17. That's true for the "zip download" export option, but for the "JSON list" obviously it's not. If custom modules were skipped that would have been more "user-friendly" than aborting. I'll use the ZIP option next time though, thanks for the info.
  18. Uikit is only used in the admin, on the front end you can use anything you want. Think of PW as a data source, all the rest - markup, styles, scripts - is up to you.
  19. I've just used the JSON with settings feature to install 3rd party and some core modules, worked well. It's nice to see how much time this module can save, thanks! First I thought core and 3rd party modules are mixed but 3rd party ones were at the end of the checkboxes list, apart from one or two. If they could be separated better it would be great, eg. in two columns or making 3rd party ones bold or something. Another thing I noticed is that when the batch install reached a module not listed in the Modules Directory (nor available on GitHub) the batch was aborted and the rest of the modules weren't installed. This was a custom module. If it was possible to skip these and continue with others that would be great.
  20. PW does not pull any CSS or Js to your frontend unless you tell him so.
  21. What's wrong with $this->wire('page')->template == 'admin' ?
  22. How do you hide those pages? This sounds like a bug in the Tree dropdown, imo it should display the same pages.
  23. What is the benefit of hiding the Tree menu? If the user clicks on the "Pages" he will get the same content, or am I missing something?
  24. There was an undocumented "list" filter among the filters that is now "officially" published. It was similar to the built-in implode filter but didn't choke if you passed a string instead of an array to it. I suggested this improvement in the Nette forums but they weren't too enthusiastic. In PW there are times (at least I had) when you don't know for sure if a data is a string or an array so I added this check to avoid errors. The filter removes empty values so no need to check data existence manually. You can specify a separator string and/or a HTML tag, so it's easy to build eg. an unordered list. Just apply it to an array of possible items and the filter will take care of the rest. Here is an example.
  25. I see and yes, my opinion is that if someone check this tweak in AOS he would like to have the system templates to be shown by default. Otoh when you're at the templates page and set "No" for system templates, system templates will not be shown because PW adds the url parameter "&system=0" which seemingly overrides AOS. Of course if you navigate elsewhere and go back to the templates page system templates will be back. But you can temporarily hide system templates.
×
×
  • Create New...