-
Posts
4,632 -
Joined
-
Last visited
-
Days Won
55
Everything posted by apeisa
-
TinyMCE content image disappears when editing existing image link
apeisa replied to apeisa's topic in General Support
Ryan: thanks for the fix. The latter issue must be because I have disabled width and height from allowed img attributes (to make images responsive). I might need to take an another route here (removing those dimensions on page load). -
Great stuff, thanks Ryan!
-
That was bug on my side, I didn't check that publish_until actually has a value. Fixed and send new pull request for you.
-
On the latest version of PW if you have image link on your TinyMCE field, you choose that imagelink and edit link, after clicking insert link the image and the link disappears. Not sure if this is the case with older installation. Not directly related, but also in TinyMCE: if you edit the image, it loses dimensions and goes full size.
-
Currently datetime can only be used for dates which has unix timestamp 0 or above. I noticed this when tried to use datetime field as birthday-field. I guess this would be pretty easy fix to allow pre-1970 dates also? Using signed integer field on database and allow negative values to be saved.
-
Thanks Jasper. It was nice coding, since you had clean and well commented code. About removing the foreach: I don't think I changed any functionality (at least not on purpose). There is still 2 foreach loops, but there were 4 before my commit. You had foreach where you removed certain items from PageArray, and after that another foreach where you published/unpublished those pages. Don't know if that has any real performance advantage, but it makes code shorter. On page save I only check if: a) You have publish_from > publish_until => don't publish, dates don't make any sense b) publish_from > current time => don't publish, even if I try to publish c) publish_until < current time => don't publish, even if I try to publish
-
[SOLVED] Using $pages->find in a module's function
apeisa replied to formmailer's topic in General Support
-
Jasper, I just send you a pull request for this module. I added few minor features: Checks publish dates right after saving, and keeps page unpublished if required. Made module configurable to choose cron interval Simplified the code little bit (took 2 unnecessary foreach loops out). I had earlier done this kind of stuff on selector level, but this is much nicer - shows scheduled pages as unpublished on admin pagetree also.
-
Michael: I have made same mistake, actually many times I guess it is some php setting that is causing this... interesting to see. I just send my site profile for Ryan to examine. If it runs fine on his environment, then this is definitely an environment issue.
-
Michael, I am sure that your post will be helpful. It feels like environment issue of some kind, since we are running php 5.3+ Ps: 5.2.17 > 5.2.4
-
I actually have had similar need few times. There is a module for it (maintenance mode: http://processwire.com/talk/topic/382-module-maintenance-mode/) which you can use. I have usually just checked on my templates that if user is not logged in, then display some message or redirect somewhere. But I am not sure why guest view permission is required on home template? Is there some technical requirement for that Ryan?
-
Default is kind of mixed Finnish/English, body for Swedish is just for test. I have tried all kinds of titles I have tried to make other fields also (title field, text, textarea without tinyMCE etc). I first created them just duplicating fields (Advanced -> duplicate) and then renamed the summary_1 to summary_se. Then I tried without duplicating, just creating new fields (thought that maybe duplicating is causing the issues - but nope). Also might be worth mentioning, that when I started, I didn't had the LanguageFields installed. But I installed it and created those fields again, but still no luck to get it working.
-
Nope, I still cannot get it working. Not sure what I am doing wrong. Just to make sure it isn't something very obvious that I do wrong, I have attached several screenshots here: Modules Languages Fields Template Edit page If there isn't anything wrong with my settings, I am happy to give you superuser access to this site if you want to check it out.
-
Currently there is no such a feature, but I agree that it would be a useful feature to have. It shouldn't be too difficult module to build. Maybe a fieldtype that just shows all relations for that page and where they are defined.
-
I cannot get language-alternate fields working. I have tried to use title_se, body_se and summary_se. I have one additional language ("se") added, which contains zero translations. I need to have all my news in two languages and wanted to use language-alternate fields for this (like to have that separate languages in own tab). I have had zero luck to get pw recognize my alternate fields. I watched the video (http://processwire.com/api/multi-language-support/multi-language-fields/) several times, and I cannot figure out what I am missing. I have added those fields to template, added some content etc... but no luck. I don't get the small label above the field, nor does the content change with language. I have tried this on two different sites.
-
PawelGIX: I merged your pull request. It works great. Others: updating is little "nasty", since you need to put your thumb-config to the field settings. Not sure how this is best done in live site.
-
Thanks. I understand the problem now. That link will turn into this selector later on: $img = wire('pages')->get(1002)->images_repeater1122->get("p1000242.jpg"); Problem is, that the page 1002 doesn't have the field images_repeater1122, but the underlying repeater page has that. Not sure what would be the best fix, but it doesn't feel like very difficult to solve.
-
Thanks Soma. Can you post the link href that produces that error?
-
I think it is totally fine to report bugs here also, but after they are confirmed someone should add the bug to github also. I know Ryan has done this before, reported an issue with link to the discussion. I found it little bit rude what is with many projects, that someone comes to a forum, posts a possible bug and all he/she gets as a reward is "If you think it is a bug, then post an issue to whatever system we are using. But not here." As pw grows in popularity, having good conventions for this kind of stuff will be important. I think I have had pretty similar way like what wes described: if I am sure that it is an issue, then I post it directly to github. But if it is something that might be my misunderstanding or something local - I post it here.
-
Haven't played with repeater yet, but will test this right after when I found time.
-
I think module info says it's pretty clearly:
-
Well, that is actually pretty much what I was looking for - I had already forgotten that gem... Of course it would be great to have it as read only web service (with or without authentication - with authentication it could use PW access management also to decide what content should be available).
-
Ryan, what I had in mind was other way around. Like install module, set which content (templates, parents etc) should be available through API and then you could do this (without creating any templates etc): These are more or less pseudo-code: GET /api/news/ GET /api/events/limit-10/ POST /api/fetch/ (and post with variables that build your selector) etc... Sure, it won't require much more than one template, which transforms POST/GET request to PW api selectores, validates those and then return JSON.
-
I have seen PUT and DELETE used few times and at least Wufoo uses them: http://www.wufoo.com...pi/v3/webhooks/ Also interesting discussion on Stackoverflow: http://stackoverflow...delete-post-get. I have never used them on API:s that I have build... but now that I think it my API:s have always been read only. I'm not sure but wouldn't module doing automatic REST api for your PW application be pretty nice? At least for read access? Granted, that is pretty quick to custom build, but it would be great to have something as streamlined as PW Selector API on REST too EDIT: Something like http://couchdb.apache.org/docs/intro.html has (RESTful JSON API)
-
Template editor fieldset indentation and checkbox columns
apeisa replied to ryan's topic in News & Announcements
Thanks Ryan, nice addition. I really like all the small details you have added lately (on top of the big new features of course)!