-
Posts
6,808 -
Joined
-
Last visited
-
Days Won
159
Everything posted by Soma
-
I created a special template where I've set some settings under System tab. Now the "Disable Settings Tag" and "Disable Trash Option" are behaving strange, as when I flag "Disable Settings Tab" and save, Settings tab doesn't show up. When I go and unflag that option again and save it's still checked, but the settings tab does show up. When I go and uncheck "Disable Trash Option" and save the settings tab flag also is suddenly unchecked...
-
Welcome maruchan Are you/she using latest version? May try latest version from github. Make sure to clear cache in browser. I thought this was fixed already like 1-2 weeks ago. https://github.com/ryancramerdesign/P21/commit/4e2f595faba92d660973ecac07bd36e4d70cb9fa
-
then someone goes with js enabled to know where your form processing is and attacks that directly.
-
Outputting nested contents of page children/grandchildren
Soma replied to martinluff's topic in API & Templates
This is a nice technique that can be used, but isn't really using the cascading power of css when you need to redefine the different levels. In case of nested ul's it is easy to use inheritance if done right, no need to overwrite a lot anyway. Depends a lot what type of list you're trying to archive. -
I experience the same, session log files stay all the way the first login. I recognized once I downloaded site folder and was impressed by how many files there is. Is the any insight on this?
-
Would it be good to have multiple emails comma seperated possibility? EDIT: installed, tested, so far works as expected! thanks Ryan
-
Ryan, good to know, that was were I was coming from, but I wasn't sure if the log (sent from phone so haven't actually looked deeper into it nor tested) saves already date time, I wasn't sure. As for the pinging, yes I would also do that on the requested php side, no need to hand that over url get variable. I agree with having saved pages is thinking PW way, but in this scenario better have a different way of storing the data. How about something using file system with saved logfiles? Maybe not THE idea but just came to mind.
-
Ryan did it again. great addition! would it be to log date time too ?
-
Nice theme you got there!
-
Thanks for the feedback guys. Well, I just commited a new version with some improvements on contrast, color and the dropdown menu. Also sortable items and buttons are now in ui blueish and black on hover. @Apeisa, thanks for mention, though I think the dropdown is fast, I hate when moving over a dropdown menu and it instantly opens all menus. That's why I use hoverintent. But you can change the settings in the init in the top of main.js to suit your likes. I also like it to respond fast and changed the interval to 50ms. Though the sensitivity I'll let at 3. Pretty weak contrast??? You're joking right? Those are not really having a weak contrast by definition, this depends a lot on the screen and monitor settings. I looked at it at some differerent screens and didn't think it was too weak. Though I slightly increased the contrast in the last commit. @Pete thanks for the kind words. Though I don't really can image what's the problem with this 1 blueish pixel border... ? EDIT: Checked in latest version with some improvements on breadcrumbs, topnav, tabs and overall minor color changes.
-
Just fixed minor issues Ryan mentioned and commited to github. Thanks
-
Thanks Ryan. Glad you like it. This theme was designed with the intention to use it for our client projects. Yes the pulldowns were mentioned already in the forums. I did include a lightweight jquery plugin "droppy" to do the effect. It's a nice little script I used in several project and adapted some time ago with more options for different functions. I also combine it with the jquery hoverintent plugin to make it sensitive and not open when quickly moving mouse over the navigation. See my fork of the droppy plugin: https://github.com/somatonic/droppy Yeah the first was intentional, but I removed it. The asmselect, I don't know what exactly you meant, but I recognized a last minute change I did, it would display the dragged list item green font with blue background. I fixed that too. Yeah there's definately room for some features. Also remember the "image" type label I hacked the pagelist module for my moms gallery? It would definately help to be able to specify a icon per template, to make it more clear to the user what type of "page" this is. That would be welcome. While at it. I thought while designing this themes, there's some labeling of buttons like "save page" that needs to be reconsidered. The therm "page" as I know is meant more abstract, but that will definately confuse users, as the "page" he's editing is more like a object or image of a gallery... May just use things like "save". How are you thinking about this, as you're on the localisation of the admin? Will there be possibility to rename also the Admin Pages names? As they're not changeable atm. Also I was wondering why custom templates can't be renamed in PW?
-
there was the same problem already, may have a search in the forums... ;D http://processwire.com/talk/index.php/topic,33.0.html
-
Well I found the issue on another installation. The include path of the topnav somehow was different from the default admin template. I got : <ul id='topnav' class='nav droppy'> <?php include($config->urls->templatesAdmin . "topnav.inc"); ?> </ul> instead of <ul id='topnav' class='nav droppy'> <?php include($config->paths->templatesAdmin . "topnav.inc"); ?> </ul> Wonders how this doesn't cause an error on my local test server, but on the live server. Anyway it's fixed and checked in on github. Thanks for finding it.
-
Thanks guys, just fixed the search option form and submited on github. As for the error, sevarf2 I can't reproduce this. I see you put the templates-admin into the wire folder. Well. it's supposed to be in the site folder. Well I changed something in the topnav.inc to render the submenus, could possibly have missed something, anyone get the same error?
-
I'm working on a new smoth admin theme for ProcessWire2 kinda based on my DarkNight theme but for working at day . Teflon admin theme has pulldown menus, fixed header, fixed top submit button on pages. Download from github: https://github.com/s...admin-theme-pw2 Tested on Chrome,FF,Safari, IE. Latest screenshot:
-
Finally! Thanks Ryan, that was it right there. Ii knew it must be a bug. I tried something with setting width and height but no luck with JS. Now testing I found a bug, when I resize a image to let's say 200x150 and insert then open again it gets stretched to 934x150... But this is a nice feature having int input fields, the resize handle is barely visible anyway and kind wacky to use.
-
May deinstall all custom modules? While at it, this is hard to see from the admin modules page. which are custom and which permanent or system related... any chance to improve that a little?
-
ah so you got a multiple images field and adding a single one? try to make it an array: $cover= array($item->LargeImage->URL);
-
I assume you wan't this in the admin. (If front-end based profile pages , this could be quite different.) There's possibility to create templates and add a for example "client" role to view and edit pages with the template. Not quiet there but we'll get there.... Now create and add page reference field "editablepages" (from the example code) to the "user" system template to be able to select pages you want the user to edit exclusively. If you make it recursive (see below) you will only need to select the top parent page of where the user has his pages and be done, all child pages will be editable. To get this working, you need to create a module to hook into the editable method of Page class. Following is an example module code I created adapted from one of Ryan's example here in the forum. It checks recursively (remove foreach parent check to only have the single pages editable) up the parent of the current page if found a selected page the user has in his profile it's editable. This doesn't work with viewing. But not sure yet if this even possible. You could also consider creating custom admin page for only seeing the pages the user can edit. Depends on how fit you're with the system and php, this might help you getting started. I'm not sure there's more possibilities. But Ryan will surely be helpful too. see also this forum entry from where I got this far: http://processwire.com/talk/index.php/topic,258.0.html <?php class AccessPageEdit extends WireData implements Module{ public static function getModuleInfo() { return array( 'title' => 'Access Control Page Edit', 'summary' => 'Control who can edit what page. If installed, create a inputfieldtype of page to select from site tree and add it to user template. Select page(s) to be edited', 'version' => 001, 'permanent' => false, 'autoload' => true, 'singular' => true, ); } public function init() { if($this->user->hasRole("client")) $this->addHookAfter("Page::editable", $this, 'checkpermission'); if($this->user->hasRole("client")) $this->addHookAfter("Page::addable", $this, 'checkpermission'); //if($this->user->hasRole("client")) $this->addHookAfter("Page::viewable", $this, 'checkpermission'); } public function checkpermission(HookEvent $event) { // if it was already determined they don't have access, then abort if(!$event->return) return; $page = $event->object; $parents = $page->parents; // run check for parent pages and allow recursive inherit access foreach($parents as $p){ if($this->user->editablepages->has($p)) return true; } // then run check on selected single pages if(!$this->user->editablepages->has($page)) $event->return = false; } } ?>
-
and save mode? or can you provide more details and code what you're trying to do? or could it be that some images are JPG JPEG ? or something like this?