Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: How to make a normal URL work inside Featured Content Glider?

  1. #11
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmm the zip file didn't seem to have uploaded properly. Please re-zip and upload again.
    DD Admin

  2. #12
    Join Date
    Feb 2015
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

  3. #13
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Ok, try the latest modified .js file,which lets you specify a list of URLs to go to when the pagination links are clicked on, respectively, inside the initialization portion of the script. This lets you define the URLs without touching the dynamic, PHP generated portion of the script. To specify the links, add the code in red to your initialization code:

    Code:
    <script type="text/javascript">
    
    featuredcontentglider.init({
    	gliderid: "canadaprovinces", //ID of main glider container
    	contentclass: "glidecontent", //Shared CSS class name of each glider content
    	togglerid: "p-select", //ID of toggler container
    	remotecontent: "", //Get gliding contents from external file on server? "filename" or "" to disable
    	selected: 0, //Default selected content index (0=1st)
    	persiststate: false, //Remember last content shown within browser session (true/false)?
    	speed: 500, //Glide animation duration (in milliseconds)
    	direction: "downup", //set direction of glide: "updown", "downup", "leftright", or "rightleft"
    	autorotate: true, //Auto rotate contents (true/false)?
    	paginationlinks: ['http://cnn.com', 'http://google.com', 'http://dynamicdrive.com'],
    	autorotateconfig: [3000, 2], //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
    	onChange: function(previndex, curindex, $allcontents){ // fires when Glider changes slides
      		//custom code here
    	}
    })
    
    
    </script>
    Attached Files Attached Files
    DD Admin

  4. #14
    Join Date
    Feb 2015
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Alright, thanks. But I want the reader to be able to click on each of the (in my case) five elements in the selector, and go to the full article. So somehow, paginationlinks must contain those five links. Links to the last five posts. How to do that? When I tried this, it worked for the first item in the selector, but not the next four.

    To have an extra loop in there would not be desirable, as it would slow down the server.
    Last edited by nberidze; 02-26-2015 at 10:27 PM.

  5. #15
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Quote Originally Posted by nberidze View Post
    Alright, thanks. But I want the reader to be able to click on each of the (in my case) five elements in the selector, and go to the full article. So somehow, paginationlinks must contain those five links. Links to the last five posts. How to do that? When I tried this, it worked for the first item in the selector, but not the next four.
    Hmm by "each of the (in my case) five elements in the selector" do you mean each pagination link should go to a different URL, so if you have 5 pagination links, that means 5 links? If so this is simply done by specifying 5 links inside the paginationlinks option:

    Code:
    paginationlinks: ['http://cnn.com', 'http://google.com', 'http://dynamicdrive.com', 'http://javascriptkit.com', 'http://cssdrive.com'],
    DD Admin

  6. #16
    Join Date
    Feb 2015
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Did you read my featured.php? If so, you see that the togglebox queries wordpress for five posts and shows the title, category and author of each. I want the reader to be able to open the permalink to the corresponding post by clicking.

  7. #17
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Looking at featured.php in more detail now, I gather this is the portion of each pagination link that you actually want to onmouseover to load a panel, and onclick to go to a specific URL:

    Code:
    <span class="fet"><?php the_title(); ?></span>
    ?

    Do you have a link to the fully generated page? It'll make things lot easier to picture.
    DD Admin

  8. #18
    Join Date
    Feb 2015
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have sent you the link in a private message. Please get back to me when you have had a chance to look at it.
    Last edited by nberidze; 03-01-2015 at 09:56 PM.

Similar Threads

  1. Combining Featured Content Slider with Featured Content Glider problems.
    By ortizhj in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 05-18-2011, 02:12 PM
  2. Featured Content Glider toggle inside wrapper?
    By rzucco in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 04-21-2010, 01:45 PM
  3. lightbox don't work with Featured Content Glider
    By imen in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 02-25-2010, 04:09 PM
  4. Featured Content Glider Help
    By nemetzger in forum Dynamic Drive scripts help
    Replies: 11
    Last Post: 01-10-2010, 03:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •