Jump to content

Search the Community

Showing results for tags 'user parent'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Hello everyone, I'm working with ProcessWire now for more than two years and I'm verry verry satisfied with it! Currently I'm working on a project with integrated "Frontend CRM" and more functions for frontend-user-interaction. The Contacts for the CRM are Users with an alternate parent (as introduced in 2.5.14). Almost everything is working perfect so, but now I have one Problem: When a new user is created via the Frontend (via the great PW Api) it's parent has an name like "/en/crm/contacts/maxmustermann/" In this case the new created contact is only visible, if the Editor has "english" as language actived. In other languages (currently only German) the new Contact isn't shown. Here's the codepart, where the page is created: $c_template = $templates->get("contact"); $c_parent = $pages->get(1018); $c_name = $sanitizer->pageName($c_forname) . $sanitizer->PageName($c_lastname); if ($pages->get("name=$c_name")) { $date = date("ymdhis"); $c_name = $c_name .$date; } $nc = new Page(); $nc->template = $c_template; $nc->parent = $c_parent; $nc->name = $c_name; $nc->language = $user->language; $nc->contact_forname = $c_forname; $nc->contact_lastname = $c_lastname; $nc->contact_company = $c_company; $nc->contact_website = $c_website; $nc->contact_email = $c_email; $nc->contact_phone = $c_phone; $nc->contact_street = $c_street; $nc->contact_plz = $c_plz; $nc->contact_town = $c_town; $nc->contact_country = $c_country; $nc->email = $c_email; $nc->save(); The input values are validated before this part. I want the contact to be visible in all languages. How can I solve this problem? Many thanks in advance! Greets, Josh
×
×
  • Create New...