-
Posts
848 -
Joined
-
Last visited
-
Days Won
4
Everything posted by mr-fan
-
Thanks Soma...i thought it have to be htaccess settings but i'm not so familiar with htaccess...since the former used cms worked with access files for pages... Works great if i'm commenting out this option via .htaccess to get some responsible screenshots. <IfModule mod_headers.c> # prevent site from being loaded in an iframe on another site # you will need to remove this one if you want to allow external iframes ### Header always append X-Frame-Options SAMEORIGIN # to prevent cross site scripting (IE8+ proprietary) Header set X-XSS-Protection "1; mode=block" # prevent mime-based attacks via content sniffing (IE+Chrome) # Header set X-Content-Type-Options "nosniff" </IfModule> Thank you for saving my day....since i wanna show some new clients tomorrow some responsive screenshots...and i wann show only PW projects Best regards mr-fan
- 4 replies
-
- strange
- responsive
-
(and 2 more)
Tagged with:
-
Just some strange thing i've tested with PW. I've some experience with PW now, but one thing i found i don't have a clue where i've to search why....and i always wanna know WHY something happens... You all know online responsive website test services....like: http://ami.responsivedesign.is http://mattkersley.com/ http://responsivedesignchecker.com/ and so on.... but if i'm checking one of my websites build with PW there is gives me a blank screen...no screenshot there...so i have a closer look. first i switched browser...check - same result in ervery browser second i looked at other PW sites like http://processwire.com itself.....check no working too! third i picked some websites from the repository that build with pw.....check no working too! some examplelinks: http://responsivedesignchecker.com/processwire.com http://quirktools.com/screenfly/#u=http%3A//processwire.com&w=1024&h=600 http://responsivetest.net/#u=http://processwire.com|1024|768|1 http://responsivetest.net/#u=http://gs-altfraunhofen.de|1024|768|1 ....and so on So why is a PW website not working in any of such online testing tools? .htaccess? strange regards mr-fan
- 4 replies
-
- strange
- responsive
-
(and 2 more)
Tagged with:
-
related to the _init.php snippet you could use this while it has no affect in the frontend: may a solution could be to add this code from ryan here to set pages with specific template to hidden: $pages->addHook('saveReady', null, 'makePageHidden'); function makePageHidden(HookEvent $event) { $page = $event->arguments(0); if($page->template != 'category-site') return; // replace 'category-site' with your template name if(!$page->is(Page::statusHidden)) $page->addStatus(Page::statusHidden); } add this in your /site/templates/admin.php, after the opening <?php tag with this Pages::saveReady Hook it processes only before finishing saving a page...so just for new pages working for existing you should go to setup a API snippet with all needed pages and a foreach loop to edit all of the existing pages to setup up hidden status... With this function it is equal what a user set to status it would be always hidden after saving. regards mr-fan
-
So get the handy hands dirty and have a good read: http://processwire.com/docs/tutorials/ http://processwire.com/api/ some good posts: https://processwire.com/talk/topic/5913-new-to-pw-how-to-structure-your-site/ https://processwire.com/talk/topic/4173-grouped-forum-posts-links-articles-tutorials-code-snippets/ some videos: http://processwire.com/videos/ and may you start with the default profile on a local installation to leanr how to use processwire's api and template system... If you get familiar with the system you can build all "site" style that you want. If you get in trouble that are hard to explain in englisch - don't hesitate to write me a PM. regards mr-fan
-
@Jonathan great example for structuring such kind of content - thanks for that lession! i've it crosslinked to this topic: https://processwire.com/talk/topic/3579-tutorial-approaches-to-categorising-site-content/#entry35127 regards mr-fan
-
Crosslink to a interesting categorising post for products with extra options for pagefields: https://processwire.com/talk/topic/10306-product-catalog-with-a-twist/#entry97847 (i like to keep such really good examples organized together somehow...) regards mr-fan
-
Welcome to the Processwire forums! I would be glad to help you. Have you an example of your "yahoo style"? Basicly the frontend output is complete flexible with PW and you could change everything on this side...so yes any HTML/CSS Layout is possible! It would be good for helpers to know your skills - are you a little bit familiar with PHP, other programming languages, HTML/CSS/JS? Best regards mr-fan
-
More informations about errors, php environment...(memory, execution time....) ? No problems here with "big data" tested with 3000+ and about 15 fields per page. regards mr-fan
-
...ok same structure but that is not the problem we search a identifier of active and past courses - so what is unique? $page->id What id (s) we need? $assesments = $pages->get(id); $archive = $pages->get(id); Next step is your finding elements on this two pageojects so you can devide active and past courses... regards mr-fan
-
There are two versions of this kind of module. https://processwire.com/talk/topic/643-release-thumbnails/ and some fork with extended features that's named CroppableImages: https://processwire.com/talk/topic/8709-croppableimage/ Which module you running? PHP version?
- 43 replies
-
- ajax
- sys_get_temp_dir
- (and 4 more)
-
@gebeer You are completly right! Sorry for that post...it just was some irritation for me to read some points on this list...since they are not akzeptable and sounds weird. It's a common kind of organisational blindness, every System like PW, too can fall into such structures. It's a great luck that Ryan sensitive checks all benefits of a new feature and how it helps to make PW better. But you are completly right bashing is not good - and i wouldn't appear arrogant. Just was confused at the first deeper view of this list. Sorry mr-fan
-
wiki.processwire.com - simple news system tutorial
mr-fan replied to MarcU's topic in General Support
PW Version? Have you checked the [x] yes at the first setting? and i've checked again it should be possible without template file... Regards mr-fan -
wiki.processwire.com - simple news system tutorial
mr-fan replied to MarcU's topic in General Support
Oh sorry forgot - empty template file is missing....but you don't habe to redirect manual via session....just fast from the phone... edit: should really work without template file... -
We should have some sort of best comment of the week...you are nominated....
-
I've just found the Killer Wordpress Checklist... http://capsicummediaworks.com/killer-wordpress-checklist/ Beside it is funny to read points like these (with some comments compared to PW): development and launching checklist have some very general hints so the are in fact important but some special WP ones i'm getting some bad feelings... Change DB Table names (kidding?) Delete Sample Config File (what?) Remove Default Content (this i've done with the installation?) Make a Plugin List - few recommended Plugins <about 20 items list> (Hmm lets see i think i need my favorite 5 Helper modules to get started and watching for special needs) Implement Security (Is this weird my whole cms should be secure i need not to "implement" this..hmm) And at the end the two funniest points are for sure security and maintaince...some hand picked prevent directory access (PW default) use iThemes Security (Ahh right i've to implement security somehow...no need in PW) The most points are very general on Webdesign or building a blog...but some funny things are listed and it such "lists" are maybe a Marketing Tool if some designer have spare time we could setup a sleeker checklist for a "best practice" PW website? regards mr-fan
-
wiki.processwire.com - simple news system tutorial
mr-fan replied to MarcU's topic in General Support
Sorry this is built in on the template side: look at this screen ->templates->edit template without .php file and choose... and there is a module to redirect links, too: http://modules.processwire.com/modules/process-redirects/ and more complex version: http://modules.processwire.com/modules/process-jumplinks/ -
Pete you saved me the day....just implementing a prev next nav....great snippet...! would be good to collect here: https://processwire-recipes.com/ can i post it there if you don't have the time i will do? best regards mr-fan
- 7 replies
-
- pagination
- last
-
(and 3 more)
Tagged with:
-
should be put right there....
-
Buying modules now, just need your kind answer for this...
mr-fan replied to Socrate Taiser's topic in Modules/Plugins
....Just kidding - no problems here to answer your blue questions: 1. no demo mode there - it's very simple buy as much modules from ryan as you may need - or not need - but wanna support ryan's work on Processwire (for me i just bought lister pro and formbuilder to test and support PW - and on the next bigger project i get the ProFields) 2. With the current prices i don't think there is a need for a discount but i the recommend versions - so you can use them as often as you wish. The really great thing with PW is you can almost achieve everthing without this commercial modules, too - but with much more effort and work...and if you calculate your time you'll save a lot if you buy them - but as i wrote it is your free decision there is no "buy this otherwise you can achieve this..." thing here - Thanks to Ryan for this point! Best Regards mr-fan -
Just some thoughts - i've not used such code - but could not a simple textformatter change this stuff: // output relative url echo $img->url; // output absolute url echo $img->httpUrl; regards mr-fan
-
Buying modules now, just need your kind answer for this...
mr-fan replied to Socrate Taiser's topic in Modules/Plugins
...and You convert a wysiwyg editor into complicate Reading Sincere Welcome from me, too....but man it's really hard to read... -
since it is a Inputfield it should be possible to use it with the API on a own form -right? $field = $modules->get("InputfieldStarRating"); regards mr-fan
-
i'd take this line from the hello world module.....so i think it will do the job. ....i wouldn't name this a "real" module...one simple hook and some configurationfields but with PW fortunately it is so simple... But it is a good exercise to start with easy tasks....and if i've luck we get a backlink from browser-update.org for PW! just looked into github....and found https://github.com/browser-update/browser-update/commit/9a781c48f7931d473be3bfaab4a61d12c9288da3
-
In your case with different Parents would the template option work great like: 'selector' => 'template!=item-template|cat-template', // define custom PW selector, you may sanitize values from user input so all pages with this template are excluded - parent option from macrura would work,too - but you have to add every new parent (more cathegories...and so on). regards mr-fan
-
Cathegories...are simple by pagefields. (Even nice functions like "See also" could be just simple pagefield to select.) Easy example on a site for a diary like newssystem with use of URL segments....really great stuff for little functions like /archive/ or /2015/ or /my-cat/ just with different URL segements... Newspage: http://waldkindergarten-altfraunhofen.de/aktuelles/#start URL Segment for archive show all: http://waldkindergarten-altfraunhofen.de/aktuelles/archiv/#start URL Segment 2 for year: http://waldkindergarten-altfraunhofen.de/aktuelles/archiv/2015/#start or for cathegory name: http://waldkindergarten-altfraunhofen.de/aktuelles/archiv/ausfluege/#start every single item lives under /aktuelles/: http://waldkindergarten-altfraunhofen.de/aktuelles/unser-waldkater-2015-05-11/ (it get on creation a name + date combination) some codeexamples for URL Segments are here - this works with just a few lines of code so great, so easy, so cool...ähh sorry but in every second post i have to write how much i like PW!! https://processwire.com/talk/topic/9476-new-project-a-nice-growing-kindergarten/#entry91259 (attention - it's may not the best code but it works so far) some backend pics... I only have one single cat to choose since i use this in the isotope view to sort! best regards mr-fan