Posted by ithacaindy on April 18, 2010 at 5:04pm
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:
go to: admin/build/views/
edit "articles"
select "homepage block" and adjust "Items to display"
I added the filter "Node:
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:
Articles View Problem
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
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
Your technique sounds interesting. Can you share the steps you took - I edit words, not code.
ithacaindy, two solutions: 1)
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
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
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
Yes, we have our Indy subtheme.
Any Progress on Tutorial?
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
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
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:
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.")
Am I putting the nodequeue argument in the right area (Sort) of the Feature Block view?
For resveld RESVELD
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!
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