Jump to content

sappel

Members
  • Posts

    72
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

1,946 profile views

sappel's Achievements

Full Member

Full Member (4/6)

13

Reputation

1

Community Answers

  1. <?php include('./_head.php'); // include header markup ?> <!-- Basic stylesheet --> <link rel="stylesheet" href="/site/owlcarousel/assets/owl.carousel.css"> <!-- Default Theme --> <link rel="stylesheet" href="/site/owlcarousel/owl.theme.default.min.css"> <!-- Include js plugin --> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script src="/site/owlcarousel/owl.carousel.js"></script> <div id='content'><?php // output 'headline' if available, otherwise 'title' echo "<h1>" . $page->get('headline|title') . "</h1>"; // output bodycopy echo $page->body; ?><div class='owl-carousel'><?php foreach($page->images as $image) echo "<img src='$image->url' alt='$image->description' />\n"; ?> </div> <script> var owl = $('.owl-carousel'); owl.owlCarousel({ items:4, loop:true, margin:10, autoplay:true, autoplayTimeout:3000, autoplayHoverPause:true }); $('.play').on('click',function(){ owl.trigger('autoplay.play.owl',[1000]) }) $('.stop').on('click',function(){ owl.trigger('autoplay.stop.owl') }) </script> </div> <!-- end content --> hm k. I got it more or less running! Looks good so far, the only thing I'm thinking about is the dots below won't show up (haven't looked into that yet) and the transition speed might be a little fast... But thanks for now!
  2. oh, and before I forget: How can I call all the images from the site with PW methods for the different items of owlcarousel?
  3. <?php include('./_head.php'); // include header markup ?> <!-- Basic stylesheet --> <link rel="stylesheet" href="site/owlcarousel/owl.carousel.min.css"> <!-- Default Theme --> <link rel="stylesheet" href="site/owlcarousel/owl.theme.default.min.css"> <!-- Include js plugin --> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script src="site/owlcarousel/owl.carousel.js"></script> <div id='content'><?php // output 'headline' if available, otherwise 'title' echo "<h1>" . $page->get('headline|title') . "</h1>"; // output bodycopy echo $page->body; ?> </div> <div class="owl-carousel"> <div class="item"> <h2>Swipe</h2> </div> <div class="item"> <h2>Drag</h2> </div> <div class="item"> <h2>Responsive</h2> </div> <div class="item"> <h2>CSS3</h2> </div> <div class="item"> <h2>Fast</h2> </div> <div class="item"> <h2>Easy</h2> </div> <div class="item"> <h2>Free</h2> </div> <div class="item"> <h2>Upgradable</h2> </div> <div class="item"> <h2>Tons of options</h2> </div> <div class="item"> <h2>Infinity</h2> </div> <div class="item"> <h2>Auto Width</h2> </div> </div> </div> </div> </div> <script> var owl = $('.owl-carousel'); owl.owlCarousel({ margin: 10, loop: true, responsive: { 0: { items: 1 }, 600: { items: 2 }, 1000: { items: 3 } } }) </script> <!-- end content --> Hello everyone, I'm currenty trying to add a nice shiny image slider working on my vineyard site. I have an overview site with all offered/available vines and I have a bunch of images in that site. Now I want to view those images on the frontend in a nice little slider. I found owl-carousel here on the forums to look pretty good and I'm trying to follow this how to: http://www.owlcarousel.owlgraphic.com/docs/started-installation.html It's the new 2.0.0 beta and I like the demo slider with 3 images at a time, and the dots... So what I tried so far, I see the divs/items, but nothing close to a slider appears...so I guess I do something wrong in the beginning and/or I'm way to stupid... Can anyone point me in the right direction?
  4. aahh, TextColor and BGColor, thanks alot!
  5. ​Hello everybody, ​ I guess an easy question for you gusys: How can I configure ckeditor to look like here in the Forums? Actually I only need Text Color right now, but I don't know what kind of values I can add to the body input field. ckeditor toolbar settings look like the right place, I just don't know the options...
  6. EDIT - It works now. Somehow. Really weird, I'll tell you what I did: I was wondering, if there was something wrong with my template.php. So I added a new textfield to my template, inserted some random test text editing the site, then I echoed the following in my template.php: echo $page->get('slider|mytextfield'); ​And guess what? My slider ID showed up... I removed the changes , and the slider ID kept loading. So I loaded the slider like described in the readme and removed the echoing of the slider ID and the slider actually loads. But it doesn't behave like I want it to, but I problably didn't set up the slider corretly. I'll look into that again. It just shows me a combination off all the slides, no effects, nothing..
  7. Hi, this looks really great, however I have the same problem like hamzaalibhatti... I installed all the modules, uploaded the jssor libs and when the first try didn't work, I did the following: ​Add a new field called "slider" type "Slider" (uppercase...don't know, if that's an issue here?) ​Add the field "slider" to my template "wines" ​Select the slider I created for the first test in the site using the template "wines" ​add "echo $page->get('slider'); to my template file wines.php ​Loading the site doesn't show any slider id. What am I doing wrong? The whole code of my template wines is​ pretty basic... ​ <?php include('./_head.php'); // include header markup ?> <div id='content'><?php // output 'headline' if available, otherwise 'title' echo "<h1>" . $page->get('headline|title') . "</h1>"; // output bodycopy echo $page->body; // $slider = $modules->get('MarkupSlider'); echo $page->get('slider'); // echo $slider->getStyles($arrows = false, $bullets = false); // echo $slider->render($page->get('weinbilder'), $includeScript = true, $options = array()); ?></div> <!-- end content --> <div id='sidebar'><?php // rootParent is the parent page closest to the homepage // you can think of this as the "section" that the user is in // so we'll assign it to a $section variable for clarity $section = $page->rootParent; // if there's more than 1 page in this section... if($section->hasChildren > 1) { // output sidebar navigation // see _init.php for the renderNavTree function renderNavTree($section); } // output sidebar text if the page has it echo $page->sidebar; ?></div><!-- end sidebar --> <?php include('./_foot.php'); // include footer markup ?> ​
  8. Good Morning everyone, ​ ​I'm trying to understand PW a little more for some new projects I'm currently planing. One projects is an order form I'm trying to develop with Padloper. Now I have a separate product page template for 8 different products/sites. The main content window always includes a description of the product, the price information + add to cart button are placed in the sidebar. Now I want an overview page with all sidebars of all product pages included. In doing so I have two ways to add products to the order list: from the detailed product page and from the overview page. But how can I include the sidebar content of a page (or in this case serveral sidebar contents) into another? Any help is appreciated, ​ ​ ​regards sappel
  9. Good Morning all together, ​ ​I've been using processwire a few years ago for one or two sites, but haven't looked into it for quite some time. ​ ​Now I'm planing two new sites and I'm not comfortable with Wordpress, which I used in between.. ​ ​Also for the current projects I didn't find any good solution yet. I need to set up two sites with something like a product catalog and an order / inquiry form. I don't want any shop functionality , because that would involve other legal aspects and we don't want customer data or payment options/data within the sites. The general idea is: Show a catalog with a bunch of products. Visitors can browse the catalog, select several products (if possible with options for some products), add them to some kind of basket, but at the end they don't have a shopping basked to checkout, pay etc, but only a shopping basket to set an inquiry to us. ​ ​Should the form builder do the trick here and/or how could I set up the catalog? ​ ​I'll set up my test environment today and start testing, any feedback is appreciated. ​ ​Thanks in advance ​
  10. hello, any news on the project? I'm curious about a booking system as well. It's for medical appointments...
  11. @ryan: "required if" + "view if" seem to be partly fixed. I just updated to latest dev and have the following behaviour: My current version of the form has a fieldset, which is only visible if a certain box is checked. Within this fieldset, all required fields are shown properly in the editor, but the data in the DB is "null". I have 3 required fields within the fieldset which act like this and I have 3 other fields in subfieldsets, which are only required if another field within the same subfieldset has a value>0. Same behaviour here...
×
×
  • Create New...