Jump to content


Photo
- - - - -

Content on only the first blog page


  • Please log in to reply
5 replies to this topic

#1 sterlingbates

sterlingbates

    Advanced Member

  • Members

  • 30 posts
  • Country: Country Flag

Posted 14 February 2013 - 08:57 PM

I was looking for an easy way to add sections (eg features, boxes, anything boxes) to only the first page of the blog pages.

 

This would be just a "fancier" version of the magazine layout in practice.  A way for the editors to set content that shows up on the first page of the blog but then doesn't show on other blog pages.

 

Any thoughts on the best way to do this?

 

I am open to suggestions that include premium elements from the store :).



#2 Rob

Rob

    One Smart Egg

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

Posted 14 February 2013 - 10:08 PM

Hi,

 

Well, if you are creating a static blog page with a particular template layout, showing only X number of posts using

Please Login or Register to see this Hidden Content

, you can

  • link to the default blog page manually at the bottom of the static page;
  • use the static page's id number to craft the hiding of some elements by CSS.
  • use a specific template for things like the features, carousel, etc.


#3 sterlingbates

sterlingbates

    Advanced Member

  • Members

  • 30 posts
  • Country: Country Flag

Posted 15 February 2013 - 02:06 PM

I have done several different static page versions.  I loved using Anything Boxes to do that.  

 

Doing that means I have to either make sure and replicate all the posts from my first page and then send them to the second page.  Or when they go to the first page of the blog it doesn't have all that extra formatting.

 

I didn't want to recreate the blog page, I want to use it.

 

Could I use the page specific css plugin and then do display none on the elements I don't to show up by default, then on the first page of the blog, set it to display?

Not sure if that plugin allows for that?

 

Any other methods?

 

Thanks!



#4 James B

James B

    Advocate

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

Posted 15 February 2013 - 10:33 PM

Hi Sterling Bates

 

Yes you could use page specific css to hide elements on the first page of the blog. You'd probably need to set the section to 'hide by default' on the blog template, then use the page-id to assign them only to the front page by using css to set them to display.



#5 sterlingbates

sterlingbates

    Advanced Member

  • Members

  • 30 posts
  • Country: Country Flag

Posted 16 February 2013 - 04:47 AM

Hmm, I just looked at the plugin to do page specific code and it has the same problem I still have.  It sees the blog as one option and not the sub pages eg. 1 vs 2 as different pages.  No go on that one.

 

Anything else? 

 

Any way to do this?



#6 Rob

Rob

    One Smart Egg

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

Posted 16 February 2013 - 04:52 AM

It appears you're trying to modify the loop.  You may be best asking your fellow developers in the developer skype group.  They may have some different insights.