How to Limit Front Page Articles?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
ithacaindy's picture

Is there a simple, non-invasive way of limiting which articles (as opposed to blog posts or forum entries) appear on the front page? I've unselected "publish on front page" in the editor, but minor articles I want to limit to a section appear as the lead on the front page.

Comments

go to:

resveld's picture

go to: admin/build/views/

edit "articles"
select "homepage block" and adjust "Items to display"

I added the filter "Node:

ithacaindy's picture

I added the filter "Node: Promoted to Front Page Yes." This took care of articles not promoted to front page appearing on the front page, but it also eliminates them from sections. For instance, I wrote a sports article, unchecked the "promote to front page" box and it didn't appear in the sports section nor the front page. The only way for it to appear in the sports section was to check the "promote to front page" box. Of course, that meant it also appears on the front page.

I could sort of fix this by going to the "Page" section of the article view and turning "Promoted to Front Page" off. But that would mean articles appearing on the front page would not appear in the section.

The sort of logic I'm looking for is this:

  1. If "Promote to Front Page" equals NO, then don't post to the home page, but to the section.
  2. If "Promote to Front Page equals YES, then post to home page and to the section.

Articles View Problem

ithacaindy's picture

Here's a more expanded explanation of the problems I'm encountering with the "Articles" view:

My goal is to publish on the front page only those articles selected as "Promote to Front Page." Else, the article goes into a section, such as sports or life.

The answer seemed pretty obvious: Choose the "Page" tab in the "Articles" view and remove the "Promote to Front Page" filter, allowing all articles to be filed in a section and those articles with the "Promote to Front Page" flag to display on the home page.

As usual, nothing is ever simple.

The problem is if I delete the "Promote to Front Page" filter in the "Page" tab of the "Articles" view, the filter is also deleted from the "Homepage" tab. The result: articles are published to the section, but not the front page.

Why? Perhaps of the "Default" tab, which contains "Promote to Front Page = YES"?

Can a coder detangle this? Much appreciation in advance.

nodequeue might be an idea

msidibe03's picture

Hi,

Maybe you can try nodequeue module.
Add node relationship in the views and then make a filter or sort order with nodequeue.

I use it to choose the order the articles appears on the frontpage and which one will be the main article. Also use it for my different sections.

Your technique sounds

ithacaindy's picture

Your technique sounds interesting. Can you share the steps you took - I edit words, not code.

ithacaindy, two solutions: 1)

irakli's picture

ithacaindy,

two solutions:

1) Articles view has 4 displays. What you did with adding "Promoted to Frontpage" filter is a good solution, but you need to do that only for two displays: Homepage Block and Featured Article block. You probably did it in the "default" mode which affected all 4 views. There's an "override" option in the filter management that allows you to set filter for just one display, not all.

2) Attaching Nodequeue to a View, that msidibe03 mentioned, is also a great and quick way of achieving what you are trying to do. Actually we showed just that at OpenPublish training at DrupalCon, yesterday. It gives you more control than (1) technique.

I will try to post a step-by-step guide for both solutions to the OP documentation, later today.

.............................................
http://twitter.com/inadarei

Great. I'll look forward to

ithacaindy's picture

Great. I'll look forward to it. We are taking care of these issues one by one, hopefully making OP as bullet-proof as possible for publishers. (by the way, we've already received compliments on the new theme and the general look of our site since moving to OP and Drupal over the weekend.)

That's great to hear. If you

irakli's picture

That's great to hear.

If you are using OpenPublish 2.0 please make sure to create a sub-theme rather than modifying openpublish_theme, it will make upgrades much easier.

.............................................
http://twitter.com/inadarei

Yes, we have our Indy

ithacaindy's picture

Yes, we have our Indy subtheme.

Any Progress on Tutorial?

ithacaindy's picture

Any progress on the Nodequeue/Views tutorial? I still have the sorting problem, although I appear to have resolved the front page/section "promote to front page" trouble.

I made a nodequeue for

ithacaindy's picture

I made a nodequeue for stories, but I don't know the steps to attach it to a view (which view and where). Any help?

I attached a nodequeue to the

ithacaindy's picture

I attached a nodequeue to the Feature Block view (used over-ride so it didn't appear in the default) in the sort section. The sort is desc and tracks the date the article was added to the que. I added (I think) the story I want to appear in the Feature Block, but no change is visible. The same article is features as prior to the nodequeue work.

My questions are these:

  1. How do I know when a node is added to my que? (I find the article, hit the "Edit" area and then go to the "Nodequeue" tab, where I select "Add to que.")

  2. Am I putting the nodequeue argument in the right area (Sort) of the Feature Block view?

For resveld RESVELD

robxool's picture

Sorry man, i have the same problem posted here.

Do I have to install "views" module or something about your last answer???

Thanx

GREAT POST!

chadix93's picture

I really appreciate this informative post that you have provided for us.
I assure this would be beneficial for most of the people.
Looking forward to read more of your post and updates in the future.

btw, help us promote our website by clicking it and avail one of our products -->

buy soundcloud downloads Thanks and God bless! :D

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: