Alright not exactly sure how to word this but I am trying to use the existing code from the nav.blade.php file for my template. For instance I want to of course show some menu item’s to Guest and when they login more appear, just like we do in the original version. I have some of it figured out but I am mot really sure what this code is referring too:
Never mind figured out by taking my time, imagine that. Now I gave to go back and clean everything up the way I want it exactly. I would like to know for info reason what some of the code is referring too, like this code?
Ahhh, yes your right, didn’t know you were running version 7, I’ll get back to you on that one, got a few friends around duh boards here, let me see if I can find you and answer.
Ahhh, yes your right, didn’t know you were running version 7, I’ll get back to you on that one, got a few friends around duh boards here, let me see if I can find you and answer.
Jim
I have it working now for the most part and watching video’s on Laravel just for general knowledge at this point! I also think I have the basic’s about the $link stuff to, I think!
ur welcome, sorry couldn’t be better help to you, as I’m running the older phpvms 5.x.xx , however if I can help in the future, just poke me, I am in and out of here often
Alright not exactly sure how to word this but I am trying to use the existing code from the nav.blade.php file for my template. For instance I want to of course show some menu item’s to Guest and when they login more appear, just like we do in the original version. I have some of it figured out but I am mot really sure what this code is referring too:
@foreach($moduleSvc->getFrontendLinks($logged_in=false) as &$link)
it’s the $link stuff I don’t really understand? What is it referring too exactly? Any help appreciated! Just trying to learn the basic’s
Thanks for your help!
If you look at the foreach, it says:
@foreach($moduleSvc->getFrontendLinks($logged_in=false) as &$link
So it’s grabbing all of the frontend links as $link. If the module you create says that’s allowed for guest users, that will get the link as defined for that module. I need to write some extra documentation around this feature:
If I would have looked closer I would have seen that one states logged_in=false and one says logged_in=true, and now that explains what links are show if logged in or not logged in, I think! Ot at least that is the way it is working for me the way I have it set up. Which I basically just copied it from the original nav_blade.php Finally got the basic Laravel install on my Mac working but no Homestead or Valet. Still learning and just trying to understand the code and maybe one day be able to create at least a simple module, just maybe! Mainly focusing on making a new theme, well converting one to v7 I should say, and although it looks fairly decent NONE of the phpVMS code actually works in it, Live Map, Registration, Filing New PIREP, but it kind of looks nice, but that’s all! Converting templates the OLD school way like phpVMS 2 or 5 or whatever they are called now, by just copying Laravel code from the original default template or making a copy of it and then adding my template conversion! At least I am trying And it looks pretty good, just nothing works