-
Posts
6,629 -
Joined
-
Last visited
-
Days Won
358
Everything posted by bernhard
-
/* editor */ "editor.rulers": [80, 120], "editor.tabSize": 2, "editor.renderWhitespace": "boundary", "files.associations": { "*.module": "php", "*.inc": "php" }, "editor.renderIndentGuides": true, /* search */ "search.exclude": { "site/assets/cache/**": true, }, Sure, atm only these: Nothing special. I don't have any fance code completion yet, so I'd be happy to get recommendations ?
- 246 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
Thx @gmclelland very helpful! I'm working on my git workflow and I just found the GitLens extension. I haven't tested it much but it looks quite amazing so far! https://gitlens.amod.io/ Also I've switched from the portable version back to a regularly installed version, because that has several benefits (for example having it in the context menu). I just moved my "data" folder to my OneDrive and placed a symlink to the installed VSCode folder: // make a backup of your data folder // open cmd (with admin privileges!) mklink /J "C:\Program Files\Microsoft VS Code\data" "D:\OneDrive\programme\portable\vscode\data"
- 246 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
Where do I find this? ?
-
Have you tried ?
-
Thx ?? Still fighting with multiple forms on one page. Hope I can solve it soon... Also while implementing another form on a page I realized that the setup process is still a little bit tedious. But apart from that it worked well. I'd love to provide a better module with better UI one day. But I'm also not sure if I should really do that... we already have FormBuilder. We'll see...
-
You have a 512MB limit. I guess the error says that you already used eg 511,99 MB then allocating another 0,02MB would be too much. Please don't double post
-
Module Profile Export module (also upgrade PW 2.0 to 2.1)
bernhard replied to ryan's topic in Modules/Plugins
do you have a question? you can also try https://modules.processwire.com/modules/duplicator/ edit: could you please not double-post @sebastiaan ? -
hi sten, do you want to achieve something similar to this?
- 6 replies
-
- documentation
- tutorial
-
(and 2 more)
Tagged with:
-
auto resize images on upload or use admin image upload frontend
bernhard replied to webhoes's topic in API & Templates
Thx for the clarification @adrian. Ok, if the usecase fits it seems to be a good solution, but I wished there was a good way to have better and easier control of which pages are shown inside the admin or inside the tree. Taking care of all that tedious stuff (search, pagination etc). -
So are you trying to use FrontendEditing as some kind of form-replacement? Don't know if there are any limitations in the number of currently logged in users or any performance issues...
-
auto resize images on upload or use admin image upload frontend
bernhard replied to webhoes's topic in API & Templates
thx @adrian. I knew about AdminRestrictBranch, but he'd need to setup the structure so that all of the user's data is under one branch, correct? Is it still a "hacky" solution? I remember that you discussed with ryan about the numchildren that was not hookable at that time. Did anything change? Would it be easier nowadays to just hide certain pages or do you think AdminRestrictBranch is still the best (only) option? -
so maybe you could just log them in after they entered the correct ticket id?
-
May I ask WHY you want to allow a not-logged-in guest user to edit your pages? ?
-
auto resize images on upload or use admin image upload frontend
bernhard replied to webhoes's topic in API & Templates
hey @webhoes you get some informations here: Unfortunately it does not seem to be so easy to get a solution that works everywhere (in the tree, in search results, etc). Maybe @adrian has some new information on that topic? Maybe it's easier to stay in the frontend in your case, since it seems that you already did quite a lot there. I don't know. Of course it is also possible to do the image upload from the frontend. You need to provide a better explanation of what is going wrong then. -
Yeah but you introduced another option. The best option would be a combination of both ?
- 11 replies
-
- inputfields
- selection
-
(and 2 more)
Tagged with:
-
Don't know of a built in way. But it would be easy to do with a little javascript. At least if the field is not loaded via AJAX (only collapsed is fine). $('.Inputfield_pageref label').append(' <span>(' + $('.Inputfield_pageref .asmListItem').length + ')</span>'); Of course you'd need to update that count on several events, but that should also be quite easy ?
- 11 replies
-
- 1
-
-
- inputfields
- selection
-
(and 2 more)
Tagged with:
-
auto resize images on upload or use admin image upload frontend
bernhard replied to webhoes's topic in API & Templates
Don't understand that part That's why I would recommend doing it the other way round: Stay in the backend and modify it to your needs. It's really simpler than you might think. And of course a lot safer! For example I don't see any access control checks in your upload scripts... You don't need to care about that in the backend. Just use PW's internal access control system and you're done. But of course you can also do all that from the frontend. Don't want to convince you. It's your choice ? A better explanation, screenshots, copy of logfiles etc. would help... Once more: I think it is really a lot easier to create custom admin pages (processmodules) and using all the pw features (fields) than creating a custom frontend. But if you really want (or need) to stay in the frontend I'm sorry, I can't help ? -
auto resize images on upload or use admin image upload frontend
bernhard replied to webhoes's topic in API & Templates
I'd highly recommend to stay in the pw backend if possible. What is the reason for using the frontend? If you are inside the admin it should be easy to resize the images after they where added: if you are uploading lots of large images you might need to implement some kind of queue though... -
Sorry to hear that. It's all about using the right RockFinder and sometimes it's easier/necessary to populate hidden fields with hooks to efficiently query the data. Did you try RockFinder Tester? Once you have the right RockFinder you can do everything that aggrid can do. Using it as a page selector needs some additional (but not complicated) javascript, though.
-
@BFD Calendar you can also use RockGrid to select Pages. It should be able to handle 100k pages and you could even add images just like in the screenshot of kongondo's module above
-
jep, just take care when using AJAX loaded fields. if you add your JS via a ::render hook it will not get loaded. You need to load it via ::renderready
-
OK i understand ? I just didn't get that it was a snippet and "wasted" time to read your post and try to help where actually no problem existed and thought you might save others from that by naming it more obviously..
-
Hi @torf, welcome to the forum ? thx @Macrura, indeed it looks like my fieldtype could be helpful here, but it has some limitations! This could already be one of the limitations. The data is stored as JSON in a textarea, so searching could be from easy (if you only search for fulltext) to nearly impossible (if you want to filter for specific products and properties. Another limitation (possible problem) of the fieldtype is that it is very inflexible when you want to change the rows/columns. Imagine You setup a field with columns Product A, B, C and you want to add column A2 between A and B - that would mess up all existing data or you would need to write a script to update all occurences. So, it could be an option, but you could also have a look at this other option that might be a better fit: