Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/11/2012 in all areas

  1. Hi, I didn't like the way how ProcessWire works with files right now. So I thought it's time for an Module which makes it better. Right now the module isn't finished but I'm working on it (probably together with Soma). My goal is to create an module which let's you mange all of your files and images easy and let you upload files which aren't connected to a page so that every page can use it. If you have wishes or ideas for this module you can post them here. (Also if you know a better way to solve this) And by the way here's a first screenshot (I started today, so it isn't that great right now). UPDATE: Download: https://github.com/N...oll/ManageFiles
    1 point
  2. Hey! I launched my second PW website. The design is again from Erika Göbel. http://www.bronislava.de/ Bronislava is an artist that lives and work in Karlsruhe/Germany. We decided for a very minimalistic approach. Everything is white, except for the works page (WERKE), where the pictures occupy all the screen. I didn't test a lot on mobile phones, and I guess I will still have to do some more work for them, particularly for touch screens. Soma's new module came just on time to make the admin even friendlier And again, it was a big pleasure to work with PW.
    1 point
  3. Thanks Ryan, exactly what I needed. Thumbnails - this is the way I wanted it to work, but watching some video it seemed to me that it took thumbnail from the center. Great. So migration is pretty easy - I like that. I have some experience with wordpress, and it is quite hard there when you change domain name. Now I'm learnig php little bit encouraged by ProcessWire elegance and simplicity. Thanks for that framework. When I will have more noob questions, I'll ask here
    1 point
  4. Here it is a first test version. Got it working with regular image fields, or thumbnail cropimages fields. You can specify any image field using the image field name in the advanced template setting for page label. To output an thumbnail (from the Thumbnail module) just use the dot notation. fieldname.thumbnailname (as specified in the thumbnail field settings) There's some option on this module for controlling the size of image and the container size, padding, colors. https://github.com/s...eListImageLabel Edit: Added support for multiple image fields. It will always take the first image.
    1 point
  5. I'm trying to write a FIeldtype that stores tags. The basic idea is that it uses a standard Text Inputfield and takes the string entered, separates the values by comma and then saves each one as a tag. WHen it loads the values I preferably want the values to remain as an array of item in the page data, but be displayed as a simple comma-seperated lsit inthe InputField. I'm extending a FieldTypeMulti but I see mto be running into some sort of problem when there is no value associated with the filed in the DB, as it displays "WireArray(0)" in the InputField. I was originally taking the WireArray being returned from the DB and concatenating (using PHP implode() method) back into a string so the InputFIeld can display it. I've gone round in circles and I can't work out exactly what I have t odo to successfully either: A. Keep the data as an array from the DB, but successfully display it as a string in the InputFIeld. OR B. Convert the array from the DB into a simple string, and I can then re-explode it into individual tags if I want to iterate them in my template. An extract of my FieldTypeTags code looks like this at present, although I've tried about 5 different things before this!! public function ___sleepValue(Page $page, Field $field, $value) { $data = array(); foreach(explode(',', $value) as $tag) { $data[] = array('data' => trim($tag)); } $clean = array_filter($data, function($item) { return !empty($item['data']); }); return $clean; } public function ___wakeupValue(Page $page, Field $field, $value) { return implode(', ', $value); } public function sanitizeValue(Page $page, Field $field, $value) { return $value; } I'm going absolutely mad with this. I can successfully store the tags in the DB as separate values, whcih is great for searching and doing tag cloud counts etc, but I can't get the InputField to behave properly when there is nothing stored for the field.
    1 point
  6. Just recently installed the Twitter Puller module, going to really have fun with that puppy i think . When i first 'checked for new modules' - the page refreshes and then says it found TwitterPuller. Now, upon trying to search for it, i'm left to rescan the entire page to see where it was placed (or at least I did that). Suggestion: Upon 'checking for new modules' - and upon successfully finding one or more new modules, whereby it states such in the green bar at the top, can you please name-tag hyper link that new module to the location on that page. Typically speaking if someone checked for new 'non-Core' modules, they're looking to ultimately install it . That way it'll make it easier to find and thus hit that beautiful install [submit] button .
    1 point
×
×
  • Create New...