Jump to content

sms

Members
  • Posts

    15
  • Joined

  • Last visited

Profile Information

  • Location
    Hamburg, Germany

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

sms's Achievements

Jr. Member

Jr. Member (3/6)

1

Reputation

  1. Sorry for my late reply, so much to do. I just had to write to you cause your idea helped me thinking in the right direction. Thanks again! 😀
  2. Hello to the forum, since recently I get this notice when I create a new page with definded parent templates and children templates: Notice: Trying to get property 'noChildren' of non-object in D:\xampp\htdocs\processwire-dev-3.0.170\wire\modules\PagePermissions.module on line 821 Line 821 of PagePermissions.module says: if($page->template->noChildren) { ... Any idea of what I could do or causes this notice? Thank you very much in advance.
  3. It's maybe the double use of 'updateprofile' for form id and button name.
  4. @BitPoet Thank you for your module! I have a small question about how to change my validation hook when fields are repeated via FormBuilderMultiplier and the name of the fields changes e.g. will be increased by number. I am getting the following notice (obviously the validation doesn't work, because the field name will not be increased with the ascending number created by FormBuilderMultiplier) Notice: Trying to get property 'value' of non-object in /.../site/templates/form-builder.inc on line 104 $forms->addHookAfter('FormBuilderProcessor::processInputDone', function($event) { $form = $event->arguments(0); if($form->name != 'tour-registration') return; $date_of_rabies_vaccination = $form->get('date_of_rabies_vaccination'); $dorv = $date_of_rabies_vaccination->value; // line 104 in form-builder.inc if($dorv > time()) { $date_of_rabies_vaccination->error(__("The date can not be in the future.")); } else if($dorv > strtotime("-21 DAYS")) { $date_of_rabies_vaccination->error(__("The date of the last rabies vaccination must be at least 21 days ago.")); } else { // vaccination date was more than 21 days ago } }); So how can I iterate resp. increment the field name in my hook? Thank you very much for your help. My environment: ProcessWire 3.0.161, FormBuilder 0.4.0 and FormBuilderMultiplier 0.0.6
  5. Sorry for my delayed answer and thank you for pointing me into the right direction. I have now deleted the assigned template in the database and could empty the trash. Thank you again and have a good day
  6. Thank you very much. Deleting the cache, clearing the browser cache and refreshing the PW-admin didn't help. Where do I find the modules cache?
  7. Hello, I get the following warning when I open the page tree: PagesLoader: You must assign a template to the page before setting custom field values (title__data) [pageClass=Page, template=] There is one page in the trash which I can't delete. I always get the message that the trash bin is empty (but there is still a 1 near the trash icon). How can I fix that? Thank you very much for your help.
  8. Thank you very much again. I have checked and unchecked these options but it doesn't work for me. But the Page Reference works perfectly: <a href="<?php echo $page->link->url; ?>"><?php echo $page->link->title; ?></a>
  9. Thank you for testing it, Adrian! I will try to find out why it isn't working for me. It's just a local page to play and to get deeper into PW.
  10. Hello adrian, thank you again for your quick reply. I have tested your code but the field outputs nothing now. However, I will test the Page Reference field tomorrow. Might be a better option <a href="<?php echo $page->AssistedURL; ?>"><?php echo $pages->get($page->AssistedURL)->title; ?></a>
  11. Hello gmclelland, thank you for your reply and the TracyDebugger tip. I think my approach is probably going in the wrong direction... I just wanted to have an input field to insert a link to another page or an anchor or select a page via the menu tree. That's why I decided to use this module. This <a href="<?php echo $page->AssistedURL; ?>"></a> outputs this: <a href="/processwire-test/page1/"></a> which is fine so far but I'd like to have the page name (or a custom text) within the <a></a> tags. Is there a better way to achieve that? Most probably Thank you again.
  12. Hello everybody, I am new to PW and while I am playing around to learn PW I downloaded this module and it works great but I have no clue how to get the name of the page I will link to: <a href="<?php echo $page->AssistedURL; ?>">?</a> Thank you very much for your help.
×
×
  • Create New...