-
Posts
2,007 -
Joined
-
Last visited
-
Days Won
21
Everything posted by dragan
-
not all pages showing up using Page Autocomplete
dragan replied to dragan's topic in General Support
Thanks for all the suggestions. GreenShot didn't work (captured only closed dropdown, not the open state). PicPick works great Back to the original question: Here's what I mean... If I choose the option shown in single.png, the settings panel never shows up. If I choose the option shown in multiple.png, everything works as expected. -
Do you have any example URLs? Do you allow images inside WYSIWYG fields? Did you do any tests with desktop image-processing software (e.g. Photoshop vs. PW)? re: "setting in the module": Are you talking about a specific module? Why not post in that specific forum thread?
-
not all pages showing up using Page Autocomplete
dragan replied to dragan's topic in General Support
I know. But if you choose the first page autocomplete in the dropdown + save, operator settings are not shown. (grumble... does anyone know how to create a screenshot of an open select menu?) -
not all pages showing up using Page Autocomplete
dragan replied to dragan's topic in General Support
Alright. If I choose multiple, I get this settings panel as well. Why doesn't it appear if I choose single page? o_O -
not all pages showing up using Page Autocomplete
dragan replied to dragan's topic in General Support
Wow. I don't even see such a section. I quickly switched to type select, and then I have only one text-input, but I don't see all these search operators. Or "fields to query for autocomplete" PW 3.0.81, btw. -
What could be the reasons why not all pages appear in my page referefence field with page autocomplete? I have a dozen pages that should appear, with a 4-letter string that never show up. My selector should be fine: parent=1041, template=project, id!=id, sort=vertec, include=all Where does it actually look for the suggestions? only default page-title? I tried with title and several other fields, also custom variations for the label, e.g. {vertec}, {title}, {client_name} {year} Q1: In which fields does PW look for autosuggestions? only title? Can it be configurable to look also elsewhere (let's say 3 text fields) Q2: Does my custom labeling actually change anything in the behavior of autosuggest? (I guess not) In my case, I have over 1000 pages under one parent. Using the other option "page-selector" is not a real option (paginate several times...)
-
Just click on "add new image", and paste the URL.
-
hmm, if you mean "moving" = moving image from image field A to B (and deleting the image from the source field A), I wouldn't know. But if you mean "moving" = duplicating an image from image field A to B (leaving the source image in source field A), then simply right-clicking on the source image, copy the image URL, and adding it that way would work. (at least with a really quick test on Chrome / Win) Not sure what the big picture in your scenario really is though...
-
Same here. Also, I like to minify + concat everything and deliver just one css and one js file. (AIOM is handy for that, or you can use any Grunt/Gulp task for that) But when I'm in the early stages of setting up a site / app, or just want to play around with different libraries, I usually load everything from CDNs. Also, when it comes to upgrading frontend assets, I don't monitor every new release and run for the latest version. Priority number one is stability. Only when there's a good reason (security bugfixes or major new features that I know I will use), I upgrade JS stuff.
-
Perhaps you can use this brandnew site profile? https://processwire.com/talk/topic/17926-rest-api-site-profile/
-
Admin panel showing Error 500 Internal Server Error with no logs
dragan replied to desbest's topic in Getting Started
Did you google? The web seems to be full of similar questions, e.g. https://serverfault.com/questions/677181/open-litespeed-permission-problems -
Admin panel showing Error 500 Internal Server Error with no logs
dragan replied to desbest's topic in Getting Started
Try to refresh modules cache. Also, you could try to remove everything in the assets/cache folder. -
How to add only one button to custom module that uses lister
dragan replied to Federico's topic in General Support
Can't you just configure your Lister with Disable "add new" page buttons? or set display: none on #ProcessListerResults + a button -
What are the methods to sort/filter $pages query in front end?
dragan replied to Vigilante's topic in General Support
Right. That would be Datatables and Ion.RangeSliders. -
What are the methods to sort/filter $pages query in front end?
dragan replied to Vigilante's topic in General Support
Well, today you'd use lazy-loading techniques (load 20 items on load, and then 20 more with "show more" etc.), therefore eliminating the need for classic pagination, or show the current page-set in the URL. With endless scrolling and pagination, you could try something like this: https://elkfox.github.io/Ajaxify/ Ajaxination - Normal pagination style but load the page without reloading, uses push states. -
Client request: images inside "body" field - options and suggestions?
dragan replied to OLSA's topic in General Support
wow... never saw that before -
Client request: images inside "body" field - options and suggestions?
dragan replied to OLSA's topic in General Support
I just made a test: opened an image on the web, right-clicked and selected "copy", then pasted the image into a CKEditor field with CTRL-V (Google Chrome, Windows10). This works (don't know if this works across all browsers and OS out there). Of course, the disadvantage is that such images are not automagically saved to the images PW field. And only for images that are already on the web somewhere. -
Thanks once more! Will try it out tomorrow. I see, Christmas is coming early this year Can you pls explain why this line is necessary? if($template_field->type == 'hidden') {
-
I think so. At least in my setup: I use a generic "overview" template all over the place, that only acts as parent page (to group / store children). They're not even used to show anything in the frontend. Of course I know I could create a special template just for this use case, and have the in-built control with "only allowed templates for children". but afaik, there is no way I can restrict children templates from the page-tree, only on a per-template-basis. Well, unless there's a module that allows this...
-
Users are pages. I guess the password is simply a required field. So, when you create a user via API, assign a password too.
-
I have a question though: I have a template override for the title field in place. This works, but only in page-edit mode. i.e. I see my label + description when in page-edit view. But on this first "add new page" screen I only see the default "Title" label, and no description. Can I somehow force PW to use my template override on this screen? Or is it necessary for PW to first save the page, to apply this setting? (makes sense) Can I add two lines to the above code and "inject" my title-label & description? Edit: OMG, I use PW now what? since 5 years, or more? I should know better by now that it's as easy as this: $title_field = $form->getChildByName('title'); $title_field->label = 'my custom label'; $title_field->description = 'my custom description / help-text / instructions / examples'; $form->insertAfter($f, $title_field); sorry for even asking...
-
Works like a charm. Thank you!
-
Thanks a lot! Will try it out asap. Is the above code meant to be placed in site/ready.php, or do I have to create my own module for this?
-
http://zueblin.ch/ Swiss real estate company (Soma) https://www.villasofdistinction.com/ made by Ryan https://www.tripsite.com/ made by Ryan (afaik) http://www.1815.ch/ Swiss news portal (Soma)
-