Jump to content

lokomotivan

Members
  • Posts

    56
  • Joined

  • Last visited

Everything posted by lokomotivan

  1. Maybe can be good idea to use https://getuikit.com/docs/notification uikit notifications.
  2. Thanks, i guess i got use to just manually unzip it to modules folder :). There's probably ppl like me there so thought that info could be useful
  3. If anyone still having an issue with edit link is not showing up, the reason is because module is loading "FrontEndEditLightbox.js" from "modules/FrontEndEditLightbox" folder, by default folder name is "FrontEndEditLightbox-master", so just rename module folder (remove "-master" part) and it works like a charm. Thanks for the module tpr
  4. Getting this error while sending mail and when testing settings (gmail) on dev verion 3.0.10. On localhost works fine, any idea? When uninstall wire mail smtp module, regular php wire mail works fine SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
  5. I needed a language switcher so i searched the forum and docs, found very useful stuff, but as im new in processwire (came from joomla) all this is still a bit confusing for me, need time to get use to it i guess. There's probably other people like me get confused in all the power of pw, and need language switcher on the site, so i decided to share what i came up with. Actually its very simple, a lot easier then i thought. There is very nice example in docs using select box (there i found out about $languages array, and its clicked), but you need additional script if you wanna style it, so i came up with something simple: TADAAAAA <?php foreach($languages as $language) : ?> <a href="<?=$page->localUrl($language)?>"><?=$language->title?></a> <?php endforeach;?> Here's another example, but now active language is just a span with active class. (Style used on most websites). <?php foreach($languages as $language) : ?> <?php if($user->language->id == $language->id) :?> <span class="active"><?=$language->title?></span> <?php else : ?> <a href="<?=$page->localUrl($language)?>"><?=$language->title?></a> <?php endif;?> <?php endforeach;?> Here is UIkit dropdown example, same can do with bootstrap, just a bit different markup. <div class="uk-button-dropdown" data-uk-dropdown> <button class="uk-button"><?=$user->language->name?></button> <div class="uk-dropdown uk-dropdown-bottom"> <ul class="uk-nav uk-nav-dropdown"> <?php foreach($languages as $language) : ?> <?php if($user->language->id != $language->id) :?> <li><a href="<?=$page->localUrl($language)?>"><?=$language->title?></a></li> <?php endif;?> <?php endforeach;?> </ul> </div> </div>
  6. Hello everyone, i just registered on the pw site, and wanna say im really impressed with processwire, it's an amazing piece of software. Thank for making it! I'm a web designer/front end developer and processwire can easily become my first cms of choise for all my projects. Also have to say, this registration process on the site was so frustrating, and reason is the "security question". I was trying and trying and trying, and getting the same error (invalid question answer or so...). Question are like: "Processwire has modules like ProCache and FormBuilder. Type in one of them." Its clear that one have to write ProCache or FormBuilder , but its not stated that it should be all lowercase, so its confusing and causing errors, i had like 20 before i figured, or its just that im a bit "slow".
×
×
  • Create New...