Archived

This topic is now archived and is closed to further replies.

  • 0

How To Use Carousel Hook - Pagelines_Carousel_List


Question

Posted · Report post

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?

Share this post


Link to post
Share on other sites

8 answers to this question

Posted · Report post

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. ;)

 

http://bearded-avenger.com/better-carousel

 

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

Share this post


Link to post
Share on other sites

Posted · Report post

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.

Share this post


Link to post
Share on other sites

Posted · Report post

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.

Share this post


Link to post
Share on other sites

Posted · Report post

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 http://www.pagelines.com/pros

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

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.

Share this post


Link to post
Share on other sites

Posted · Report post

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...

Share this post


Link to post
Share on other sites