Jump to content
Sign in to follow this  
Elizabeth

Can I create custom sections?

Recommended Posts

Elizabeth

I've searched but can't find the answer to this anywhere so apologies if I just haven't found it. I've created custom pages, used hooks etc. but can I create custom sections? I'm building a site where I want to list products. I'm using banners to do this but it would be good if I could write custom 'products' based on the banners so that editors can fill in the image, product name, description, price and Paypal button. I can see the section.banners.php file in Pagelines Pro but not in Pagelines Base. Can I just copy it across to Base and rename it section.products.php and then edit functions.php to include the pagelines_register_section() function to add this in? I guess that would work but then how would I get the Products to appear on the left-hand side like Banners do? Is this a whole new plugin that I'd need to write? Feel like I'm understanding enough to be dangerous! Any help much appreciated.

Share this post


Link to post
Share on other sites
cmunns

Yes that is right...you can add your own section...copying the banners section is a good starting point...just make sure you change each reference to the banner to product instead...it may take trial and error but that is the idea.

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  

×