Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a theme installed at http://www.advanced-digital-dynamics.com i've added a region on the frontpage i want my articles to display on the page"articles". I have a few questions.
1. No mater what i do - assign "main content" to the "content region" or only visible on one basic page or all pages - i can get no articles to display. I have seen the demo site and read the instructions but i can't see where i'm going wrong.
All help greatly appreciated. I'm now desperate!
Comments
Comment #1
gtsopour CreditAttribution: gtsopour commentedComment #2
gtsopour CreditAttribution: gtsopour commentedHello Jason,
I would like to help you but i cannot understand exactly your problem. Could you help me?
Comment #3
gtsopour CreditAttribution: gtsopour commentedBut if you want to appear "main content" to the front-page (page--front.tpl.php) just try the following code,
instead of create a new region.
Comment #4
jdmullee CreditAttribution: jdmullee commentedThank for for your replies - i have:
print render($page['content']);
in my page.tpl file.
I want "articles" to appear on an articles page. like the demo site "blog" page and not on any other pages.
I have created a basic page "articles.html"
I have created articles
I have configured the block "main page content" to only appear on the page "articles.html" in block region "content" the title of the "main page content" appears on the page but the articles do not?
I cannot get the articles to display - what have I missed?
******** code of page.tpl.php ******
print render($page['header']);
print render($page['search_area']);
if ($logo):
print check_url($front_page); " title="
print t('Home');
">print $logo; " alt="
print t('Home');
" />endif;
if ($site_name || $site_slogan):
if ($site_name):
print check_url($front_page); " title="
print t('Home');
">print $site_name;
endif;
if ($site_slogan):
print $site_slogan;
endif;
endif;
if ($page['highlighted']):
print render($page['highlighted']);
endif;
if ($messages):
print $messages;
endif;
if ($page['help']):
print render($page['help']);
endif;
if ($action_links):
print render($action_links);
endif;
if ($tabs):
print render($tabs);
endif;
print render($page['content']);
if ($feed_icons):
print $feed_icons;
endif;
Network Connect
Facebook
Flickr
In
Tumblr
Youtube
print render($page['sidebar_first']);
print render($page['footer_left_1']);
print render($page['footer_left_2']);
print render($page['footer_center']);
print render($page['footer_right']);
print render($page['footer']);
print theme('links__system_secondary_menu', array('links' => $secondary_menu, 'attributes' => array('id' => 'secondary-menu', 'class' => array('links', 'inline', 'clearfix'))));
Comment #5
gtsopour CreditAttribution: gtsopour commentedThe demo site blog page is a taxonomy page which collects all drupal 7 articles with the same term. So, you could add a taxonomy term to each article you want or you could collect all articles in a view page.
http://demo.drupalizing.com/bluemasters/taxonomy/term/1
Comment #6
jdmullee CreditAttribution: jdmullee commentedHow would I collect all articles in a view page please ?
Comment #7
gtsopour CreditAttribution: gtsopour commentedHello Jason
in order to collect all articles in a view page, you should use views module (with dependency on ctools module). But the solution with taxonomy term is more simple...
Comment #8
jdmullee CreditAttribution: jdmullee commentedI'm sorry to ask again, how do i use Taxonomy to group the articles together and display them.
Thanks for your support - this has really been a good learning curve for me.
Comment #9
jdmullee CreditAttribution: jdmullee commentedI tried the following and got no where:
Home » Administration » Structure » Taxonomy .. add vocabulary
name: news
description: news and saved
Home » Administration » Structure » Taxonomy..select "add terms" for vocabulary name "news"
name: "news"
url alias: "news.html" and saved
Home » Administration » Structure » Menus » Main menu..select addlink
menu link title: "News"
path: "news.html" and saved
Home » Add content..create arcicle
some title, some text
tag "news" and saved
click main menu item "News" and get message:
There is currently no content classified with this term.
Where i am going wrong please.
Comment #10
gtsopour CreditAttribution: gtsopour commentedYou should add a new taxonomy reference field to Article content type and connect this with your new Vocabulary "News".
The Tag field in Article content type is connected with "Tags" vocabulary and not with Vocabulary "News".
Comment #11
jdmullee CreditAttribution: jdmullee commentedGTSOPOUR - I could kiss you !
Here's a summary of the solution as its evolved for other like me who need help from people like GTSOPUR.
Home » Administration » Structure » Taxonomy .. add vocabulary
name: news
description: news and saved
Home » Administration » Structure » Taxonomy..select "add terms" for vocabulary name "news"
name: "news"
url alias: "news.html" and saved
Home » Administration » Structure » Menus » Main menu..select addlink
menu link title: "News"
path: "news.html" and saved
Home » Administration » Structure » Content types .. select "edit" next to article select "manage fields"
Under "Add new Field"
Give it a label (eg. YYYY)
Give it a field name (eg. XXX)
set type of data to store to "term reference"
set "form element to edit the data" to "auto complete term widget tagging" and save
this opens the "field settings" dialogue
from the drop down under "vocabulary" select "news"
When you create an article in the field "YYY" at the end of the form enter "news"
This will cause the article to display on the page news.html
Comment #12
gtsopour CreditAttribution: gtsopour commented