Jump to content

theo

Members
  • Posts

    299
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by theo

  1. @Soma Does the problem persist, if you change the admin theme?
  2. Your website looks great! For sitewide settings, you can simply use a page which is not listed/published or: http://modules.processwire.com/modules/process-general-settings/ http://modules.processwire.com/modules/textformatter-multi-value/ EDIT: In my last project, I've simply added a fieldset with settings fields in it to the bottom of the home (root) page. Then get values from anywhere like: $pages->get(1)->site_name; //"home" is always 1
  3. A class using float:left should be enough for both frameworks imho. .float_left { float: left; } Or separate for BS4: https://getbootstrap.com/docs/4.0/utilities/float/
  4. @Soma No problem here with images. ProcessWire 3.0.96 Chromium Version 65.0.3325.162 (openSUSE Build) (64-Bit)
  5. Humm it works here, but there is one thing to be aware of afaics: As soon as there is "children.template=..." or "!children.template=..." in the second parameter, it does only list pages which actually have children. $selector = "template=invoice" may list more pages than $selector = "template=invoice, !children.template=atemplate"; even if none of the existing children have the "atemplate" template.
  6. Doesn't it simply work like this? $selector = "template=invoice, !children.template=payment";
  7. You could use CKEditor Templates. This would be a 2-Click Solution and you can even choose which block to insert:
  8. Ah, now I see. If there is a CKE CSS configured in the field page, then the one configured in AOS is not loaded. Thank you.
  9. Everything seems normal. But while it loads the cke.js it does not load the test.css afaics. Thank you.
  10. Ah, sorry. I mean the tool that many browsers have, where you can see which files they are actually requesting and the HTTP status etc. I could not find my CSS in this list and it had no effect, although the AOS file check was successful. Example Screenshot: Thank you.
  11. @bernhard This works great afaics. Well done. I think this is a valuable addition. I hate speed limits.
  12. Btw. how can I configure CodeMirror to not wrap lines? I think code editors should not wrap lines. I've changed: config.codemirror = { theme: 'theo', lineWrapping: false } in "sample-cke.js" but it has no effect (The file is loaded, as it loads theme: 'theo') Thank you.
  13. Thank you. I've made my own theme (just added above). I was trying to use "CKEditor Custom CSS" in AOS config, but the file configured there was not loaded (Browser Network Analysis).
  14. @tpr How can I change the font which is used in CodeMirror? I would like sth. like Courier instead of Arial. Thank you. EDIT: OK, found it myself. Adding this: html.aos .cke_reset_all .CodeMirror-scroll *{font-family:courier!important;font-size:14px;} to the theme css (One of the files in /site/modules/AdminOnSteroids/CKE/plugins/codemirror/theme/) does that. Here is my own theme (theo.css)
  15. Ha! I feel like Sherlock Holmes now! There IS a way to do what I need without CSS tweaking or installing hooks. It is just very hidden. Probably not even Ryan knows about it. In Modules -> Configure -> AdminThemeUikit under "Masthead and Navigation" change "Masthead logo click action" to "Open offcanvas navigation". Then, as "preview" user click the PW logo (top-left corner), then click your login name, and then you will see "Logout" and "View site" links. It works, but I think it should be more visible.
  16. Not sure if I understand what you are talking about. PW will never be as "mass used" as Wordpress, but this doesn't make Wordpress a better tool. Then you are comparing PW with e-commerce tools. I don't need e-commerce tools most of the time. But I once had a job to code a complete website with Magento. It is more or less usable for the e-commerce part, as long as you don't need anything "special", but for developing the rest of the website, it is a nightmare imo.
  17. Hello Can anybody help me with this? I have the impression that Ryan does not understand me (see issue tracker link above). I don't need a new function, it is all there, but hidden (for a reason?) in AdminThemeUikit. If I add one line in wire/modules/AdminTheme/AdminThemeUikit/uikit/dist/css/uikit.pw.min.css ul.uk-nav-sub { padding: 5px 0 5px 0; display:block !important; /*theo*/ } then the options that I need (mainly Logout) show up nicely in mobile mode: But why are they hidden in AdminThemeUikit? They are visible in AdminThemeDefault. From Ryan's response in the tracker, I guess he thinks that I want something special or "wrong". But I would just like to make visible what is already there for good reasons. Can anybody explain what is wrong with this? Thank you.
  18. Issue report: https://github.com/processwire/processwire-issues/issues/539 Thank you.
  19. @Soma Thank you, but this is not visible in AdminThemeUikit. And UiKit can't be deselected for the Login screen in PW 3.0.95 anymore, because it is not selected (just default) Shall I write an issue report?
  20. Hi I have a preview user with a preview role, meaning he can only view but not edit pages (Maintenance Mode). How can he log out? (e.g. if he would like to log in with an editor role later). Afaics, he cannot do anything from here except clicking "Continue" to view the site. Even if I give him "profile-edit" permission, he doesn't see anything but this. I know he could clear browser data, but there should be an official way to log out. Is there a way? Thank you.
  21. @bernhard : Bravo! Looks great. I will test it later, no time atm.
  22. The hook works great. However, there is another option. In mode: $config->advanced=true; You can make customOptions of a field overridable per template.
  23. Thank you. Chrome doesn't highlight these problems, but it's the same there of course. Firefox does that, which is pretty handy.
  24. Hi, If I look at the browser source code of my admin, there is a red line, which might have to do with AOS: <a href="/~theo/pwtest/processwire/module/edit?name=AdminOnSteroids&toggle=1" class="aos_toggle"style="opacity: 0.75; color: inherit !important; margin-left: 0; display: inline-block; padding: 4px 0; margin-right: 1px;"><i class="fa fa-medkit"></i> <span onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'"> Disable AdminOnSteroids</span></a> A space is missing between class and style class="aos_toggle"style= Thank you.
  25. Btw. Yes it works. I use it like @import url("../fonts/fonts.css"); Thank you.
×
×
  • Create New...