Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/22/2012 in all areas

  1. The Modules page can get a little unruly, and though Soma's ModulesSectionCollapse helps to mitigate this I felt the need for more.... So I put together "Modules Quick Filter". Which has two main components. A "search as you type" field that filters by module name and a "refine by category" select box, which narrows the display of Modules by category. (The functionality is accomplished with javascript, as is the layout itself, if there are some hooks I could've used to do this, someone let me know ) UPDATE 1.1 - Added Multilingual Support and some minor bug fixes/improvmtents UPDATE 1.2 - Added configuration setting to choose whether or not field is collapsed by default. DOWNLOAD
    5 points
  2. IMPORTANT This is now well and truly out of date! I strongly suggest ignoring it. The Bootwire System This is a series of proof-of-concept profiles based on ProcessWire 2.3 (forthcoming) and the Twitter Bootstrap Framework They are currently using Bootstrap 2.3 and JQuery 1.9.1 Bootwire Starter Profile Version 0.5 This version if for those who just want to leap in and get their hands dirty, It includes almost no content at all, very few fields and templates and very little markup. The normal Bootstrap navigation is in place for reference. More details are in the readme. Download Here: http://stonywebsites.co.uk/Bootwire-Starter-Profile.zip Github: https://github.com/jsanglier/Bootwire-Starter-Profile ============================================================ All versions come with a Site Settings page which is a child of a Content Management page in the page directory. This is used for common elements such as site title. The Starter Version has almost nothing in it! Some additional tweaks have been added to TinyMCE and these profiles are pre-loaded with the Modules Manager, the Profile Exporter and the Page Delete module. Please use the Module Manager to ensure all modules are up to date. NEW: Now with some demo functionality in a functions.inc file. Bootwire Demo Profile Built on the starter profile, this version demonstrates some Twitter Bootstrap functionality in the context of a ProcessWire installation. The Demo can be viewed here: http://bootwiredemo.stonywebsites.co.uk/ Download here: http://stonywebsites.co.uk/Bootwire-Demo-Profile.zip Github: https://github.com/jsanglier/bootwire/ Bootwire Admin Theme I have created an admin theme using Bootstrap 2.2.2. It is functioning but should be treated as a work in progress. However, you may like it. It has its own thread here. http://processwire.com/talk/topic/2640-bootwire-admin-proof-of-concept-admin-theme/ ============================================================== Future Profiles Bootwire Blog Profile This is intended to be a basic blog system using the Bootstrap framework. I am planning to start from scratch with the blog, basically because I need the exercise. It will not be as clever as Ryan's system, but it will have the following features (er ... possibly): Category Tree Tag System In-Article gallery Media pages Alternate themes for posts Lots of global settings Manual related posts Automated related posts (okay, probably beyond me) er ,,,, some other great feature that I have not thought of yet.
    4 points
  3. Working on a Mac using Safari and Firefox, I recently had exactly the same problem after moving a website from developing server to live server (from another provider). After that I could only upload images with a file size of max. 200 KB, while max upload file size set by the provider was 16 MB. In Internet Explorer 8 I had no problems uploading larger files. In that browser the AJAX-uploader (with drag-and-drop functionality) isn't supported, instead the 'classic' uploader is used. So I thought the AJAX-uploader should be the problem. I solved the problem after editing line 296 of InputfieldFIle.js (wire/modules/Inputfield/InputfieldFile/) from: InitHTML5(); into: InitOldSchool(); Strange thing is that this problem only shows up at some providers...
    2 points
  4. Introducing MetroWire, a little theme I've been working on and using in personal projects for which was once inspired by "metro" styling and to which now I can't think of a better name for. DOWNLOAD http://modules.processwire.com/modules/metro-wire/'>Modules Directory Listing SCREENS!! Login Page Tree Templates Page Customise the colors! (for those of you familiar with less. Change the "@adminAccent" colour variable in "templates-admin/styles/less/vars.less" and compile to customise the main colour to whatever you like!) Hopefully at some point I can integrate the compiling and even give users the ability to choose their colour... fun! Hope you guys enjoy this, thanks for taking a look if you do! I also did a Tweak to the AdminBar to match my theme more closely (hopefully Apeisa doesn't mind), and did some naming changes to solve a conflict I had on a project that used Bootstrap AdminBar-TWEAK.zip
    1 point
  5. I was thinking of a way of creating custom admin pages without having to create a process module or having to use the $wire object. I came up with a process that is actually very simple (although I think it would be better to create a module for having this functionality). Here is how: (This will work with the default admin theme, but should also work with other themes) Go to your /site/templates-admin/default.php (if you don't have it, copy the /wire/templates-admin/ directory to /site/) and change this line <?php echo $content?> to this <?php if($page->template===$templates->admin){echo $content;}else{include($config->paths->templates.$page->template->name.".inc");}?> Then, go to the /site/templates/ folder and create a file named "custom.php" with this content <?php include($config->paths->adminTemplates."default.php"); Our setup is ready Now, to create a custom page in the admin: First, create the new page as child of /Admin/ and point to custom.php as the template file. To do this, when creating the template for the page, go to "ADVANCED" and write "custom" as the "Alternate Template Filename". Then, instead of creating a TEMPLATE.php file, as you normaly would, create a TEMPLATE.inc file. You can use all the API variables as you would in a normal template. Disclaimer: This is a proof of concept, and has still lot's of place for improvement. edit: changed from this if($page->process) to this if($page->template === $templates->admin)
    1 point
  6. I think I'm finally caught up here after 6 days. This forum software doesn't always catch all the pending messages in the "view new content", so it's possible I'm still missing some. There's so much here I can't keep track of it all manually (though did try), so if you see anything that looks like I should have replied to it and didn't, please let me know.
    1 point
  7. If files do get uploaded, but arent visible through sftp, then problem lies in your sftp program. Maybe your sftp program is caching the directory view and requires clicking refresh?
    1 point
  8. Our next site created with Processwire is online: www.jobcenter-heidenheim.de You could describe it as a department of the agency for employment here in Germany. This site is often visited to find out about the business hours and how to contact your special counterpart. Another important factor for the client was the use of their "Leitbild"- and as you can see, they're used all over the page and the "WIR"(we) is written in the special font. Beside the front page, have a look to "Ansprechpartner" . Every person you can find here is a single page in PW. I've attached a screenshot from the backend.
    1 point
  9. I don't know of a way to have ProcessWire keep track of two separate template directories. But of course you can turn any template file into a controller for any number of other template files and include them from wherever you want. A simple example would be to create a template called "external" and add a text field to it called "external_file". Then in your external.php: <?php if($page->external_file) { $filename = "/some/external/path/" . $sanitizer->name($page->external_file) . ".php"; if(is_file($filename)) include($filename); else echo "$filename does not exist"; } else { echo "No external file defined"; } Rather than external_file being a text field, it'd be better as a page reference field connected to a <select>. That way you could select your template rather than having to type it in. But I wanted to keep this example as simple as possible.
    1 point
  10. I also thought I would add my 2 pence/cents worth to this thread. If you are using a debian based system like ubuntu or mint then you might also look in the default setup in sites-enabled as it may be overriding the file you created for your site that carries the vhost info above. Changed it to the same setup. I was at the tearing hair out stage when I came across that elsewhere.
    1 point
  11. Hi totoff, empty() doesn't tell you anything useful for objects, returning always false even for objects with no properties at all (as of PHP 5.0.0). See http://php.net/manual/en/function.empty.php for more details. $pages->find() always returns a PageArray, which is an object although it behaves very much like a plain PHP array. To see if any items were found, you can use count() method like this: if($featurednews->count() > 0) { // ... } Using a PHP function - count($featurednews) - would work just as well.
    1 point
  12. Ok I just created a new export with latest PW core and now it seems to work better and assets folders get created again. It's now there, let me know if any issues arrive.
    1 point
  13. In case anyone wants to buy PhpStorm, buy it today. I just got this tweet: I am using PhpStorm for about a year now, and I am quite happy with it. And the upcoming new UI looks nice, too. * Sorry for spamming this forum with special offers, but I think some here might be interested. I am not affiliated with them, just a happy user.
    1 point
  14. Hi.. Is there a way to create multiple templates for forms? I mean, separate template for each form. Please point me to the right direction. As always, any help is greatly appreciated. Edit: I don't know why I didn't realize right away that when ryan said email "template" it meant a template with most of the api vars in it. When I got around it, it was just a matter of identifying the form name to design a layout for each of the forms.
    1 point
  15. Dont need to turn of slash trailing. Just add the slash to the return url.
    1 point
  16. For that purpose you could use $pages->find("sort=-modified, limit=5"). But I do think that would be nice addition or a great separate module.
    1 point
  17. Great stuff Teppo, very useful. A minor thing, the java-script field is not showing correct for me though, see attached image. I'm wondering if it's possible to track not only logins but also some editor actions - say log each time a page is edited. I use this logging feature a lot when I use modX as I can see if clients have edited a page in the last hour or so - It allows me to download the latest database to my dev machine, make some changes and then reupload (overwrite) knowing I'm not overwriting any new client edits. Anyway, thanks for a cool mod
    1 point
  18. I Lucas, I do this in my tutorial. http://wiki.processwire.com/index.php/Basic_Website_Tutorial It shows you how to create the fields, template and page, and then how to integrate that into your site. On a site I am working on at the moment, I have even included things like banner background colours, blocks, meta data, and tons of SEO useful stuff .
    1 point
×
×
  • Create New...