-
Posts
1,835 -
Joined
-
Last visited
-
Days Won
21
Everything posted by Nico Knoll
-
I guess that it started after I uploaded it to my server (first the erors later nothing). I'm using Chrome on OS X. But it's the same with FireFox and Safari... Oh, and I looked at the console and it returns first a status code 200 but with this answer: {"error":false,"message":"Page not saved (no changes)"}
-
I would like to have this feature, too. I guess WordPress is a good example how to make it. (I guess it's the most clicked button when I am using it )
-
Hi, how can I select "hidden" via API? My current code doesn't work: $home = $this->pages->get('/'); $page = new Page(); $page->parent = $home; $page->template = $this->templates->get('admin'); $page->name = 'storage'; $page->hidden = 'true'; $page->title = "Storage"; $page->process = $this; $page->sort = $home->numChildren; $page->save(); Greets, Nico
-
Thanks, Ryan, that's working!
-
Hi, I want to inject a page via API at the second child position of a page in my page tree. Is there a way to set a special position via $page? Greets, Nico
-
Yeah, I read your answer but I thought if I open this topic it's like an answer. I think that you shouldn't create a separate page for each picture (I mean I've got more than 2000 images and files so it would be kind of confusing). (By the way is there a way to chat with you like Facebook or Twitter?)
-
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
-
Hi, I just largely finished my first ProcessWire page. It's the one of my school At this time the Website doesn't exist on my school's server but on mine. So here's the link: http://schiller.nico-knoll.de/ I plan to integrate Oliver's language module later. But my biggest problem at this time is, that I don't like the current way how ProcessWire works with uploaded files e.g. images. There is no way to get a complete collection of all files. I only can add files to one site (and change the path on an other site to this). But I have to manage like 2000 pictures, so it would be great if there would be a better way to manage them (maybe I'll write a module for this). I would like to here your opinion to this site. Greets, Nico
-
Module: Languages (multi language content management)
Nico Knoll replied to Oliver's topic in Modules/Plugins
Oh, my fault. Didn't saw the "language" link at the top But if I try to open /de/ or /en/ I'm getting the 404error page. The childs are working. And second question: Is there a way to get a link to the transition (like "$page->url->en" or so). Greets, Nico -
Module: Languages (multi language content management)
Nico Knoll replied to Oliver's topic in Modules/Plugins
Yeah, it's working. But is there any connection between the original page and its translation so that I can jump between the translations or does it just duplicate the pagetree so that that's a full working page by itself? -
I guess it's since I moved my local project to an online server... I imported the whole database and copied all of the data. And I changed a bit in my .htaccess file not to get an Error 500. It looks like this right now: ErrorDocument 404 /index.php <Files favicon.ico> ErrorDocument 404 "The requested file favicon.ico was not found. </Files> <Files robots.txt> ErrorDocument 404 "The requested file robots.txt was not found. </Files> <FilesMatch "\.(inc|info|module|sh|sql)$|^(\..*)$"> Order allow,deny </FilesMatch> DirectoryIndex index.php index.html index.htm <IfModule mod_rewrite.c> RewriteEngine On SetEnv HTTP_MOD_REWRITE On RewriteRule "(^|/)\." - [F] RewriteCond %{REQUEST_URI} (^|/)\.htaccess$ [NC,OR] RewriteCond %{REQUEST_URI} (^|/)site/assets/(cache|logs|backups|sessions|config|install)($|/.*$) [OR] RewriteCond %{REQUEST_URI} (^|/)site/install($|/.*$) [OR] RewriteCond %{REQUEST_URI} (^|/)site/config\.php$ [OR] RewriteCond %{REQUEST_URI} (^|/)(wire|site)/templates-admin($|/|/.*\.(php|html?|tpl|inc))$ [OR] RewriteCond %{REQUEST_URI} (^|/)site/templates($|/|/.*\.(php|html?|tpl|inc))$ [OR] RewriteCond %{REQUEST_URI} (^|/)site/assets($|/|/.*\.php)$ [OR] RewriteCond %{REQUEST_URI} (^|/)wire/(core|modules)/.*\.(php|inc|tpl|module)$ [OR] RewriteCond %{REQUEST_URI} (^|/)site/modules/.*\.(php|inc|tpl|module)$ [OR] RewriteCond %{REQUEST_URI} (^|/)(COPYRIGHT|INSTALL|README|htaccess)\.txt$ [OR] RewriteCond %{REQUEST_URI} (^|/)site-default/ RewriteRule ^.*$ - [F,L] RewriteCond %{REQUEST_URI} "^/~?[-_.a-zA-Z0-9/]*$" RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !(favicon\.ico|robots\.txt) RewriteRule ^(.*)$ index.php?it=$1 [L,QSA] </IfModule>
-
Module: Languages (multi language content management)
Nico Knoll replied to Oliver's topic in Modules/Plugins
I added german... -
Module: Languages (multi language content management)
Nico Knoll replied to Oliver's topic in Modules/Plugins
The newest. (I deleted "basic-page", maybe that's the reason?) -
Module: Languages (multi language content management)
Nico Knoll replied to Oliver's topic in Modules/Plugins
Hi, if I'm trying to edit "Home English" I'm getting this error: Argument 1 passed to InputfieldWrapper::add() must be an instance of Inputfield, boolean given, called in /Applications/XAMPP/xamppfiles/htdocs/cms/extern/processwire/site/modules/ProcessLanguages.module on line 458 and defined (line 102 of /Applications/XAMPP/xamppfiles/htdocs/cms/extern/processwire/wire/core/InputfieldWrapper.php) This error message was shown because you are logged in as a Superuser. Error has been logged. -
Hi, I'm always getting an error if I'm save changes on a page with the field "upload_file" which has the type "file". The error says: destinationPath is empty or does not exist (upload_file) What does it mean and how can I resolve it? P.S.: Above the "choose file"-button is this text in red: "destinationPath is empty or does not exist" Greets, Nico
-
Well, I solved this with setlocale(LC_ALL, 'de_DE'); Thanks for your answers! Greets, Nico
-
Hmm, I changed the setting like Soma said but it doesn't have any influence on "$sanitizer". Is there may a way to change it for $sanitizer?
-
Hi, how can I use the function PW is using to convert titles to URLs in e.g. a module? (Like this: "Hällö" -> "hallo") Greets, Nico
-
Thanks, the first one worked for me
-
Hi, how do I get the six newest children of a page in my template? I thought the right code would be: $news = $pages->get('parent=/news/, sort=date, limit=6'); But it always returns more than six pages... Greets, Nico
-
First: Thanks for your great support!!! I will try it today or tomorrow and tell you if it's working Nico [EDIT] It's working! THANKS!!
-
Hi, I don't know if this is the right place for this wish but I think so. Well, my wish is to have a point on this site (maybe at the current position) where you can download modules and themes and upload your own and their upgrades. So it would be easier for Ryan, because he wouldn't have to collect each module, the community would have a better overview about as much as all of the modules for PW and maybe later Ryan could implement an auto update function for plugins which are in this collection. So for each plugin there could be an entry in the collection (with a download link, screenshots, a description,...) and an entry in his forum for problems or general questions of users who are using this module. Greets, Nico
-
OK, here's an example of my code. But first a short description: I exported this code out of Typo3 with an plugin as a .csv file (so there is no content only the pages theirselves). There are a lot of needless columns in it. I guess the most importants are "uid, pid, title, hidden" (uid = unique ID, pid = parent ID). And here's finally the code : "uid","pid","t3ver_oid","t3ver_id","t3ver_wsid","t3ver_label","t3ver_state","t3ver_stage","t3ver_count","t3ver_tstamp","t3ver_swapmode","t3_origuid","tstamp","sorting","deleted","perms_userid","perms_groupid","perms_user","perms_group","perms_everybody","editlock","crdate","cruser_id","title","doktype","TSconfig","storage_pid","is_siteroot","php_tree_stop","tx_impexp_origuid","url","hidden","starttime","endtime","urltype","shortcut","shortcut_mode","no_cache","fe_group","subtitle","layout","target","media","lastUpdated","keywords","cache_timeout","newUntil","description","no_search","SYS_LASTCHANGED","abstract","module","extendToSubpages","author","author_email","nav_title","nav_hide","content_from_pid","mount_pid","mount_pid_ol","alias","l18n_cfg","fe_login_mode","tx_rlmptmplselector_main_tmpl","tx_rlmptmplselector_ca_tmpl","t3ver_move_id" "10","1","0","0","0","","0","0","0","0","0","0","1161721085","2816","0","1","1","31","27","0","0","1159038030","1","Impressum","1","","0","0","0","10","","0","0","0","1","0","0","0","","und rechtliche Hinweise","0","","","0","","0","0","","0","1235477424","","","0","","","","0","0","0","0","impressum","0","0","layout_2col_left_vlines.html","0","0" "68","1","0","0","0","First draft version","0","0","0","0","0","0","1161721085","2560","0","1","1","31","27","0","0","1159038030","1","Sitemap","1","","0","0","0","68","","0","0","0","1","0","0","0","","","0","","","0","","0","0","","0","1234729230","","","0","","","","0","0","0","0","sitemap","0","0","layout_2col_left_vlines.html","0","0" "34","1","0","0","0","","0","0","0","0","0","0","1259098298","2304","0","1","1","31","27","0","0","1159038030","1","Logout alt","1","","2","0","0","34","","0","0","0","1","0","0","0","-2","","0","","","0","","0","0","","1","1259098298","","","0","","","","0","0","0","0","","0","0","layout_3col_vlines_v1.html","0","0" "26","1","0","0","0","","0","0","0","0","0","0","1259098321","2048","0","1","1","31","27","0","0","1159038030","1","Login alt","1","","2","0","0","26","","0","0","0","1","0","0","0","-1","","0","","","0","","0","0","","1","1259098321","","","0","","","","0","0","0","0","","0","0","layout_3col_vlines_v1.html","0","0" "37","34","0","0","0","","0","0","0","0","0","0","1161721085","1536","0","1","1","31","27","0","0","1159038030","1","Suche","1","","0","0","0","37","","0","0","0","1","0","0","0","","innerhalb dieser Website","0","","","0","","0","0","","1","1170148658","","","0","","","","0","0","0","0","suche","0","0","layout_2col_left_vlines.html","0","0" "115","34","0","0","0","","0","0","0","0","0","0","1172681574","250","0","1","1","31","27","0","0","1162201214","1","Schüler","1","","0","0","0","0","","0","0","0","1","0","0","0","","","0","","","0","","0","0","","0","1313429676","","","0","","","","0","0","0","0","","0","0","layout_2col_left_vlines.html","0","0" It would be great if there would be a way to import it right