Jump to content

L. Leopold

Members
  • Posts

    23
  • Joined

  • Last visited

Everything posted by L. Leopold

  1. A suggestion someone posted in the original thread regarding this topic solved. The problem was in the database, I just had to delete it and start a new one. https://processwire.com/talk/topic/7207-can´t-install-languagesupport/?p=106245 Thank you very much for you help! Leo
  2. Thanks a lot manuel! That was the solution, it was easier than I thought. (sorry that I didn't write earlier. I hurry with some projects and forgot about it.)
  3. Oh my god, thank you Ivan! I can't believe I was only one dot away from my solution XD like I said I tried many of the $content = variations... what would I just do without this forum!
  4. Hi everyone, I know the answer is right in front of me, but I've searched it for days already. I guess I'm still a beginner... please help me! I'm using the multi-language site profile, suggested in the installation of processwire, if that helps. I want to apply the fancybox only to the images of one template. Fancybox is already running, I put the necessary code in the _main.php file. <link rel="stylesheet" href="<?php echo $config->urls->templates?>scripts/fancybox/source/jquery.fancybox.css" type="text/css" media="screen" /> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <script type="text/javascript" src="<?php echo $config->urls->templates?>scripts/fancybox/source/jquery.fancybox.pack.js"></script> <script type="text/javascript"> $(document).ready(function() { $(".gallery").fancybox({ }); });</script> Therefore I created a new template php called "gallery.php" and put that code inside. foreach($page->images as $image) { $thumbnail = $image->size(150,100); echo "<a class='gallery' rel='gallery-1' href='{$image->url}' title ='{$thumbnail->description}'><img src='{$thumbnail->url}' style=' padding: 5px;' ></a>"; } Now it shows the kind of gallery I want to have, but at the wrong possition of the site. I just don't know what I have to write in there to change the position. perhaps it is something like $content =... , but I already tried every combination I could think of and I've looked at all the tutorials I could find. I'm thankfull for any help, Leo
  5. Hi everyone, I got a serious problem with the LanguageSupport module. I already found a forum thread regarding the topic, but it doesn't work in my case. https://processwire.com/talk/topic/7207-can%C2%B4t-install-languagesupport/ My problem is, that "ProcessLanguage" can get installed but "LanguageSupport" doesn't. I can uninstall ProcessLanguage via the Module configuration, but that doesn't change anything. I always get this Error: I've found a "Languages" Page under Admin/Setup and deleted it with this code https://processwire.com/talk/topic/7207-can´t-install-languagesupport/?p=69520 I also deleted the LanguageSupport module via FTP from the server and uploaded the newest version of it. The error still occurs. I'm still a beginner and don't know how to deal with it. Please help me! I'm using the Blue-VR Site Profile made by Gayan Virajith, if that information helps. Thanks a lot in advance, Leo
  6. I've deleted this Languages Page with this code from that forum post https://processwire.com/talk/topic/7207-can´t-install-languagesupport/?p=69520 I also deleted the LanguageSupport module via FTP from the server and uploaded the newest version of it. The error has changed a bit but is still there I don't have any idea how to fix it, do you? Do you guys think there is a way to build an easy multilingual website without the LanguagesSupport Modules?
  7. Hi horst, I checked everything and found the page "Languages" in the Setup folder. But I don't think it causes problems
  8. Sorry that I'm asking so many things recently. I got a serious problem with the Muli-Language-Support. I already found a solution in the forum, but I don't know how to apply it... https://processwire.com/talk/topic/7207-can%C2%B4t-install-languagesupport/ My problem is, that "ProcessLanguage" seems to be installed and that without "LanguageSupport" running. I always get the Error I can uninstall ProcessLanguage through the Module configuration, but it doesn't help. If I then try to install LanguageSupport it installs ProcessLanguage first, but doesn't install LanguageSupport... thanks for your help!
  9. Because I needed an answer pretty fast, I asked at another place in this forum too. With help of adrian I figured it out https://processwire.com/talk/topic/11296-how-to-include-home-into-the-navigation-blue-vr-site-profile/?p=105392
  10. Hi adrian, that's awesome, it worked! Thanks a million times! http://watanabe-yakushima.com/ I always thought I've got to work in the navigation.inc file...
  11. I have tried that way already in different ways. I didn't find the right terms or the right place for it. This is the current code for my navigation: /** * Render a <ul> navigation list * */ function renderNav(PageArray $items, array $options = array()) { if(!count($items)) return ''; $defaults = array( 'class' => '', // class for the <ul> 'active' => 'active', // class for active item 'tree' => false, // render tree to reach current $page? ); $options = array_merge($defaults, $options); $page = wire('page'); $out = "<ul class='$options[class]'>"; foreach($items as $item) { // if this item is the current page, give it an 'active' class $class = $item->id == $page->id ? " class='$options[active]'" : ""; // render linked item title $out .= "<li$class><a href='$item->url'>$item->title</a> "; // optionally render a tree recursively to current $page if($options['tree']) { if($page->parents->has($item) || $item->id == $page->id) { $out .= renderNav($item->children("limit=50"), array( 'fields' => $options['fields'], 'tree' => true, )); } } $out .= "</li>"; } $out .= "</ul>"; return $out; } /** * Render a <ul> navigation list * */ function renderTopNav(PageArray $items, array $options = array(), $level = 0) { $defaults = array( 'tree' => false, // number of levels it should recurse into the tree 'dividers' => false, 'repeat' => true, // whether to repeat items with children as first item in their children nav ); $options = array_merge($defaults, $options); $divider = $options['dividers'] ? "<li class='divider'></li>" : ""; $page = wire('page'); $out = ''; foreach($items as $item) { $numChildren = $item->numChildren(true); if($level+1 > $options['tree'] || $item->id == 1) $numChildren = 0; $class = ''; $anchorProperties = ""; $anchorClass = ''; $dropdownCaret = ''; $title = $item->title; if($numChildren) { $class .= "dropdown "; $anchorProperties = "data-toggle='dropdown'"; $anchorClass = 'dropdown-toggle'; $dropdownCaret = '<b class="caret"></b>'; } if($page->id == $item->id) $class .= "current "; if(($item->id > 1 && $page->parents->has($item)) || $page->id == $item->id) $class .= "active "; if($class) $class = " class='" . trim($class) . "'"; $out .= "$divider<li$class><a class='{$anchorClass}' href='$item->url' {$anchorProperties} title='{$title}'>$title $dropdownCaret</a>"; if($numChildren) { $out .= "<ul class='dropdown-menu'>"; if($options['repeat']) $out .= "$divider<li><a href='$item->url'>$item->title</a></li>"; $out .= renderTopNav($item->children, $options, $level+1); $out .= "</ul>"; } $out .= "</li>"; } return $out; }
  12. Hi alejandro, hi WillyC, I've got the same problem. It says: I can uninstall ProcessLanguage through the Module configuration, but it doesn't help. If I then try to install LanguageSupport it installs ProcessLanguage first, but doesn't install LanguageSupport... I already deleted Languages Page I found in the Setup, but it didn't change anything. I'm using the Blue-VR Site Profile made by Gayan Virajith, if that information helps. I know you solved the problem already, but I'm still a beginner and don't really understand the solution mentioned. How exactly can I use this uninstall function? Where do I have to put the code in to run it? Thanks a lot already, Leo
  13. Hi guys, I got a problem that drives me crazy. I just want to have the root of my page shown in the top navigation, together with its children. I've been searching for days by now, please help me. in the navigation.inc file it says Credits: * I have used some same navigation methods used by Ryan Cramer. * So full credit to Ryan Cramer */ so I compared Ryan Cramers navigation with the one used in the Blue VR Site. Cause in Ryans Foundation Site navigation the root (or Home) is already part of the navigation. It didn't help me much, I still can't figure out what to change. https://github.com/ryancramerdesign/FoundationSiteProfile/blob/master/site-foundation/templates/_nav.php https://github.com/gayanvirajith/BlueVrSiteProfile/blob/master/templates/_navigation.inc I tried a lot of different things, that either didn't show any effect, or broke the complete site. If you have a suggestion what could work, I'm gratefull for any hint! Thanks in advance!
  14. Hi guys, I got another problem that drives me crazy. I just want to have the root of my page shown in the navigation. I've been searching for days by now. please help me. in the navigation.inc file it says Credits: * I have used some same navigation methods used by Ryan Cramer. * So full credit to Ryan Cramer */ so I compared Ryan Cramers navigation with the one used in the Blue VR Site. Cause in the Foundation Site navigation the root (or Home) is already part of the navigation. It didn't help me sadly. https://github.com/ryancramerdesign/FoundationSiteProfile/blob/master/site-foundation/templates/_nav.php https://github.com/gayanvirajith/BlueVrSiteProfile/blob/master/templates/_navigation.inc I tried a lot of different things, that either didn't show any effect, or broke the complete site. If you have a suggestion what could work, I'm gratefull for any hint! Thanks in advance!
  15. Thank you guys! I already was pretty close with your help I asked a friend for help and he found out what was wrong. Now the descriptions work http://watanabe-yakushima.com/gallerie/ echo "<a class='gallery' rel='gallery-1' href='{$image->url}' title ='{$thumbnail->description}'><img src='{$thumbnail->url}' style=' padding: 5px;' ></a>"; It was right to put the description in <a> not into <img>, but fancybox only listens to 'title' 'alt' somehow didn't work
  16. Hi horst, sorry I didn't noticed your post right away. Thanks for the hint! you are right: when I don't do it with the anchor tag, but with the fancybox settings, I can add text, but still not the right one. when I do it like this <script type="text/javascript"> $(document).ready(function() { $(".gallery").fancybox({ 'alt':'{$thumbnail->description}' }); }); nothing happens when I use 'title' <script type="text/javascript"> $(document).ready(function() { $(".gallery").fancybox({ 'title': 'yourtitle' }); }); </script> then yourtitle appears under my images. Sadly 'title':'{$thumbnail->description}' isn't working either...
  17. Yeah, it should do so, but for some reason it doesn't. This is the suggested code: alt='{$thumbnail->description}' but somehow it doesn't show the description. I already tried many other variations, with $images, title, caption, and so on, but nothing shows up. perhaps I have to put something in the curly brackets? $(".gallery").fancybox({ });
  18. Thank you so much everyone! My gallery looks so much better already http://watanabe-yakushima.com/gallerie/ I just have to figure out how to add the descriptions of the images. That's not working yet
  19. Hi Gayan, thank you very much! I'm happy that I found your Blue VR Site, everything must look good with it. I checked the paths and corrected them, now fancybox is working I just don't know how and where to put the .gallery class to. Where can I find the the anchor tag? (I'm sorry, I'm a beginner) I put this into the _done.php, but I think it has to be moved to this anchor tag <script type="text/javascript"> $(document).ready(function() { $(".gallery").fancybox(); });
  20. I pretty much like processwire for the same reasons. Other cms systems where much more frustrating and less logical. Okay: I uploaded the fancybox files via FTP and I put the links to the fancyboox jquery in the code of the _done.php like this: <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="<?php echo $config->urls->templates?>scripts/source/jquery.fancybox.css"> (around line 41) <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script> <script type="text/javascript" src="<?php echo $config->urls->templates?>scripts/jquery.flexslider.js"></script> <script type="text/javascript" src="<?php echo $config->urls->templates?>scripts/jquery.appear.js"></script> <script type="text/javascript" src="<?php echo $config->urls->templates?>scripts/smoothscroll.js"></script> <script type="text/javascript" src="<?php echo $config->urls->templates?>scripts/jquery.functions.js"></script> <script type="text/javascript" src="<?php echo $config->urls->templates?>scripts/fancybox/jquery.fancybox.pack.js"></script> (around line 137) But then I wasn't sure anymore where to put the rest. I put this code right beneath the other javascript line: <script type="text/javascript" src="<?php echo $config->urls->templates?>scripts/fancybox/jquery.fancybox.pack.js"></script> <script type="text/javascript"> $(document).ready(function() { $(".gallery").fancybox(); }); And I put the markup for the images into the basic-page.php: <?php foreach($page->images as $image) { $thumbnail = $image->size(150,100); echo "<p><a class='gallery' href='{$image->url}'><img src='{$thumbnail->url}' alt='{$thumbnail->description}' ></a></p>"; } ?> The result I get now is this http://watanabe-yakushima.com/gallerie/ The images show up a second time in the thumbnail format. I think my biggest problem is, that I don't know how do I add the .gallery class to my images. Where can I do that?
  21. A million thanks elabx! This sounds pretty logical, I will try it right away. I'm teaching myself webdesign and I still miss a lot of the basic skills. This will take a while
  22. Thanks a lot biotech! I already tried to make a gallerie this way: http://watanabe-yakushima.com/gallerie/ It just doesn't look very good and I thought there has to be a more elegant way to do it. I would really love to use the FancyBox jQuery script/plugin but I don't know how to combine it with the Blue VR Site.
  23. Dear Gayan, I'm a bloody beginner in processwire, my apologies beforehand... I installed your Blue VR Site and I really love it. I just have one big problem and I couldn't find anything helpfull regarding my problem in this forum. I want to show a simple photo gallery on one page of the site and I couldn't manage to make it work. Even with the easiest tutorial it didn't work https://processwire.com/docs/tutorials/galleries-short-and-long/page2 You have the Images field set up in your sites structure, but it doesn't show images when used. My problem is, that I don't know how to add markup to the template file, so that the images show up. I think it isn't working because I don't really know how the delegate template thing really works. Thanks in advance, Leo
×
×
  • Create New...