• 0
Sign in to follow this  
Followers 0

Multiple blog post templates (layouts)

Question

Posted · Report post

I am trying to create a blog that has two different types of Posts. I know there are ways to create many different templates for Pages, but I can't find a way to create an additional layout for blog posts. Ideally, I'd like a default and be able to select which template(layout) to apply in the Add New Post editor. Is this possible with PageLines? Thank you for any help.

Share this post


Link to post
Share on other sites

15 answers to this question

  • 0

Posted · Report post

Which theme are you using?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thus far I've installed the PageLines framework and paid for the Pro edition but I don't believe I've actually assigned a specific theme anywhere. Do you recommend one that will accommodate multiple post layouts?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

If you install PageLines Pro (the theme), the post editor itself offers multiple layout modes and the ability to disable certain sections in the PageLines Meta Settings and PageLines Section Control.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thank you. I think I'm starting to see how its possible... I can select the layout in the meta settings and style them differently by targeting
vs.
in the Custom PageLines Plugin CSS, correct?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Yes, that is possible.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for your help on this, this is working nicely for the single posts. What I've run into now is an issue on the homepage main blog feed of posts. I'm only able to select one layout for the entire feed and all posts format to that layout. But I want it to display each post in the layout I specify in the add new posts admin. Is there a hook I can add that will wrap the one-sidebar-left post content in an additional div on the homepage? If I manually add a div wrapper in the HTML view of individual posts I'm able to style them. I just don't want to have to manually put code in each post when I'm already selecting a layout in the posts meta settings. Any help is much appreciated.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Can you show us a mockup image of what you want to do? I'm a bit unclear. What should it look like?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

[url="http://nathanielwhitcomb.com/ForReview/screenshots.jpg"]http://nathanielwhitcomb.com/ForReview/screenshots.jpg[/url]

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Just a question for clarification... Can you scale the city image to a particular size, align it right (in the image settings), scale the audio bit, align it left with CSS, and let the layout appear as you desire without special divs?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I could, but that would involve going into every post and changing more settings. Adding a div would be easier at that point. I'm redesigning a blog that has hundreds of posts. If one function could wrap it then I wouldn't have to go into each post manually. I figured since I'm already assigning the layout in the meta settings there must be a way to access that info in the blog feed. It appears as though that info is getting wiped out somewhere though. Does that make sense?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Actually, yes it does. My only problem is I don't have the skillset to write the code. I suspect you're going to need the assistance of one of our Pros for this. Catrina's correct. it is possible. It's only the execution that we're not prepared to guide because we moderators aren't developers. I hope you understand where I'm coming from on this. I'd love to help. I had to use the method I described above for my own site. If there's a better way, I'd love to implement it too.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

No worries. I only know enough php to be dangerous. How do I get in contact with a Pro to ask them?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

If I understand you correctly, you wish to have different layouts for Blog Posts, which you can choose by selecting an option, is this correct ? If so, this would require custom code, far beyond what we provide here on the support forums, if you wish to have such functionality, I recommend you contact one of the PageLines Pros and see if they can assist you. http://www.pagelines.com/pros/ However, the easiest way I can think of, although not the shortest in terms of time frame would be to use the PageLines grid system, wich you can see here. http://demo.pagelines.com/framework/tools/ In the menu, select Grid System.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I've actually figured out how to get multiple layouts for blog posts, but only for single posts views. When viewed in the homepage blog layout mode it only formats them according to that one layout. I can work around it by manually placing divs around the content in the html view of a post but I thought it may be easier to do that with a php hook since it should theoretically have that info stored somewhere (if its full width vs sidebar left, etc). Perhaps not though.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

If you want to create a different layout for your Homepage, I think the best way would be to use the Special Recent Posts plugin, which provides shortcode from the settings you choose and then use the PageLines grid to make responsive columns.

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  
Followers 0