0

Made page--front.tpl.php. Created the view for content-type: news for example. Then put the view block in a block region. View block - only display news type limit at 1 or 2.

But when viewing the front page, all content types' content shows up on the front page along with the view block. I checked that it was managed by Display Suite but it shouldn't show show all contents on front page.

Why does this happen?

Update

Uncheck "promoted to front page" checkbox on all entries and it worked.

Other question:

"No front page content has been created yet. Add new content"

How can I remove this text above on front page? I am using blocks most of the time, so text shouldn't be there.

  • It sound like what @dwcdev said below. I think you have set your content type with "Promoted to front page" as default. Check your content type and remove all of them from "Promoted to front page". – CocoSkin Mar 18 '15 at 17:57
1

It sounds like you have your content type to "Publish to front page". Edit your content and un-check "Promote to front page":

enter image description here

  • yes i did uncheck the promoted to front page checkbox but still cant :(. Updated: i checked inside the entry and found that some were promoted to front. it worked by unchecking thanks – joe Mar 19 '15 at 2:05
  • Excellent. Please click the check mark if this answered your problem. – dwcdev Mar 20 '15 at 0:27
  • still missing my next qn on the "No front page content has been created yet. Add new content" – joe Mar 20 '15 at 2:00
  • I think they want you to make a new thread for a new question. Post another thread, and I'll answer it for you ;-) – dwcdev Mar 21 '15 at 20:36
  • made a thread already - drupal.stackexchange.com/questions/152432/…. thanks :) – joe Mar 22 '15 at 7:23
0

If you're trying to remove the feature that automatically adds all your content to the front page, you'll need to go to Configuration -> Site Information -> Front Page and set an individual piece of content to be displayed as your front page ie.. node/xx

0

This what I do on most of my project. I used the Empty Front Page module and this would give me a blank front page. From here I can organize anything into blocks. If you wish to have a the latest new or blog you can created a block view and add it to the front page.

0

If you want to display very specific contents on front page, then you shouldn't write

print render($page['content']);

in the front page. remove this code. If it is not there, then update your question and put the page--front.tpl.php code in the question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.