Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/13/2021 in all areas

  1. Hello, I am in need of a ProcessWire Developer to update my existing website by adding an additional landing page for a new product. The content and layout will be provided for you and we would need it implemented into the website. Please message me if you have experience developing websites in ProcessWire and are interested in this project. This project will be less than one month approximatley. Best, Roisin
    5 points
  2. Hi Zeka, Doh, I can't believe I didn't spot that! thanks for the tip. Marked as solved.
    2 points
  3. @PascalKonings, the suggestion from @Zeka is probably the way to go, but in case you do want to stick with image tags you can set them dynamically in a hook in /site/ready.php: // Dynamically set the selectable tags for an images field $wire->addHookAfter('InputfieldImage::renderReadyHook', function(HookEvent $event) { /** @var InputfieldImage $inputfield */ $inputfield = $event->object; // The images field $field = $inputfield->hasField; // The page that the field is on $page = $inputfield->hasPage; // Only for a specific images field if(!$field || $field->name !== 'your_image_field') return; $config = $event->wire()->config; $js_name = "InputfieldFileTags_$field->name"; $data = $config->js($js_name); // Set the tags however you like, using $page if needed $data['tags'] = [ 'carrot', 'pumpkin', 'cauliflower', ]; $config->js($js_name, $data); });
    2 points
  4. Hi @rastographics "task_status" is select options field? Have you try to 'task.task_status.title=finished' ?
    1 point
  5. You can use RockMigrations for such tasks ? It's a very Powerful Module Or just look at the docs ? https://processwire.com/api/ref/page/delete/ // Delete a page and recursively all of its children, grandchildren, etc. $item = $pages->get('/some-page/'); $item->delete(true); It looks like the "true" is missing: $item->delete(true); "If set to true, then this will attempt to delete all children too."
    1 point
  6. Thanks BitPoet. I was using AoS for a while but I found it didn't play nicely with the admin UI Kit theme in places and I understand AoS is no longer being developed so I've stopped using it in production. It's a shame because it really did add some nice features.
    1 point
  7. Or install @tpr's AdminOnSteroids module which, among many other really convenient shortcuts, adds a "clear" button to PageListSelects.
    1 point
  8. Hi @prestoav Just find your selected page in the page tree and there will be 'Unselect' option. See screenshot at the thread
    1 point
  9. Hi @PascalKonings You can use page refference field by implementing custom fields for you image field https://processwire.com/blog/posts/pw-3.0.142/
    1 point
  10. Adapting a post Ryan made in the Repeater Matrix support forum: In /site/templates/admin.php, before the line... require($config->paths->core . "admin.php"); ...add the following... if($page->process == 'ProcessPageEditImageSelect') { // The page ID that is open in Page Edit $edited_page_id = (int) $input->get->edit_page_id; // The page ID that contains the CKEditor field // This is where PW will look for images by default $cke_page_id = (int) $input->get->id; // If the edited page is not the same as the CKEditor page if($edited_page_id && $cke_page_id && $edited_page_id != $cke_page_id) { // Get the CKEditor page $cke_page = $pages->get($cke_page_id); // If the CKEditor page is a particular Repeater field page // Substitute the name of your Repeater template if($cke_page->template == 'repeater_your_repeater_template') { // Set the page ID where you want PW to look for images $input->get->id = $edited_page_id; } } }
    1 point
  11. @Peter Knight Hi Peter – the module won't clear out 404 history automatically, I'm afraid. You'll need to continue doing this manually every now and then.
    1 point
  12. I've found the Profile Exporter module a nice way to move sites between servers (like from local to web host). You create the export profile using the module, copy the files to the new server, then go through the PW install process again. It will check all the permissions and install into an empty database you define. No need to mess with any SQL import / export. https://github.com/ryancramerdesign/ProcessExportProfile
    1 point
×
×
  • Create New...