Jump to content

itsberni

Members
  • Content Count

    137
  • Joined

  • Last visited

Community Reputation

8 Neutral

About itsberni

  • Rank
    Sr. Member

Profile Information

  • Gender
    Male
  • Location
    Frensdorf, Germany

Recent Profile Visitors

1,926 profile views
  1. ok - read it. i think that's exactly what i need. thanks for sharing! the question now is only if this is compatible with the login/register ( Pro - Version ). in the module settings of login/register the fields refer exclusively to the template "user". i guess i could get problems here... What do you think?
  2. no, i did not. i didn't find a way how user-profiles could be integrated into the "normal" page tree. i will dig in this first. Anyway, thanks a lot to all of you!
  3. hi 3fingers, i think it's great that you are thinking about my usecase. maybe it's not the "right" way to solve this problem. i will describe it briefly: users can log in and create a profile. this profile should then be accessible via its own url on the site. ( entry/url-user-1/ to achieve this, i create (at the moment manually) a page name per user ( url-user-1 ), which i combine with the entry of the user. in the template of the url page i have the possibility - per page - to select the appropriate user ( $user->id ) via a page-reference field. since i may want to use this url as a segment in the further course of the portal, i want to store it automatically in the respective user entry during the assignment. This way I can achieve that every user gets his own page, which can then also appear in a sitemap. the much more elegant and less cumbersome way would probably be to enter the url in the user-entries themselves and automatically create a page with the template mentioned above, which is linked to the user->id. For this I simply did not yet deal enough with the hooks. i hope i could now contribute even more to the confusion 😉 Many greetings
  4. $page->entryPages->id did it, when adjusting the fieldtype-settings. Thanks for pointing to this....
  5. it´s a Page reference - field and this writes the needed id into the session. But i cannot compare it with $user->id. When i write $user->id == 1234 - this works wire('session')->message("Hello World 2 ! You saved {$page->entryPages}")
  6. Hello, what I'd like to do with a Hook is this. the hook should work if I change a certain field on a page with a certain template. Afterwards a value should be written in the template "user". Somehow I am stuck at the moment. If I enter the value $page->entryPages fix in the if statement ( eg. 1234 ), it works. Where do I have my error: $wire->addHookAfter('Page::changed', function(HookEvent $event) { $page = $event->object; $change = $event->arguments(0); if($page->template == 'entry' && $change == 'entryPages') { // execute some code when "entryPages" changes on "entry" pages // show info about the value "entryPages wire('session')->message("Hello World 2 ! You saved {$page->entryPages}"); // get all users $allUser = wire('pages')->find("template=user"); foreach($allUser as $user){ // where the user->id == $page->entryPages, write the value in user-template if( $user->id == $page->entryPages ) { // check out if success wire('session')->message("This is it {$user->id}"); $user->setAndSave('userEntryUrl', $page->name); } } } }); Thank you!!
  7. Hi! when sanitizing an url, it outputs "http://myDomain.com". Is there a possibility to use https instead? Many Thanks!
  8. Crazy - or an April Fool's joke! As of today... haven't tried the tips any further - but it will be hard to understand now, when the error is now gone.
  9. Hey guys, I've discovered some pretty strange behavior. A date I set from 4/6/20 - 4/19/20 appears in the calendar in May. can anyone help me with that? thanks a lot!
  10. I did. That's the way to go. I´m deactivating the folders in both sites....and viola. Now i'm able to setup the AdminThemeUiKit in both environments. Perfect - you made my day. Many thanks
  11. what kind of clicks do you recommend 😉 - when i click on the link ("click here to change the file is used " - which is obvious ) i will get an error 500
  12. @kongondo i have tried both versions - with "www" and without. But that isn't my problem any longer because this was only for testing. now i come along with a virtual host and that works fine! But the problem with the admin-theme is still a topic.
×
×
  • Create New...