Jump to content
Sign in to follow this  
ashriver

Creating a custom template

Recommended Posts

cl5702

Love your them but I have to be able to create a custom template page as well. Probably more than one. For me - I am using a plugin that generates dynamic pages. I must choose a template page - and I cannot alter it. So, normally I would create multiple custom template pages for different types of dynamic pages. This is so easy to do in most wordpress child themes that plugin creators do expect you to have this capability. So - please - tell me how to do this. :-)

Share this post


Link to post
Share on other sites
cl5702

I copied one of the page templates from Platformpro into Platformbase (the child theme) and renamed it (Template Name). Now I can choose this template page - it shows up easily enough. And from another thread (http://www.pagelines.com/forum/topic.php?id=5354) I see that I should edit the config.templates.php which I found in the platform pro config folder. I have to add my new template name to the array inside the function pagelines_get_page_templates(){... OK - I see how to edit that function - but do I put the edited version of the function in child theme's function.php?

Share this post


Link to post
Share on other sites
Kate

Hi Christine - This is marked for developer review. They should be in touch shortly, here on the forum...

Share this post


Link to post
Share on other sites
Andrew

Hi Christine, The best answer to this question is to wait until version 1.3.0 comes out. This is undocumented functionality. The real answer is not to edit anything in the core framework. Add a function like so: `pagelines_add_page('pricing', 'Pricing Page');`

Share this post


Link to post
Share on other sites
makeylon

I've been waiting on this functionality as well. I've tried creating the custom template and (following all available directions) have never been able to get it to work. I was able to add a custom template, but couldn't get any sections to save on the template so it was always just a blank page. @Andrew - I know you must be working hard on getting 1.3.0 out, but could you give us a hint as to a rough time estimate that it might be ready?

Share this post


Link to post
Share on other sites
Andrew

@Mark, can't give exact estimates.. we are relatively close though; depends on if we want to add more or not

Share this post


Link to post
Share on other sites
makeylon

@Andrew Awesome! Okay, so sometime between now and when you release it... :) (Just playin. Kinda thought that would be the answer...lol).

Share this post


Link to post
Share on other sites
cl5702

Update from my previous post. Now that I have used this system for awhile, I have to say that there are few cases where one might actually need a custom template, because every page IS already so customizable. When I posted on this thread earlier - I was just learning the system. You have so many options - it's a bit overwhelming at the beginning. On any page one can choose from the six layouts from the layout editor - how many sidebars - or no sidebars - or what arrangement (left, right, how many...) It was the switching out of sidebars that confused me initially. Perhaps this could be demonstrated more. Perhaps an instructional video specifically just on page customization (sidebars especially) might help. Rather than needing a custom template - one might perhaps need to add a custom sidebar - and that will accomplish what is needed for some specialized page, as in the base child theme. I can still think of a reason why I might want a custom template - so it might be nice to have. But I think I was so used to needing custom templates for other themes that I didn't realize how easy it is to switch and modify templates until I used this theme for awhile.

Share this post


Link to post
Share on other sites
cmunns

ding! haha My thoughts exactly Christine...I think the biggest need for custom templates is on non-meta pages such as category, archive, and search pages...which is the sort of thing we'll have to really think about. But thanks for posting about your revelation.

Share this post


Link to post
Share on other sites
Sourena
I think the biggest need for custom templates is on non-meta pages such as category, archive, and search pages
I agree. I think those are the only templates is missing in the "Template Setup".

alefba.us

Web Development & Design for Right-to-Left languages

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  

×