Jump to content
Sign in to follow this  
lifelikelife

Can you add sections in as hooks?

Recommended Posts

lifelikelife

Hi guys, this might be an incredibly stupid question (I'm not a developer tho so meh) I was wondering if it's possible to add custom sections into a theme as hooks? 

 

For example, I want to add the 'better carousel' section below every 'features' section. I was hoping there was some code I could add to the 'pagelines_feature_nav_before' hook that would make the better carousel section appear there.

 

I thank you in advance for your time!

 

 

 

 

 

Share this post


Link to post
Share on other sites
beardedavenger

Unfortunately the very mechanism that allows sections to only load their code on the pages they are used, is the same mechanism that prevents being able to add a section using a hook like you're wanting.

  • Like 1

Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
Rob

Hi,

 

Nick is essentially correct.  However, some sections can be cloned on a page.  Did you check to see if the sections you want repeated are clonable in Dashboard > PageLines > Drag & Drop?

 

A developer can also create a custom section for you.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
lifelikelife

Hi guys, thanks for your answers! I've worked around what I need to do, but thanks for clarifying it can't be done via hooks :)

 

Juan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×