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

gtsopour’s picture

Assigned: Unassigned » gtsopour
gtsopour’s picture

Hello Jason,

I would like to help you but i cannot understand exactly your problem. Could you help me?

gtsopour’s picture

But if you want to appear "main content" to the front-page (page--front.tpl.php) just try the following code,

<?php print render($page['content']); ?>

instead of create a new region.

jdmullee’s picture

Thank 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 ($page['highlighted']):

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

endif;

if ($messages):

print $messages;

endif;

if ($page['help']):

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

endif;

if ($action_links):

endif;

if ($tabs): print render($tabs); endif;

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

if ($feed_icons): print $feed_icons; endif;

gtsopour’s picture

The 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

jdmullee’s picture

How would I collect all articles in a view page please ?

gtsopour’s picture

Hello 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...

jdmullee’s picture

I'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.

jdmullee’s picture

I 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.

gtsopour’s picture

You 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".

jdmullee’s picture

GTSOPOUR - 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

gtsopour’s picture

Status: Active » Closed (fixed)