-
Posts
2,769 -
Joined
-
Last visited
-
Days Won
31
Everything posted by Martijn Geerts
-
look at Blank Profile.
-
lol, pointerpointer.com
-
install ProcessWire & pre select a profile
Martijn Geerts replied to Martijn Geerts's topic in Wishlist & Roadmap
Pete, I like the idea of how you say it could work on the browser screen. All that advanced stuff heavily depends on how the server is configured etc. Gonna be brain shaking to make it work for most installs. (if even possible I don't know) -
Some modules are so valuable that I think they could go to the core tho shrink your 100 modules list. I hope eventually that your Modules Manager would merge in the Modules section in PW. Selector Test, would be a great one to be delivered with the core (uninstalled by default) Admin Hot Keys ( only realy works if you use it all the time ) Page Delete ( un-installed by default ) That would be 4 modules less
-
Just a wild thought, It's maybe convenient when the ProcessWire gives you the opportunity to select a profile before installing PW. After the install is finished, ProcessWire & the profile are ready to use.
-
user role added as class to the body of admin
Martijn Geerts replied to Martijn Geerts's topic in Wishlist & Roadmap
For me it's just to the form-builder and custom settings pages that I want to hide just for normal editors. The Way you describe it now is the way I do it now. The problem with me is that I update to often & sometimes forget or just overwrite previously set things I changed. -
Damn Luis, That's f#cked up ! Feel sorry for you... Scheiße !!!
-
Jos, What I see there is impressive, what I heard on your site wonderfull. Nice to know someones background. I started web-developing as professional 1,5 year ago. The 11 years before I was stage builder. Loved the job, but I think you can't do that all your live. Then a company called me & asked me if I would join their team. I did
-
Sometimes I wish to visually hide certain aspects of the admin when the logged-in user is not super user. When <body class='the-current-user-role'> is added, it's easy to just "display: none" for some elements you want to hide.
-
before & after in one vid: combined
-
Templates structure / functions - Best practices
Martijn Geerts replied to Sanyaissues's topic in General Support
Take a look at the delegate-profile. It's a very basic setup, that has a delegate way of rendering your teplates. (Btw, there's no best way i think ) -
An addition to the RCDMap.js to contol the zoom level if there's only one marker ( ryan script needs at least 2 markers to set the zoom level, wich is nice if you've more then one marker ) Just replace the fitToMarkers at the bottom of the script & it wil work for 1 marker with zoom level 10, or the zoom level depending on multiple markers. fitToMarkers: function() { if(RCDMap.numMarkers == 1 ) { RCDMap.map.setZoom(10); } else { var bounds = new google.maps.LatLngBounds(); for(var i = 0; i < RCDMap.numMarkers; i++) { var latLng = RCDMap.markers[i].position; bounds.extend(latLng); } RCDMap.map.fitBounds(bounds); } }
-
See a lot of changes already in 2.3. I'll love it. So far, I don't see issues. Sites i'm building now start with the 2.3 branche, cause I have lots of trust in all the work you've done. And I thank Soma, Nik, Teppo and all the others who contribute to make such a great product. Hope there's wil be a list of all changes there are when 2.3 is final.
-
Very interesting Dave, can learn a lot from it. Thank you Dave.
-
nice one antii, thank you
-
01. If you go to templates and then urls, Should page URLs end with a slash? Set the radio button to no. 02. Then go to your page with the CSS template, go to the settings tab and let the name of the page end with .css. This way you could create pages with names linke: styles.css or default.css
-
Must be some issue on a the local install of ProcessWire on my Laptop. Tried to duplicate it on my work machine and see no problems over here. Will check again & reinstall the dev branche on my local machine. I'll let you know if it's just me or there's some issue.
-
I've updated the first post. Changed the big switch as ryan mentioned. For pete & all others gave a better description & attached some screen shots.
-
Cool !
-
Looks like: Children are sorted by <select><option>Manual drag'n'drop</option></select> is broken in 2.2.10 & 2.2.11. The manual drag'n'drop setting won't be saved in the DB. Setting sort directly to the table pages_sortfields (<option value="sort">Manual drag-n-drop</option>) in the DB doesn't work eighter. It occurs on the Page edit and on the template settings.
-
Tnx ryan for lookin at it. Will implement the improvement. @pete, wil tell more about it later. Have not much time these days.
-
delegate profile Basically the home & basic-page template have the same fields. Home » home template Basic-Page » basic-page template Search » search template Widgets » widgets template » status:hidden widget-one, Left, Left widget » widget-one template widget-two, Right, Right widget » widget-two template [*]404 Page Not Found » basic page template » status:hidden [*]Admin Settings » settings template » status:hidden » no file » access:guest view pages Position left or right » settings template » status:hidden » no file » access:guest view pages Left setting template » no file Right setting template » no file [*]Trash defaults.inc The home & basic-page templates include ./include/defaults.inc on top and on the bottom ./includes/main-view.inc. The defaults.inc is the file for common defaults, scripts & variables. Also there's living for commonly used functions & the 12 column classname generate thingy. the 12 column grid On the home & basic-page pages you can check to disable the left & right widgets. If there are no left-widgets to render, then there's no use to render the column at all on the page. The content column then receives the width of the left-column. There are in total 12 columns, say the right column has a width of 3 and the left has a width of 4, then the leftover for the content column is 5. So if there are no left widgets, then the content colum is 9. Those numbers are set to their written equals or set to FALSE. $column['one'] could be FALSE or one, two, three, four, five, etc. $column['two'] could be FALSE or one, two, three, four, five, etc. $column['three'] could be FALSE or one, two, three, four, five, etc. main-view.inc The main-view.inc is the main markup file. In this file I'll check if "template-name.css" & "template-name.js" exists and the append them to the syles & scripts array before I output them with a foreach loop in the page head. This way I know that basic-page.css for example is always the last file & can overwrite previously set styles. The grid uses the same source ordering approach as the zurb foundation grid uses. For mobile it's often a pre that the content column is showed first but on desktop there's plenty space to have a left column first. Thereby I think that Google loves content higher in the source more then if that content is a latecomer. widgets The widgets are just chunks of HTML without <head>, <body> etc. So they can be rendered with the build in Processwire render() function. Nothin' special there. download delegate profile
-
Before PW can be installed you have to do some stuff. I often forget 1 or 2 steps. If you run the installer then PW wil tell you exactly what you've done wrong. I love the way you explain it to the developer what he has to do to fix it. ps You can't fix my stupidity :-
-
Made me smile the first i noticed. Btw love the error handling in the installer of 2.3.
-
A combination with Nico's "Marine admin theme" ( how the forms are done ) this theme & some Teflon magic would make the "perfect" theme.