Jump to content

Flashmaster82

Members
  • Content Count

    35
  • Joined

  • Last visited

Community Reputation

2 Neutral

About Flashmaster82

  • Rank
    Jr. Member

Recent Profile Visitors

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

  1. Is it possible to just show a list (page reference) but without any radio buttons? Or a drop down but the references is not selectable? The items needs to be references but the main thing is that its just a list. Please help!
  2. I managed to find a solution in another topic. <?php $wire->addHookAfter('InputfieldPage::getSelectablePages', function($event) { if($event->object->hasField == 'profiles') { $page = $event->arguments('page'); $event->return = $event->pages->find("template=profile_page, team_page={$page->parent}"); } }); ?>
  3. Thanks for your reply but still no results... if i remove , sports_team=$relative It will show all profile names so i works almost. If i put that string on the actual page either id or name it will show just those profile names but on the admin maybe there is something different you have to write im clueless..
  4. Hi, can you guys help a beginner with a problem.. On my template (profile_page) i have a dropdown (page reference) where i can choose a sports team (team_page) that is related to that profile which is also its parent. Then on my Competition1 page (competition_page) I have page reference field (profiles) a dropdown that i want to display only profiles that has choose a specific sports team (template=team_page) the page parent to be specific. Structure/Template Sports_team1 (team_page) Profile1 (profile_page) Profile2 (profile_page) Profile3 (profile_page) Competition1 (competition_page) ready.php <?php $wire->addHookAfter('InputfieldPage::getSelectablePages', function($event) { if($event->object->hasField == 'profiles') { $relative = $page->parent->name; $event->return = $event->pages->find("template=profile_page, sports_team=$relative"); } }); ?> This returns with no results in the dropdown. If i remove sports_team=$relative then it displays all profiles that have profile_page as template, so it works almost. But i will have more sports teams so this is just an example. I only want to display the profiles that has choosen the parent team on there profile page in admin not front end. I hope i was able to explain it so you guys can understand a little bit. Need some help please! /Thanks
  5. Hi, i´m building a sports website where you can sign up and get your own profile that is also linked to a team page. On the team page i want 1 user to be admin and could edit the page as well. I also trying to build/implement a Tournament Bracket example (https://codepen.io/rzencoder/pen/JaQreL) or (https://codepen.io/mattpantoja/pen/eYmzKjR) page where the user could set up there local tournament with say 8/16 etc competitors based on the users on the team. I have set up a tournament_page.php and a page reference to the team (option), but i dont know how to save the value of the options (front end) to the page. Also i want to make a result list afterwards based on the values. The example link above is jquery, maybe its better to work on a simpler php solution instead im really lost here. If there is someone out there that have a better idea of something that could make this work i would highly appreciate it. I´m just a beginner at php so i really need some help from you guys /thanks
  6. Not working with Png or Svg images... Any solutions?
  7. Because they will still be visible on my website even when moved to archive.
  8. can someone please help me. I´m using this module in the PW 3.. and its working as it should. I have a jobboard and when the pages gets archived i want them to be unpublished, is that possible?
  9. Happy dance!!! 🙂 yaaay!!! I think i looks awesome now and it works perfect! Thank you so much for the help you are the best!!
  10. This is how it looks like now, when i go over with the mouse the cursor will show upp but when i click on it it wont open?
  11. This is my css now .upper-links { display: inline-block; padding: 0 11px; line-height: 23px; letter-spacing: 0; color: inherit; border: none; outline: none; font-size: 12px; } .dropdown { position: relative; display: inline-block; margin-bottom: 0px; } .dropdown:hover #gf-f { display: block !important; } .dropdown .dropdown-menubar { position: absolute; top: 100%; display: none; background-color: #fff; color: #333; left: 0px; border: 0; border-radius: 0; box-shadow: 0 4px 8px -3px #555454; margin: 0; padding: 0px; } #gf-fbtn { position: relative; display: block; width: 160px; height: 30px; border: 1px solid #ddd; background: #f5f5f5; cursor: pointer; text-indent: 50px; color: #707070 !important; left: 0px; line-height: 29px; } .gf-ful li { height: 22px; } .gf-if { width: 24px; height: 18px; position: absolute; top: 6px; left: 15px; } #glbfooter a { font-size: 12px; } #gf-fbtn { cursor: pointer; text-indent: 50px; color: #707070 !important; line-height: 29px; } #gf-fbtn-arr { position: absolute; right: 10px; top: 13px; height: 4px; width: 8px; } .gh-spr, .gh-sprRetina { background-image: url('../assets/misc/nav/img/sprd-arrows.png'); background-repeat: no-repeat; } #glbfooter a { font-size: 12px; } #gf-fbtn { cursor: pointer; text-indent: 50px; color: #707070 !important; line-height: 29px; } #gf-fbtn:hover > #gf-f { display: block; } #gf-f { position: absolute; width: 160px; background: #f5f5f5; border-left: 1px solid #dddddd; border-bottom: 1px solid #dddddd; border-right: 1px solid #dddddd; z-index: 9; } #gf-f .gf-if { display: block !important; position: relative; left: -28px; top: -21px; } .default { display: inline-block; background: url('../assets/misc/nav/img/se.svg') no-repeat; text-indent: -9999px; text-align: left; background-position: center; top: 8px; left: 10px; width: 20px; height: 12.5px; } .english { display: inline-block; background: url('../assets/misc/nav/img/gb.svg') no-repeat; text-indent: -9999px; text-align: left; background-position: center; top: 30px; left: 10px; width: 20px; height: 10px; } .sinhalese { display: inline-block; background: url('../assets/misc/nav/img/lk.svg') no-repeat; text-indent: -9999px; text-align: left; background-position: center; top: 50px; left: 10px; width: 20px; height: 10px; } .down-blue, .down, .down-s-b, .down-s { display: inline-block; background: url('../assets/misc/nav/img/sprd-arrows.png') no-repeat; overflow: hidden; text-indent: -9999px; text-align: left; } .down-blue { background-position: -2px -0px; width: 24px; height: 12px; } .down { background-position: -2px -14px; width: 24px; height: 12px; } .down-s-b { background-position: -2px -28px; width: 8px; height: 4px; } .down-s { background-position: -12px -28px; width: 8px; height: 4px; }
  12. Ok now the dropdown showed up! Yaay 🙂 I replaced the sprite icons with 3 of my svg icons that i wanted for the site. Replaced the code with the one you sent me but the dropdown menu wont open?
  13. Thanks for the css, i put that in the bottom of the nav.php <link rel="stylesheet" href="<?=$config->urls->templates;?>css/dropdown.css"> and changed the paths to the images that you attached. See my attachment for the current result. /thanks
×
×
  • Create New...