-
Posts
10,902 -
Joined
-
Last visited
-
Days Won
349
Everything posted by adrian
-
Do you really need to modify CommentList.php ? What about the "OPTIONAL: Generating your own output" section on this page: https://processwire.com/api/fieldtypes/comments/ If you really do need to modify, take a look at this blog post: https://processwire.com/blog/posts/processwire-core-updates-2.5.14/
-
Hi @justb3a, Just noticed a bit of a critical bug. If you remove one of the "Add other text input fields" the field/column is not removed from the DB. This results in a fatal error and the images uploaded to the field are lost. You have to manually edit the DB table to remove the fields to get things working again. As a wishlist item, I'd love to see the ability to add select, radio, and checkbox fields as well as plain text
-
Just committed a small update that makes use of image-picker (http://rvera.github.io/image-picker/) for selecting the poster image which is much cleaner than the ugly radio buttons I had before! Thanks to @BernhardD and his TemplatePreviewImages module for the inspiration.
-
Content type of field to store Google Analytics code
adrian replied to biotech's topic in General Support
Please take a look at this old thread: https://processwire.com/talk/topic/552-i-get-the-404-page-when-editing-home-page/ Firstly try turning on debug mode, but also please check to see if your host is running Apache's modsecurity - seems like it might be the issue. Note in particular the last comment on that thread - maybe you should contact @jlahijani to see if he found a solution as he was also using a <script> tag. -
Why aren't all browsers (and Android/iOS apps) supporting SVG icons ? Looks like Firefox already does and Safari is heading that way: http://caniuse.com/#feat=link-icon-svg Maybe the others will follow and all this icon sizing mess can be a thing of the past! EDIT: Some discussion regarding SVG icons in chromium: https://code.google.com/p/chromium/issues/detail?id=294179
-
Content type of field to store Google Analytics code
adrian replied to biotech's topic in General Support
So to clarify, if you don't put any JS code in the texarea then the you see the proper edit page for your homepage? Maybe it's hard to tell now - I am assuming you can no longer edit the homepage at all to even remove the JS code? -
Content type of field to store Google Analytics code
adrian replied to biotech's topic in General Support
Do you mean Content Type: "Unknown" ? Are you using a regular textarea Inputfield type, or CkEditor. It works fine for me with a regular textarea. -
Copy pages (and children) from one site to another
adrian replied to manlio's topic in Getting Started
Hi manlio - I am sorry I haven't gotten back to your PM yet - work and life has been a little hectic this last week. I really hope I can have a good look at your PM and sort out your Migrator issues sometime in the next week. I hope that timeframe will be ok. Again, sorry for the delay! -
I don't have the option currently to exempt a particular language, but would be happy to add if that helps. But perhaps the better option would be to figure out a way to prevent the problems you are experiencing when greek is being renamed. Can you provide more details on exactly what is going wrong?
-
I am noticing that some editors are forgetting, or not seeing that they have to publish the items/pages in a PageTable fields. I think in many/most cases you would want all published automatically. Or perhaps it could be an option for the field - the dev can decide whether editors can choose to save unpublished if they want. Alternatively I think it would at least be helpful if there were publish and hide toggles (like the new main page tree action buttons) so it is easy to quickly publish all subpages rather than opening each one up. I would prefer the first option though. Anyone else think this would be useful?
- 1 reply
-
- 6
-
What a great comment!! I sometimes find myself apologizing for my PHP work also, but until someone can show me a system in a trendy/better language that is better than PW, it will always be my goto tool for web development. That doesn't mean I don't like playing with the new JS toys (node, meteor, angular, react) when the need arises, but PW makes everything so easy that I'd rather be here
-
Thanks Kongondo - the new custom PHP code option is awesome - I just swapped out my old hacked version for this and it's working brilliantly!
-
Most likely the image field is an array, not a single image - check that Details > Max Files Allowed is set to 1.
-
Copy pages (and children) from one site to another
adrian replied to manlio's topic in Getting Started
Can you give me a hint as to why it doesn't work with some of your websites? I know we had a PM thread in Jan of this year, but I never heard back from you. I would still like to help you figure out the problems you are having. -
Thanks Bernhard - your module looks great. I also put together something for this task myself. I just added it to my gists: https://gist.github.com/adrianbj/5dc1c00f1617b2639319 It allows you to do something like this in a field's description or notes text: [Click Here]({page.parent.url}) This will give you a "Click Here" link to the parent page. Of course you can also use "name", "title", and any other field from the current page, or it's parent, or parent above that. I haven't needed it yet, but I was thinking it might be nice to be able to do {page[xxxx].parent.title} so you can specify the ID of the page you want to reference. Maybe at some point I'll add that, or if anyone out there would make use of it, let me know and I'll add it sooner. While not as flexible as your module, it requires no setup so it really depends on what you need.
-
Hi @matjazp - thanks for the request. Please try the latest version which should do what you need. If no templates are selected, then the module will still search all templates as before so the changes won't affect existing users.
-
You can set the id like this: $p = new Page(); $p->template = "basic-page"; $p->parent = 1; $p->title = "Page Title"; $p->id = 4254; $p->of(false); $p->save();
-
Hi Steve, I am sorry, I haven't had time to work on Migrator for a while now. It is definitely not abandoned - I just need to find a good chunk of time to revisit a few things regarding Page fields and sort out remaining bugs. I will try to take a look at this sometime soonish. Regarding the last part of your question - Migrator currently creates new users/roles if the creator/modifier of the imported content was created by a user that doesn't exist on the new site. The problem of course is migrating the user's password - is this a requirement in your scenario? All the template settings etc are all handled completely by Migrator. I also have some aspirations to take Migrator a step further and allow it to connect directly to another site and sync changes, but if this happens it will be some time away and will likely be a commercial version of Migrator. I am not sure if that really helps you at the moment. I am away for the next few days and busy for the week or so after that, but might see if I can get a new version out before the end of the month - but no promises
-
New update to support random images within RTE textarea fields. You can specify whether to include images, and the positions that they might be placed in. You can reload the page several times and the images will change positions/alignment randomly. I would very much like to hear suggestions from anyone using this if they have any ideas for improvements - do you want more configuration options - eg size of the embedded images, captions, etc?
-
Sounds like it might be a problem with your host. Have you used them on other non-Processwire projects before and not had any issues? Not sure if it is an automated thing, or a permissions problem with the owner and access setup and someone is maliciously modifying it. Have a read of this to learn what the settings should be: https://processwire.com/docs/security/file-permissions/
-
Hi @laufi and welcome to PW. I think you'll be able to fix the problem by modifying the sessionFingerprint setting: This will show you the options, but remember that you shouldn't modify anything in the wire folder, so adding the option to your site/config.php file. https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/config.php#L184 0 or false will definitely work, but you may want to try another option if suitable.
-
One small thing: http://jump-inc.uk/book-now/ See the small height difference in the purple bar - Chrome OSX
-
I haven't read this thoroughly, so likely missing the point, but what about using the alternate template filename option from the Files tab for each template?
-
I was confused with this in my early days of PW too Have a read through this thread and the pages that are linked to throughout it: https://processwire.com/talk/topic/4094-publishunpublish-a-page-setting-required-to-edit-published-pages/