Jump to content

almonk

Members
  • Posts

    41
  • Joined

  • Last visited

Posts posted by almonk

  1. Isn't it easier to leave it up to the developer?

    For example, for my clients I just add a checkbox called 'published' which they have to tick for the page to be included in listing pages.

    I definitely don't think Wordpress should be held up as an idol for Processwire, it has one of the worst user interfaces in my opinion.

  2. This goes back to the whole 'matrix' idea we brought up a while ago...

    I've been trying to do a similar sort of thing recently, and I still think that a matrix style solution is the best way to handle things like this.

    For example, on the backend the user may manage this page like so:

    http://cl.ly/2Z2O2c31230X36173j3v

    If we could define fields which could be repeatable, and sortable (drag and drop) - almost exactly how images work, this would be awesome.

    Thoughts?

  3. Personally, I think it makes sense that the height/width are set as optional defaults on the field (rather than anything to do with Tiny MCE). This seems to make more sense to me than introducing more complexity into Tiny MCE.

    I might have a stab at this later, although I think module development might be slightly more than my php skills can tackle ;)

  4. Hi guys

    At the moment I'm building a site for a client that include a blog which will be functionally similar to a tumblog.

    Thanks to Processwire's built in Image plugin for Tiny MCE, we get a nice interface for resizing images that are too big - however, I'm looking for a way to resize the images automatically once placed in the Tiny MCE editor to be the correct size.

    One solution I tried to implement myself was creating an extra 'Autosize Image' button in the image picker dialog that would instantly resize to a given width but I didn't get very far as my Tiny MCE foo is clearly lacking.

    Any ideas on how to approach this?

    Al

  5. Hi guys,

    I'm doing some pretty heavy stuff for a client whereby a logged in user can upload a file to the system.

    The files get added to the page's file field, $page->files;

    I've got this code...

    	
    $page->setOutputFormatting(false);
    $page->files->add($_FILES['userfile']['tmp_name']);
    $page->save();
    $page->setOutputFormatting(true);
    

    ... which uploads the file OK and puts it in the array, however it logs it with the temporary file name (something like php72ha).

    I want to preserve the original filename and perhaps add a timestamp to it, any ideas how I'd go about achieving this?

    Thanks

  6. I've made a few updates to this theme and amended the preview in OP:

    - New slimline toolbars, w/ pages icon

    - Added Aristo Jquery UI theme

    - Various other tweaks and polish

    Let me know what you think, the latest version, as always can be found at github.

  7. Hi there,

    Loving the look of processwire so far, walks the line very nicely between a simple 'page based' cms and more powerful solutions - thanks for all your hardwork.

    One thing I think would be an awesome addition is a module to enable repeatable elements, somewhat like the Matrix expression engine plugin (http://pixelandtonic.com/matrix).

    I guess this would work as a field type similar to the Fieldsets but called Repeatable and effectively allow the editor of a page to add a new 'row' of repeatable elements defined in the template.

    Bit of a braindump but I hope this makes sense!

    Al

×
×
  • Create New...