-
Posts
7,479 -
Joined
-
Last visited
-
Days Won
146
Everything posted by kongondo
-
OK, I see. Even though one can also set the width of the repeater itself using the method Setup->Fields->Input.., that will affect all of that repeater's instances, so, will not achieve what you want...
-
Volume is a brilliant addition Soma, thanks!
-
You mean something like this? Those are 3 fields within a repeater given individual widths, in this case 30%, 35% and 35%...the rest PW does automatically. They could as well have been 60%, 40%, 100%. In this case, the former two would be lined up side by side and the latter drop down to its own row... If this is what you want: When editing the repeater field, under Details, where you add fields to a repeater, hover your mouse over the field name, click on the arrow that appears to the right of the field name, a modal will open up and set your width there..Fields given custom widths always have those widths displayed on the far right side of the field name when you view Templates->Basics Edited for clarity
-
About Ryan and ProcessWire - an interview with Ryan Cramer
kongondo replied to einsteinsboi's topic in Pub
Thanks for the interview Mary! -
+1
-
I'm liking this, thanks! Am not crazy about the "hijack" name though
-
Yes, we are going round in circles here I said this in my post above, about sorting repeater items on a page by page basis
-
Hi Kyle, Thanks for this. Just had a quick read, very well written and laid out, thanks.
-
Soma, isn't that what I just said above hehe.
-
Aah. OK. Nice catch Adrian.. @Diogo...so the latest commit is version 1.05 then, no?
-
Adrian, What do you mean by just below "Access". Is your new custom admin page appearing as a child of "Access" or as direct child of "Admin"?
-
Sorry. I thought you meant changing the order of repeater fields within a page.... Repeaters are pages as well (check under Admin if unsure about this). I have just checked and I can manually change the order of repeater pages via PW drag-and-drop (move). They stick to their positions in the tree. However, for some reason, the order is not being respected when outputting the repeaters, even when I specify sort=sort in my selector. I must be doing something weird (or need right settings in my template) since other sort options are working, e.g. sort=title. Don't have time to test right now but you can try and see how it goes.. Edit: strike through...
-
Not sure what you mean. I thought this was already possible via drag and drop on a page by page basis (pages with repeater fields..Works for me..
-
Hi Kal, I don't know how big your massive database is but this topic may be of interest: http://processwire.com/talk/topic/3987-cmscritic-development-case-study/ I don't think the database was massive but Ryan explains how he imported WordPress db into PW. There are nice example scripts there. IMHO, I am no db expert but I don't think the question about importation is the crucial issue here. I think, rather, it is about replicating and maintaining the data relations in your massive db, making decisions on how best to achieve this, etc. But am sure you know this . You'll get a better answer from the others.
-
Hi pnikosis, Welcome to PW and to the forums! Yes, PW does give that Eureka! feeling I'm heading out so will answer your questions briefly. Others will chip in am sure. These topics might be helpful http://processwire.com/talk/topic/1684-reading-and-displaying-data-from-a-custom-table/ http://processwire.com/talk/topic/2242-interact-with-external-database-mysql/ http://processwire.com/talk/topic/669-using-a-secondary-database/ ProcessWire has its own database class that you can use if you wanted to. You will see (and will hear) that if at all possible, move over the data in the external database to PW as pages. However, if that can't be done, then of course, you can use an external db with db class or direct SQL queries. BTW, internally, near future versions of PW will use PDO.
-
Yes, it should output at least the page id(s). No errors? Of course you have to echo it out first Btw, I thought there was something in the docs about page reference field types? I can't find it now. Or was it a video? Other questions... is that a single or multiple page select? If the latter, it returns a page array hence needs looping through.
-
Drag and drop page sorting with Blog Profile not working
kongondo replied to bbb's topic in General Support
Not sure about that one. Are you on a local server or production(remote)? There was a time on WAMP where PHP MySQL library version (Client API version) differed from MySQL server version....You can check the PHP MySQL library version using phpinfo..Am not sure whether that would be an issue in this case though...Let's here what others have to say -
Glad you sorted it ...for completeness, I added a few more examples to my post above
-
Kyle, I pointed you to Soma's Gist that has multiple examples. Am I missing something here? Have a look at these... https://gist.github.com/somatonic/5236008#file-form-php-L88 https://gist.github.com/somatonic/5233338 (scroll all the way down to the next file as well - https://gist.github.com/somatonic/5233338#file-form-upload-php-L30) Edit: More links: http://processwire.com/talk/topic/2597-multiple-image-bug-when-using-api-resolved/ http://processwire.com/talk/topic/1530-setting-image-description-with-multiple-image-upload/ http://processwire.com/talk/topic/3105-create-pages-with-file-upload-field-via-api/page-2 http://processwire.com/talk/topic/3134-basic-image-file-upload/ http://processwire.com/talk/topic/2217-user-generated-content-with-images/ Google search works better than the Forum search
-
Drag and drop page sorting with Blog Profile not working
kongondo replied to bbb's topic in General Support
So, seems this has nothing to do with the blog profile since all pages not behaving as expected? Next suspect is MySQL. If you got ver. 5.0.5.1, that's the culprit.. -
@kyle... An example right of the docs to give you an idea..See line 9; it shows an example of adding 1 image. For several, you will want to foreach...there are several posts about this in the forums. Can't find them atm; you might want to search if you are still stuck $skyscraper = new Page(); $skyscraper->template = $templates->get("skyscraper"); $skyscraper->parent = $pages->get("/cities/atlanta/"); $skyscraper->title = "W-Hotel Tower"; $skyscraper->height = 400; $skyscraper->year = 2009; $skyscraper->body = "This is a nice hotel and it has a helicopter landing pad on top of it."; $skyscraper->save(); $skyscraper->images->add("http://starwoodhotels.com/w-atlanta.jpg"); $skyscraper->save();
-
Hi, Please explain what this FieldtypeFieldsetOpen::fieldsetCloseIdentifier; does. Thanks.
-
Below could be of interest: http://processwire.com/talk/topic/3105-create-pages-with-file-upload-field-via-api/ https://gist.github.com/somatonic - Soma's Gist (or is it gem ) has example upload scripts I'm in a rush.... but hope the above are helpful..
-
images uploaded via script not showing up in admin
kongondo replied to anowitz's topic in API & Templates
This works as well, FYI. $page->of(false); $page->save();