• Content count

  • Joined

  • Last visited

  • Days Won


dragan last won the day on November 21 2013

dragan had the most liked content!

Community Reputation

247 Excellent

1 Follower

About dragan

  • Rank
    Sr. Member
  • Birthday 10/18/1969

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
  1. In the backend or frontend? Maybe that's what you're looking for: https://processwire.com/api/selectors/inputfield-dependencies/ Similar discussion:
  2. Thanks for this module! I had to change a few things to get this to work with PW 3.0.84 a) add PW namespace b) change page id from 2 to 3 (2 = admin root, but 3 = page, which is the actual default landing page after login) if ($this->page->id === 3) { (and then the two lines from @Macrura above) c) // $t = new TemplateFile($this->config->paths->siteModules . __CLASS__ . "/dashboard.php"); // this creates a URL like site/modules\ProcessWire/ProcessDashboard/ $t = new TemplateFile($this->config->paths->siteModules . "ProcessDashboard/dashboard.php"); Perhaps you could re-check, and publish a new version that officially supports PW 3 ?
  3. Thanks for this great tutorial! I was playing around lately with modules myself. It's really remarkable how easy it can be. Quick question: Is this the only (or just the "recommended") way to add content in a module page? $form = wire()->modules->get('InputfieldForm'); $field = wire()->modules->get('InputfieldMarkup'); What I'd like, is include() a PHP file that resides either in my modules or my site/templates folder. Or - well - any kind of PHP code right in the .module. InputFieldMarkup will not allow PHP. Is is possible to include just about anything I'd like? Or is this some kind of security limitation? Background: I created a simple custom help page that resides under /admin/setup, and also installs a custom role. If I wanted to extend that to not only use HTML/CSS/JS, but also PHP, how would I do that? (using all of PW's methods... $pages / wire() etc.). I'd like to create some kind of dashboard (just as a proof of concept).
  4. Great. Now that I've uninstalled Reno (went OK), and then wanting to uninstall default admin theme too, I can't access module section anymore. Edit profile: same fatal error.
  5. I wonder if this is a bug or if I need to adjust something? Every user I create, no matter what role, only sees the classic or Reno theme. For those users where I decided they can't edit their own profile, they can never switch to the UIKit admin theme. Even if I go back to a user's profile as superadmin, and again save the profile (with Uikit checked), nothing changes. I tried with several users, did logoff/login several times - nothing. Do I have to uninstall the classis + Reno theme, in order that every new user is assigned the UIKit theme?
  6. Do you intend to import this tabular data into PW as pages? If yes, have a look here:
  7. I don't think it's a permission problem - see previous threads with the same error message: https://www.google.ch/search?q=Unable+to+generate+password+hash site:.processwire.com
  8. I'm not sure, but maybe you could use selectize: https://processwire.com/talk/topic/13549-selectizejs-modules-family/ Also, there's an option in the Admin On Steroids module to check/uncheck all radio buttons, if I'm not mistaken. Not sure if it works with checkboxes. As for intending: Inspect the checkboxes and see if there's any CSS classes you could use in a custom admin CSS.
  9. Is there any way to insert image width + height attributes, when I link to a bigger image with CKEditor? i.e. to use Photoswipe, I have to supply a data-attribute that holds the width + height of the big image, e.g. data-size="1920x675". The above code by @SamC works nice, but I would need the same for the linked image, in the href. Where does that actually happen? Click on "link" icon in RTE -> wrap anchor around image? Is that core or a module? I guess I'd rather try a PW hook than fiddling with CKE JS... edit: I just found this related forum thread... guess I will try this out
  10. This new fork doesn't work at all for me. Well, it did work, but as soon as I needed to clear the cache (after adding/changing some CSS/JS), I get a fatal error. Exception: DirectoryIterator::__construct(C:/xampp/htdocs/xxx/site/assets/cache/Page/,C:/xampp/htdocs/xxx/site/assets/cache/Page/): Das System kann die angegebene Datei nicht finden. (code: 2) (in C:\xampp\htdocs\xxx\wire\core\CacheFile.php line 240) Das System kann die angegebene Datei nicht finden = the system can't find the supplied file Also, the HTML doesn't get minified at all, although it's checked in the module settings. PW 3.0.82, Tracy Debugger active, debug-mode true, local install
  11. I wonder why on smaller screens @ http://stellardebating.nicegrp.com/ you'll get to see the Twitter feed first, and then the main content? Is that on purpose? Don't you want to change the order of the content so the most important stuff is always seen first? On the blacksmith site, you can see PHP code not being rendered: <meta name="keywords" content="echo $homepage->keywords;">
  12. Are you sure the path is correct? What if you omit true (i.e. don't just search in include-path) and use an absolute path? PW doesn't disable this function. If you're in devmode and/or have Tracy Debugger installed, you should see some hint why it's failing.
  13. You could have a look at pageArray filter: https://processwire.com/apigen/source-class-PageArray.html#329 Also, something you might try: Query all blog posts, get all the categories, then use something like array_unique() to get all used categories. From that array, you can create a "safe" list-link, i.e. list that doesn't show categories without blog posts.
  14. In other words: You have pre-defined categories? Can't you set it up so that categories are only created, when there actually is a matching post? i.e. use page reference field and check "Allow new pages to be created from field?" in the field settings (tab "input"). That way you never end up with empty/unused categories.
  15. @Nukro If you care about accessibility (and I think you should), stay away from Slider "Pro"... it's an accessibility nightmare. DIV-soup, no semantic markup, you can't navigate with keyboard, and screenreaders will most likely be confused. I'm a big fan of Slick. Highly configurable and lightweight.