-
Posts
2,009 -
Joined
-
Last visited
-
Days Won
21
Everything posted by dragan
-
After digging through several PW forum threads, I think the following approach might work: Create each of the 200 pages via API as the user it will be later assigned to (or create as superuser, and later change the owner) Install this module
-
A neat new Github feature: https://help.github.com/en/articles/navigating-code-on-github And while I'm at it: If you're frequently navigating through GH repos, I can highly recommend this browser add-on: https://www.octotree.io/
-
In that case, I guess you'd have to look into using hooks. But digging deeper into @adrian's module description linked before, it seems there's an option that will do just what you are looking for: I have never used this myself, so I guess you should simply try it out and see if it works for you...
-
Interesting related stuff here: And here's a module: http://modules.processwire.com/modules/process-custom-upload-names/ But I'm not sure if you really mean "change after renaming" or "use a custom formatter after uploading". Should the description automatically be generated from the filename, or vice versa?
-
What is Page::statusIncomplete? Never saw this before...
-
together
-
You can try this hook.
-
@strandoo Do you have a live example? Most likely the modal is closed with JS. A quick look at Ryan's module tells me there's just the .module file without any JS. Probably the data-dismiss="modal" is triggered somewhere after submit...
-
@sebr 1) Apparently there is no built-in function in Leaflet to "de-cluster" a map. https://gis.stackexchange.com/questions/152128/leaflet-markercluster-cluster-uncluster-toggle https://github.com/Leaflet/Leaflet.markercluster/issues/393
-
Well, at this point, I think it would be time to move this forum thread to the Lister Pro support thread. Maybe a forum-admin can move it there? @sebastiaan (to me at least) it's hard to pin down the error source. But maybe @ryan has a clue about what's going on here, and can help you isolate the two JS errors. All I know is that there were major changes with the bookmarking feature recently. And I guess you should take a look at the form control mentioned in the second JS error. Does it appear everywhere, or just in your custom actions?
-
What about JS errors in the browser console?
-
You could try one of the suggestions from here.
-
Using CTRL + SHIFT + V instead of just CTRL + V (on Windows), you can still paste the content and CKEditor will recognize basic stylings such as line-breaks and bold/italic, lists etc. without all the extra MS-Word proprietary stuff that @bernhard mentioned. That is intentional, since MS-Office documents and your website don't use the same styling, and you really don't want to end up with strange-looking parts in your website because of such author actions.
-
@Sergio Why are you using anchors for the FAQ headings? Is it supposed to be used as toggle / show-hide? Because if yes, then that is not working as intended. Everything is visible, and you can't toggle anything (at least not with Chrome).
-
Maybe write a hook for FB, and inside that hook you pass the output to your sales module? Just remember to use wire('modules') instead of $modules... When you say "function", do you mean your own custom PW module, or just a function in your template(s) ?
-
According to https://github.com/ryancramerdesign/ServiceCurrencyConversion/blob/master/ServiceCurrencyConversion.module#L187 you should be able to edit currencies.txt (untested).
-
How to detect if a template form has errors in it?
dragan replied to VeiJari's topic in API & Templates
@iipa You probably have to update PW. It was introduced with 3.0.127: https://processwire.com/blog/posts/pw-3.0.127/ -
You can easily change the order with CSS flexbox, i.e. place a custom link first, before pages. Together with the body role- classes, it would be a breeze to re-arrange the order (or perhaps use a different styling). A quick-and-dirty example: body.role-nonsuperuser li.page-10065- { flex: 1; order: -1; } body.role-nonsuperuser #pw-masthead .uk-navbar-nav> li.page-10065- a { font-size: 1.5em; color: yellow; font-weight: 800; } page 10065 is a custom dashboard page here, and with the first two CSS statements it puts the dashboard link first, and pages etc. after that - only for non-superusers.
-
@Nicolas This looks like @Noel Boss's admin theme: https://modules.processwire.com/modules/admin-theme-uikit/ If you want to customize the admin theme yourself, you can clone the wire/modules/adminthemefolder/ to site/modules/. PW will detect that you have two such folders and ask which one to use. You've got the full monty in the package: LESS files, webpack etc.etc.
-
Never had to use any such thing myself, but take a look here: https://modules.processwire.com/categories/social/ What exactly should this "comment system" do? Do you want to embed FB comments in your site? Something like this?
-
That's weird. Re-ordering images shouldn't do anything besides.... re-ordering and nothing else. I don't get it. Is that text (This is intentionally invalid image data) displayed in the browser? Look in the page's asset folder. Are all your images still there? Also, check server- and PW error logs, and your browser JS console for suspicious stuff.
-
Not related to search, but: Are these really three templates? i.e. do you really use them as PW-templates, or just as partials that you include() in the template? Perhaps this is useful: https://processwire.com/blog/posts/processwire-3.0.91-core-updates/ $pages->find("FieldtypeTextarea|FieldtypeText|FieldtypePageTitle%=coffee"); or this: Here's an example with PHP: https://stackoverflow.com/questions/9373023/how-can-i-get-a-summary-string-around-a-search-query-within-a-longer-string Here's a little JS lib: https://markjs.io/
-
no it isn't. What makes you say that? Perhaps you should spend some time "learning the ropes" instead, before declaring an entire decades-long tried and tested scripting language as "awful".
-
Well, I have never used this inputfield type, but did you also try sort=stars.count ?
-
@rick Are you talking about FieldtypeStarRating? Perhaps you should better post it in the support forum thread instead. Anyway: did you already try to sort by that field and it failed? Give us some code examples of what you've already tried, so we can get a better picture of your setup etc.