Jump to content


Photo
- - - - -

How To Use Carousel Hook - Pagelines_Carousel_List

carousel hook

Best Answer thejinxters , 28 November 2012 - 07:46 PM

I have moved on, but for anyone interested, this appears to be the solution the solution I happened upon while looking for something else:

 

http://adammunns.com...ith-thumbnails/

 

Good luck and happy coding!

Go to the full post


  • Please log in to reply
8 replies to this topic

#1 thejinxters

thejinxters

    Newbie

  • Members
  • 9 posts
  • Country: Country Flag

Posted 22 October 2012 - 07:33 PM

I am looking to add a custom image with a link to an external site to the carousel. The 3 default options of post, flickr, and nextgen, cannot do this. There is a 4th option called pagelines_carousel_list hook. How do I use this hook? I know how to use hooks in the functions.php of my child theme, however I do not know the syntax needed to place images inside the carousel. Could I get an example of this being done or at least the syntax used to place images in the carousel?

#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 22 October 2012 - 11:38 PM

The carousel is an older technology and using a hook on it is an excellent way to crash the carousel and likely, the entire site.

To meet your needs, I'd recommend finding an alternative carousel plugin.

#3 thejinxters

thejinxters

    Newbie

  • Members
  • 9 posts
  • Country: Country Flag

Posted 23 October 2012 - 12:43 AM

That is strange! Why is this an option in the pagelines framework if it is likely to crash a site? There has to be a reason this was coded into the framework...

#4 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 23 October 2012 - 03:02 AM

The statement I made above was pretty clear and not intended to confuse anyone into thinking that the carousel is subject to crashing anyone's site. The key is not the carousel, it's those who'd try to apply a hook anywhere. Improperly added hooks in the most up to date sections may cause the best maintained site to crash, irrespective of the framework or platform. Sometimes things just don't belong and can cause damage.

The reason our carousel is viable option in PageLines is simply that it works across browsers and when used properly, it just plain works.

Things don't break down until radical changes are made. Hooks in a carousel are radical and not supportable.

If our carousel doesn't work, we heartily recommend replacing it with something that is more akin to a client's needs.

#5 thejinxters

thejinxters

    Newbie

  • Members
  • 9 posts
  • Country: Country Flag

Posted 23 October 2012 - 03:31 AM

The statement I made above was pretty clear and not intended to confuse anyone into thinking that the carousel is subject to crashing anyone's site.


My statement was refering to the option of pagelines_carousel_list hook being in the dropdown menu within the carousel section, NOT about the carousel as a viable section.

The key is not the carousel, it's those who'd try to apply a hook anywhere. Improperly added hooks in the most up to date sections may cause the best maintained site to crash, irrespective of the framework or platform.


Thats precisely the reason I came to this forum: to ask how to do it properly. I understand that hooks used improperly can crash a site, plugin, section, etc. I am only asking how this hook was originally intended to be used so that I may expiriment on my own. If you do not know, or do not want to help, so be it. If anyone on this forum does know, please respond to this topic. Thanks.

#6 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 23 October 2012 - 04:44 AM

First, let me apologize if you think I was insulting you. No such intent.

Second, we do not support the use of hooks in core sections. That's a customization that requires the assistance of a pro.

I was answering your question which impunes that we're placing a section likely to crash a site:

Why is this an option in the pagelines framework if it is likely to crash a site?


I point out that we did not add a section that will crash anyone's site, but that when anyone does unintended and unsupported things with them, it will crash it. Modification of core sections is never supported. As I said, twice before, the solution here, rather than debating this is to find a suitable alternative as any of our developers will tell you.

The hook you mention was coded to make the section work, not to enable customization.
I was answering this quote as well with that information:

There has to be a reason this was coded into the framework...


We'd be happy to provide you access to several of our great pro developers to help with modifications, but those are simply not supportable in this forum. Please see

Please Login or Register to see this Hidden Content



#7 thejinxters

thejinxters

    Newbie

  • Members
  • 9 posts
  • Country: Country Flag

Posted 28 November 2012 - 07:46 PM   Best Answer

I have moved on, but for anyone interested, this appears to be the solution the solution I happened upon while looking for something else:

 

Please Login or Register to see this Hidden Content

 

Good luck and happy coding!


  • wicks likes this

#8 James B

James B

    Advocate

  • Moderators
  • 4983 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 28 November 2012 - 10:08 PM

Thanks for posting the solution which could help other users :-)



#9 beardedavenger

beardedavenger

    Unicorn Wrangler

  • Members

  • 1219 posts
  • Country: Country Flag

Posted 29 November 2012 - 03:08 PM

I also created Better Carousel, a new and improved Carousel plugin with extended post support. Stream any category, multiple categories, and even post types. AND, it's responsive. ;)

 

Please Login or Register to see this Hidden Content

 

Should be up on the store shortly, it's currently in the review phase.