-
Posts
71 -
Joined
-
Last visited
Everything posted by mrjasongorman
-
Ah i see :/ Taking the version control module @teppo created, which adds multiple versions of fields, it may not be too hard to tweak this to create a "Draft" stage. Would you guys agree?? it may not be that simple, but in theory it would work?
- 5 replies
-
- permissions
- publish
-
(and 3 more)
Tagged with:
-
Thanks for responding so quick guys, I've found this discussion https://processwire.com/talk/topic/954-hide-publish-button/ but not sure it's exactly the same. So it is possible to store the "page" (updated fields) in a state that's not live? I'm not too clued up with exactly how processwire works, if i say anything stupid i apologise
- 5 replies
-
- permissions
- publish
-
(and 3 more)
Tagged with:
-
Is there a way to lock down (via role) the ability to update / publish a page live? My client needs some people to be able to edit a page, but the page changes must be reviewed by another member of staff who have access to push the update live. Is this possible? Thanks
- 5 replies
-
- permissions
- publish
-
(and 3 more)
Tagged with:
-
A slight variation, if you want to to randomly sort images on a page, lets say for a slider you can do this: $slider = $page->images->shuffle(); Just used it on a project, works perfect.
-
Awesome, thanks guys for replying so quick! I'll look into these.
-
I have a friend who uses Silverstripe, and he was telling me about the Data Objects and the ORM it uses, for things like "has many", "one to one", "one to many" relations etc. Maybe i'm not thinking about things correctly, but in the Processwire world, would a Page essentially be a data object? Just want to get my head around how to think about structuring a web application in Processwire. I'm familiar with traditional MVC (rails, code igniter) based structures. The API may already enable this kind of functionality, but i was wondering if not, would Processwire ever get an ORM? or can an ORM be bolted onto Processwire? If anyone could help me figure this out that'd be great. Thanks
-
I have a shopping website to create using PW, there's a great shopping module available, but i was wondering does it implement abandoned shopping cart emails? If not, would anyone have any tips as to how i could add this functionality? Thanks
-
Perfect, Thanks for the speedy responses!
-
I'm wondering is it possible to have a custom page within the admin area? For example i have a table in my database that's very specific in it's structure, so doesn't fit with Processwire's db structure. I'd like to create a module that adds another area to the admin backend, that an admin can then click on (similar to the pages, modules, setup tabs) and then shows them a custom area for editing X or whatever. Any help would be great. Thanks
-
To be honest ProcessWire is the first system i've come across where requests have to be routed specifically to a GET param, but i guess it's just a code design decision. It does bring up some issues though with using PHP 5.4's local -S test server.
-
Should ProcessWire support IIS out of the box?
mrjasongorman replied to Joss's topic in General Support
Ok, i can confirm that ProcessWire does work on NGINX and HHVM (no traditional caching being used atm), normal page load times are around 1.5 seconds according to Chromes network inspector. Setup is as follows: install NGINX as normal, and HHVM from hhvm.com I've edited the /etc/hhvm/server.ini file to make HHVM run on port 9001 so i can run it along side PHP-FPM on port 9000 HHVM will create a hhvm.conf file in your NGINX directory. edit this conf to point hhvm's relevant port number. location ~ \.(hh|php)$ { fastcgi_keep_conn on; fastcgi_pass 127.0.0.1:9001; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } Then in your NGINX sites-available edit the file to route URLS to ?it= location / { try_files $uri $uri/ /index.php?it=$uri&$args; } Then include the hhvm.conf to handle the PHP processing. include hhvm.conf; Restart both HHVM and NGINX and it should be running just fine, with the option to switch back to PHP-FPM if needed. Hope this helps, setup seems to be pretty quick! -
This might sound like i'm stupid, but bare in mind i'm 80% front end dev. Now I know PW works on hooks, but is it possible to use MVC structure when building plugins?? In a way i'm just curious as to the general architecture of PW and what's possible. ( in the sense of can i grab some MVC built functionality elsewhere and plug it into ProcessWire? ) Any help getting my head around this would be great
-
Should ProcessWire support IIS out of the box?
mrjasongorman replied to Joss's topic in General Support
Hey guys, not specifically with HHVM, but i have wordpress running fine on HHVM, so i guess processwire should be ok, nice link Teppo! -
This rewrite should work for IIS <configuration> <system.webServer> <rewrite> <rules> <rule name="CLEAN URLS" stopProcessing="true"> <match url="^(.*)$" ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/> </conditions> <action type="Rewrite" url="index.php?it={R:1}" appendQueryString="true" /> </rule> </rules> </rewrite> </system.webServer> </configuration>
-
Should ProcessWire support IIS out of the box?
mrjasongorman replied to Joss's topic in General Support
As for IIS, many larger companies do ask for it, especially with their IT teams being "Microsoft Certified". Thankfully, newer versions of IIS are a lot more friendly with websites not built on ASP.NET. Personally i'd prefer to use NGINX with HHVM (php engine created by Facebook), as performance is insane. -
Should ProcessWire support IIS out of the box?
mrjasongorman replied to Joss's topic in General Support
I've worked with IIS and NGINX using Processwire, we have sites running on both just fine. http://dsq.uk (NGINX) and http://globalstandard.cips.org (IIS) Same process for both really, install MYSQL, and some form of PHP engine (PHP-FPM or HHVM), then get the rewrite to route urls to yourdomain.com/?it=$request_uri You can install PHP5 and MYSQL using the IIS application installer pretty easy. Hope this helps -
I'm having a problem with the Web Service API. if i use a browser to hit the url http://localhost:8888/api/?id=1437 for example, it returns fine, with 1 match in the matches array. However if i use CURL or hit the url from within PHP it returns but the matches array is empty. Any help would be great. Thanks