Jump to content


Photo
- - - - -

Magazine Layout on Select Pages Only

magazine blog layout layout

  • Please log in to reply
5 replies to this topic

#1 evanders

evanders

    Member

  • Members
  • 23 posts
  • Country: Country Flag

Posted 17 May 2013 - 03:47 PM

Is there are a way within the Framework to limit the types of pages that the Magazine Layout displays? For example, I would like the Magazine Layout to appear on the Blog and Category Pages, but show the Blog Layout Mode (only full-width post excerpts) on Search Results and Archive Pages.

 

Can this be done using a hook, or at all?

 

Thanks.



#2 Martin Davies

Martin Davies

    Advocate

  • Moderators
  • 2380 posts
  • LocationManchester, England
  • Framework Version:latest
  • Country: Country Flag

Posted 17 May 2013 - 03:49 PM

You could use a filter as described on this topic

Please Login or Register to see this Hidden Content



#3 evanders

evanders

    Member

  • Members
  • 23 posts
  • Country: Country Flag

Posted 24 May 2013 - 09:57 PM

Strange. After looking at the thread and trying this solution, it didn't work. Perhaps there is something specific about this approach that is causing it to fail. Here is some more detail:

  • I'm running Pagelines Framework 2.4.2.
  • My current Blog Post Layout Mode is set to Magazine Layout Mode
  • The number of Full Width Posts I've selected is 0 (This is by design. I want my home page to only use Magazine-style clips.)

The ultimate goal is to use only Magazine-style Clips on the home page and Category pages, but for Author, Archive and Search Results pages use Full-Width posts.

 

Any other ideas?



#4 James B

James B

    Advocate

  • Moderators
  • 4978 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 24 May 2013 - 10:20 PM

Hi Evanders,

 

Check out -

Please Login or Register to see this Hidden Content

this might be an easier option than using code. You can put the section directly into the template and choose the required layout mode. If you're interested you can check any questions you have on the product with the developer on the link above in the comments box.



#5 evanders

evanders

    Member

  • Members
  • 23 posts
  • Country: Country Flag

Posted 22 June 2013 - 04:46 AM

I tried AnyLoop. It was a good suggestion, but didn't get me very far. It features a handful of very specific styles of posts in a loop. I would have to do more work to reverse engineer a plugin I paid $20.00 for than find a more simple solution to this problem.

 

There has got to be a way for me to limit Magazine layout mode to certain types of pages. It just doesn't make sense to use magazine style clips in search results, archives and on the author pages.

 

Any other thoughts?



#6 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 22 June 2013 - 01:59 PM

Hi Evanders,

 

There is a plugin called Special Recent Posts.  It's free, though there is a premium version. You'll find the free version here:

Please Login or Register to see this Hidden Content

 

Special Recent Posts (SRP) uses a shortcode which you can easily customize to place the most recent posts on a page. That said, you can place the shortcode within boxes or the Grid System, allowing you to have two columns (like Magazine Mode) as you wish.  Luckily, the developer smartly placed each element of SRP in its own div/class so that you can size, position, align things just as you desire using CSS. The effect is to give you magazine mode layout where you want it, without having to reengineer anything.

 

The shortcode's effects - displaying a list of X number of posts, fills whatever container it is set into.  Thus if you use it directly on a page, it will be full width for the content area.  However, if you were to place the code, as I said, within a grid element, and that grid had two columns, you would see the code in one of the two columns.  To see it in the second, just repeat the shortcode, and adjust it in the second column.  The shortcode has an option for offset. 

 

By that I mean that you can show 5 posts (any number) in the left column, then in the right column, offset that shortcode by 5, so it appears continuous.

 

Here's an example of the shortcode:

Please Login or Register to see this Hidden Content

I hope this helps.







Also tagged with one or more of these keywords: magazine, blog layout, layout