-
Posts
1,550 -
Joined
-
Last visited
-
Days Won
16
Everything posted by Ivan Gretsky
-
Page tree: Link titles should show template too (not just name)
Ivan Gretsky replied to ottogal's topic in Wishlist & Roadmap
Admin on steroids adds that functionality (among many others). Just for the record. -
Great, @mel47! But I was not actually advising to add an extra field to the template. I thought it would be enough just to write $page->sizeColumn = 2; before the render call. It would add a temporary property to the current $page object, which will be passed to field template (but will not write this field to database).
-
When you create a new product page a reference to some tags get automatically added to the product page, right? Is it your site or you are working with some clients you did not make? What tags are added? It might be that it is done with some hooks. If so, you can check the site/modules folder for some suspicious modules and read through site/ready.php and/or site/init.php - they might be there .
-
Hey, @webhoes! I did not dive too deep into your code, but: I think you use $inputs instead of $input. I don't see the code for the form which has to include the select and therefore do not see the way that r_selector will ever get into the $input object. You need to sent the form to get the input parameters.
-
Linking pages to each other without being parents
Ivan Gretsky replied to gertvannuffel's topic in Getting Started
There are a couple of topics kind of about this question with working solutions: https://processwire.com/talk/topic/9675-page-field-bidirectional/ https://processwire.com/talk/topic/14689-connect-page-fields/ But there are other ways. Put page reference field on vehicle-template template and add synonyms from there. Create a separate category for vehicle groups and reference category pages from both vehicle-template and vehicle_synonym-template (do you really need 2 of them?) Add a RuntimeMarkup with some easy-to-write php finding and showing the pages you want to back-reference. -
Hey, @mel47! Here is the code for the method. Seems like the 3rd parameter is to override default field value, not to provide additional variables to the template: @param mixed|null $value Optionally specify value to render, otherwise it will be pulled from this $page. Did not try this, but you probably can do this to have additional variable in the field template context: // main template $page->$sizeColumn = 2; $content .= $thanks_page->render('images', '/images_column'); // images_column.php foreach($value as $image) { echo " <article class='column is-{$page->sizeColumn}'> .... }
-
Hello, @Slav! Is it an admin or public frontend form? If it is accessible to the public, please provide the link - it would help a lot. If not, open browser devtools console and look for js errors there. I am asking because the screenshot does not look like stock PW admin theme.
- 2 replies
-
- inputfield
- inputfieldpassowrd
-
(and 1 more)
Tagged with:
-
I can guess that 403 errors are thrown by the server, not PW. Here are the conditions for that in stock .htaccess file. Maybe you named your dev site folder without the "site-" prefix?
-
There is a nice tool for Joomla! which seems to be free for csv export. It will probably not help you to deal with the site structure though. But I am sure you will be able to handle this manually. 175 pages is not that many after all)
-
Might not be the best thread for this, but as you mentioned tracy... Wanted to let @adrian know, we, his PW fans truly appreciate what he is doing promoting our beloved system.
-
Yep, that sounds easy. Just thought I would try out something ready-made from my favourite module-builder)
-
I gave you 2 more) Will check it out. But still think @adrian's module coul have a "persistent" mode as well.
-
Good day @adrian and everyone! I was just like @Joynal, thinking this module will generate fake data for all fields and save it in the database. Could you suggest a solution for that type of behavior? I need it to do some load testing for search functionality.
-
New post: ProcessWire updates & new field types
Ivan Gretsky replied to ryan's topic in News & Announcements
The new ProField sounds amazing! Just what i did not dream of, but would dream of if I could imagine it earlier) I can see my frontpage templates getting sooo much simpler. I am really happy (again) I got my ProFields subscription . -
A. If we stay in our separate installation per site realm we still have a number of options to do what you want: Use multi-instance mode from the main site. Get data from chapter sites via web service, REST, ... GraphQL... or maybe just RSS or Atom. B. You can always go for putting everything in one installation and configuring access rights for editors with something like this or this too, but probably that'll make it only more complicated. C. Finally you can go for writing a custom frontend admin for you chapter site editors while staying in the comfort of a single installation)) But that will take some time and sweat to do. I do not know the scope and budget of your project. Might be a decision worth considering.
-
It seems like chapter sites are to be rather independent, though alike. So you probably would like to have them each in separate installation (with different databases). [Relatively simple stuff] To speed up the creation of a new chapter site you can develop a site profile and start each new one with it rather than from one of the default ones. But this way you will still have each site with non-connnected-to-other-sites files and will have to handle the updates to the site files separately. [More advanced further...] You can run the sites from the common core though (see here, option 1), so you will have to update the core only once for all of the chapter sites. [Try at your own risk] If the chapter site will have really the same template structure and will differ only with the database-stores content you could symlink all site/templates and probably site/modules folders to one common place. But you will still have to manage changes made in admin area one by one... [That is only for the record. Never done it myself] Or use something like this or this.
-
Welcome to the forums, @future_vision! Please provide more details to get a (hopefully) good answer (an advice applicable to any question. I know)) Should the chapter sites have their own domains/subdomains or they will be all on one? Do you need to manage access control to chapter sites or they will be managed by a single person/group of people? How different/similar would the chapter sites be? Maybe even paste the chapter and the main site structure outlines. The question seems too general, I suggest we narrow it down a bit.
-
PW 3.0.63: Client-side image resize support
Ivan Gretsky replied to ryan's topic in News & Announcements
@ryan, I want to let you know I really admire the way you get things done! Every time you solve a problem it is an example of a perfect engineer solution. Spot a chance to create a feature everybody wants but few have, examine existing solutions present, learn from them, build on them, make them work better than before, deliver a working feature within a reasonable time frame, provide comprehensive docs right there in the code for tech people, write a press release for the end users, move on to another task. Way back I once started a topic called "What is "Reiska". I think now I can feel what @apeisa and others at Avoine meant by this title. There is such a word in every language, and all of them fit you and your type of people (of which there is quite a few here in forums, luckily). I sometimes find myself questioning some of your marketing and organizational decisions, but I always applaud to and try to learn those problem solving skills and mindset from you. ProcessWire is unique thing, that inspired my way from "anykey clicking" web development to managing to read and write some relatively complicated code. I try hard to provide my clients with the best engineer solutions they can get based on ProcessWire. Because I can, and because it so exiting to do with PW, and because this is the way real stuff should be done. Thanks for the inspiration.- 17 replies
-
- 14
-
-
The way I would deal with the question is looking at InputfieldImage's code. It has an option to resize image if it is larger than defined maximum width and hight. I think it is around here. The logic seems to be: loading the original sized image first, making a resized copy, then deleting original image and saving resized image with original image filename.
-
Is there a way to get a DB backup from within PW?
Ivan Gretsky replied to MarcC's topic in General Support
Advancement comes over time. See here for some contemporary options. -
Years later we have more options) There is a special module by @ryan for that now. You can also do a backup from cli with wireshell. There is a nice module by @flydev still in the way, but looking promising. Look here for some discussion and 3rd party tools.
-
Good day, @owzim! I have a (maybe rare) need to pass the FieldtypeYAML textarea contents through a textformatter before objectifying it. It seems to be not possible in the field settings (or I am missing something). Can I hook somewhere to do it?
-
☁️ Duplicator: Backup and move sites
Ivan Gretsky replied to flydev's topic in Module/Plugin Development
Nothing to be sorry about @flydev. Thanks for your work. Really hope it will work out in your personal matters. -
☁️ Duplicator: Backup and move sites
Ivan Gretsky replied to flydev's topic in Module/Plugin Development
Dear @flydev! Just wanted to let you know that this module is eagerly awaited. Just in case you had a doubt)) Any news? -
Good day! Thank you @flydev for the very useful module and @ukyo for making it possible to have multiple instances of reCAPCHA on the same page. I am having just that: two forms on the same page both with reCAPCHA via the module. Both work using jQuery ajax. After an unsuccessful call I get response with error messages. Right here I need to reset reCAPCHA like described here in the JavaScript API section. But as I have two instances of reCAPCHA on the page I need to explicitly specify the opt_widget_id option. Is there a way to I get it with the module?