-
Posts
1,479 -
Joined
-
Last visited
-
Days Won
21
Everything posted by elabx
-
Download the plugin from the site and uncompress it. Upload the plugin folder under site/modules/IputfieldCKEditor/plugins, activate the plugin in the field configuration in PW (at the very bottom you will see a group of checkboxes that already includes the PW CKEditor plugins for image upload and links, you should see the uploaded plugin now). Check it. As stated above, add the correct option in the toolbar configuration. and you should see it in the editor now.
-
Image variations not always being generated
elabx replied to cosmicsafari's topic in General Support
I support this idea, has happened to me a lot and it's always memory, file size limits on upload or execution timeouts.- 6 replies
-
- 2
-
-
- images
- variations
-
(and 2 more)
Tagged with:
-
One way to go about it is to use a custom style, you can define inside the site's InputfieldCKEEditor's folder. Instructions here: https://github.com/processwire/processwire/blob/master/wire/modules/Inputfield/InputfieldCKEditor/README.md#custom-editor-js-styles-set. So after setting up the path, the config for the blockquote style would look something like this: CKEDITOR.stylesSet.add( 'mystyles', [ { name: 'Bootstrap Blockquote', element: 'blockquote', attributes: { 'class': 'blockquote' } }, ] ); You have to actually have the cursor over the formatted blockquote text in the editor for the style option to show. (that is, if you are on a h1, the style won't be available in the dropdown) In the same GitHub page there are instructions to actually make the blockquote look as your custom style with a custom css file, might be useful.
-
Just to give another opinion from @gmclelland , I organize the templates the following way: site/templates/fields/{name of the repeater matrix field}/{name of the rep. matrix type} e.g. Assuming a repeater matrix field called "content" with a type called "slider": site/templates/fields/content/slider.php So I rather end up with several files instead of rendering in the main template, one per matrix type. Then, on the template which has the repeater matrix field: content$page->render("content")
-
This is gold!!! Can't believe I've lived without this info. +1 on the unified resources thread haha
-
Don't know if I am getting ahead of myself but the custom code option to get the selectables could be like this (this code can be placed in site/ready.php as per the field's instructions): $wire->addHookAfter('InputfieldPage::getSelectablePages', function($event) { if($event->object->hasField == 'page_reference_field') { //the page instance where the field exists, in this case, Item 4 for example $page = $event->arguments('page'); //the reference to the project $currentProject = $page->parent('template=project'); //has_parent sets the parent limit for the find() $event->return = $event->pages->find("has_parent=$currentProject,template=subitem_template"); } });
-
Oh maybe I didn't make myself understood, but my idea with hooks also involves checking for deletion, you can check for a header in the hook to see if it's a product getting deleted, the header is supposed too look like this! X-Shopify-Topic: products/delete Docs: https://help.shopify.com/api/reference/webhook#events I think this is the type of problems hooks solve very well! This way you wouldn't have to query the /products.json endpoint every 24 hours, every action registered as webhooks will trigger the event when create/delete/update products happen, which you can mimic on ProcessWire on the handler you set on the route asignet to the webhook. Personally I haven't tried webhooks myself, but I do have some experience using the shopify API and I believe this would be the way to go to make a one way store sync.
-
Why don't you rather use Shopify's webhooks?? I think it would simplify the problem, you can save the product id in a field and just look for that every time the hook get's called, no need to compare JSON, just decode the payload into an array and grab the product/variant id, Selector API to look for the product, and decide what to do depending on the event of the webook.
-
I agree, not to put down doubt Helder's experience or amazing work, but I also think this kind of observations lack context really help ProcessWire look like the awesome CMS it actually is. Marketing wise it might work, but from a developer's perspective I feel this makes us look like fanboys haha (I bluntly accept I am one) Nonetheless, it is good to have this conversations and appreciate the work of promoting the awesome product we all love.
-
Great site! This one does stands apart from what you normally find on themeforest I feel.
- 23 replies
-
- 1
-
-
- template
- website template
-
(and 2 more)
Tagged with:
-
Public enemy #1 for project completion. I have done unmentionable things, like "if-ing out" some scripts and stuff that gets Pagespeed into the red zone, all for the sake of sales.
-
That just feels a bit too impractical, because they involve ssh tunneling and open a single file, out of the vscode interface. I think I found what I'm looking for but it's not released yet: https://code.visualstudio.com/updates/v1_17#_preview-remote-file-system-api This let's you navigate the remote server as if it was local.
- 246 replies
-
- 1
-
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
When upgrading from a 3.0.77 to a 3.85 installation, multilanguage setup and new UIKit theme I am getting the following error: Error: Call to a member function addBodyClass() on null (línea 114 de /web/content/wire/modules/LanguageSupport/LanguageTabs.module) Line in question: https://github.com/processwire/processwire/blob/master/wire/modules/LanguageSupport/LanguageTabs.module#L114 Seems the wire('adminTheme') si not available for some reason, time to learn more of PW inners haha Any suggestions??
-
Does anyone know if you can edit a remote location ftp/ssh, and navigate it as a file system?? In my emacs setup this is so straightforward but I never found a way to do this in VS Code.
- 246 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
I really like the project pages!
-
Hear you hermano, I've always lived in informal economy. Don't have a cent for pension/retirement. PHP/ProcessWire in my country, serves me well for small to medium sized solutions which is basically what I do right now a quarter of my time, and have a deal with an agency that serves "PW products" to US/Canada which does most of my income. But in a local company (and with this I include big international business with offices in Mexico) it would be easier to get paid in any other language, PHP have this really bad rep. Also, the US tech scene defines a lot of this, cause most top talent in Mexico ends up in US and if not, a lot of companies have their dev teams outsourced here and haven't heard much about PHP technology being used, at least from the people I know that have migrated/freelance for US companies. Talking about overall tech skill, I've seen working with methodologies like Agile things get you on higher wages. My bet on that started with ProcessWire and until now, ups and downs but overall, great success! haha
-
That book is GOLD, its content made such an impression on me that I also instantly took that advice and never listen to music again when coding/designing/drawing. It's the closest I have to a Bible.
-
ProCache is an awesome product with lots of features and Ryan's touch of mastership but for the less/sass compiling you can roll your own with the right PHP libraries, did it once myself with https://github.com/oyejorge/less.php Yes indeed! Actually working a lot on one a lot provided by LiquidWeb.
-
VPS services give you a blank linux machine where you have to configure Apache/MySQL/PHP. Sometimes they include panel tools to automate some tasks, I have only used Amazon EC2 which gives you nothing but the empty Linux machine. I think small/medium clients who look for a "all-in-one" solution will prefer a 'normal' hosting. As it enables them instantly ftp accounts, mail accounts, etc. From what I've seen from @Jonathan Lahijani 's projects posted around here is that they are more resource demanding and complex from your average website, so a VPS feels like a perfect fit to achieve performance and simplicity/customization in the server setup. E.g. You need to install a particular php extension, need to use composer, etc. Yes my friend! As beautiful as you depict it. I don't know the specifics but probably checks for changes in the file on it's own, rerenders and caches it. I hope the AdminUIkit had a way to be hooked on ProCache to leverage the in-server compiling.
-
Add additional text input to existing options field.
elabx replied to elabx's topic in General Support
I see the problem too and fully agree on you observations. I think I will follow your advice on the questions. I will make my own custom lister. The big horizontal scrolling doesn't worry me as much, the main features I want to take from the listers are the filtering , the CSV export and the "bird eye" view it gives, so those features I think I can handle in a Process module to keep the data structure maintainable which is what in the end worried me the most haha Thanks again for the help! -
Add additional text input to existing options field.
elabx replied to elabx's topic in General Support
Haha, I think I am too. And MAYBE my understanding of the word questionnaire is messing with my life right now (maybe the phrase, submissions of the questionnaire was missing) . I decided to make a quick processwire sketch of original Plan A: The way submissions look in the tree: The questionnaire template: The ListerPro of questionnaire submissions: What I like from plan A is is that the problem is solved all the way, from representing the questionnaire, to the Lister/Export functionality. The thing is that i don't feel it's very end user friendly and the data deletion problem. Hope there was a way to set "field templates" and work with them kind of in a way you work with parent/children template rules in the page tree. Then again, I could do my own Process module I could base on the process module that enables this screen in a much simpler way. I kind of didn't understand how to relate answers among themselves since they exist under their corresponding question. For example, I need to relate Answer 1 of ALL questions, they are the answers to a single questionnaire submission. Thanks a lot for your patience! -
Add additional text input to existing options field.
elabx replied to elabx's topic in General Support
From what I understand, your proposal focuses on the answers, rather than the WHOLE questionnaire, I would have imagined a ListerPro where the rows are a set of answers corresponding to the questionnaire. But you got me thinking, what if I related answers with a single page. Questions ---Responses --------Response 1 <- This has a page field which has a relation to an answer per child question., eg. (has=question1_answer1,question2_answer1) ---Question 1 -------Answer 1 -------Answer 2 -------Answer 3 ---Question 2 -------Answer 1 -------Answer 2 -
Curious about this idea. Could this be solved by only making the Inputfield module? Or would it require the a Fieldtype?
-
Add additional text input to existing options field.
elabx replied to elabx's topic in General Support
I do agree it could be manageable. From the business perspective, questionaires won't change often. And yes and pretty aware of the removing fields/data problem. Thanks for your thoughts! Really dig this approach, though how would you handle the saving of the data and then displaying it on a ListerPro? Think this is the part where this soultion could fail me.