I create a page with core module. Now I wish to create story pages in this page. How can I do that?

Comments

Drupalace-1’s picture

I think there may be confusion here about how Drupal operates. There is no option to "create a page" per se. Rather, you create nodes – pieces of content – in Drupal, and Drupal puts nodes those together with other stuff (like headers, logo, sidebar blocks, etc.) to create pages.

There are many kinds of nodes. These include types called "page" and "story", which is somewhat unfortunate in that they're confusing for beginners (especially "page"). I prefer to capitalize them (Page, Story, etc.) to show that they are specific node types, different from the generic meanings of "page" and "story".

Anyway, if you've created a node of the type "Page" (or "Story", or any other type), Drupal should be ready to build a page around that. The node you created should have a path (a URL). Go that that URL, and Drupal will show your node, and build a page around it (with header, sidebar blocks, etc.).

Not sure that that helps you, but maybe. These might be of use too:

http://drupal.org/node/21947
http://drupal.org/node/176252
http://www.drupalace.com/EDAM/content_types
http://www.drupalace.com/EDAM/placing_content

Also see http://www.drupalace.com/drupal-for-beginners if you're new to Drupal; it might help with your question, and also points to lots of useful stuff on Drupal.org.

enbilulu’s picture

sorry for that. I created a Page node type and show it on the menu.
"build a page around it (with header, sidebar blocks, etc.)." is this mean I have to create or build page with php or html?

Can't I enter blog style content into page node type?

Drupalace-1’s picture

"is this mean I have to create or build page with php or html?"

No, that's precisely what Drupal does for you: it builds the page.

You create a node (a Blog Entry, Story, whatever), and this node gets a path (like "mysite.com/my_new_story"). When a visitor heads to that URL, Drupal creates the page at that moment. (Unlike an HTML file, the page doesn't really exist until then; there is no file on the server for "mysite.com/my_new_story". Drupal creates it on the spot, from components including the node, graphic elements, header info, etc.)

*How* Drupal builds that page – what components it includes along with the node, how it lays everything out, etc. – depends on things such as the Theme you chose, and the many configuration options you choose as an administrator.

"Can't I enter blog style content into page node type?"

Sure, you could use Page nodes for a blog. But the reason not to do so, as Anti discussed, is that there is a better node type, called Blog Entry. It's similar to the Page node type, but is pre-configured in the way that most bloggers expect blog entries to work, and has some extra built-in features (like a ready-to-use path that lists all blog postings).

Then again, the way you want a blog to work might be different from what others want. If the Page node type works well for your blog, you could use it (or you could modify Page or Blog Entry or any other node type to work exactly as you want, or you could even create your own new custom node type).

Lots of options! The reason for Drupal's learning curve isn't because everything is difficult; part of the reason is simply that there are so many ways to do things.

enbilulu’s picture

up

-Anti-’s picture

> Can't I enter blog style content into page node type?

You still seem quite confused:

First choose a theme that you like:
http://drupal.org/project/themes?filters=drupal_core%3A87&solrsort=sis_p...
Don't choose one of the 'starting themes' such a 'Zen'. Choose a fully-functioning theme that you won't need to edit. At least until you are comfortable with Drupal; themeing is a complete skill in itself.

The theme will have REGIONS hard-coded into it.
These regions display in: administer -> site building -> blocks
There you will see standard regions such as: header, content, left sidebar, right sidebar, footer
And you may have others such as: content top, content bottom, user1, user2, user3, etc.
It really depends on the theme you choose.

The 'content' REGION is where your nodes will display (that's your 'content-types' such as Page, Story, Blog)
This cannot be changed; nodes (content-types) will always be shown in the 'content' region.

However, on the site building -> blocks page, you will notice there is a list of other content that you can assign to different regions. These are pieces of content provided by installed modules. For instance, the blog module provides a block called 'recent blog posts'. The login module provides blocks called 'who's online' and 'who's new'. You can assign these to any region you wish.

So this is how you add menus and block content to "build a page around the main content". Individual Blocks can be set to display all the time, or they can be dependent on the content-type, user role, url, language, etc. You can also create your own 'blank' blocks and then put text/html/php/javascript/flash in them. Blocks can also be individually themed using css.

Now, 'content-types'... basically, the REASON for having different content-types is:

- the input fields and text areas for each one can be different (especially if using the cck module)
- they can be filtered and treated separately when creating lists of content (called 'Views').
- they can have separate tags (called taxonomy)
- they can have separate publishing options
- they can have separate user permissions

For example, the only difference between the 'Page' and 'Story' content-types is the default publishing options (a Story is sent to the frontpage list and allows comments, a Page does not). However, if you over-ride these defaults, there is no FUNCTIONAL difference between the two content-types. The benefit simply is that they can be treated separately with regard to input fields, filtering, taxonomy tags and user permissions.

What is confusing, perhaps, is that there are two SPECIAL content-types: 'blog' and 'forum'.
Drupal handles these two differently from 'Page' and 'Story' (and any custom content-types you create yourself).
For instance, Drupal provides a teaser list of blog content: domain.com/blog/[uid]
And the forums are treated very differently to allow Drupal to display the built-in forums.

Drupal has a very steep learning curve, and your first few weeks will mostly be reading and testing.

romerotek’s picture

Thank you... that was really helping... i'm also a beginner... well.. so what should i do if i want to add my own content, say a table, to a specific region or my own custom region..!!?

-Anti-’s picture

You don't put content into regions directly.
Regions hold 'blocks'.

Go to the 'admin -> site building -> blocks' page
Create a new block and allocate that block to the region.
Then create your table (you'll need to know the html for it) in the block.

romerotek’s picture

Sorry i'm very new to drupal and only know some basics of it.. so please forgive me if i'm saying any foolish things. :)

Actually i was trying to show a 'table' of data fetched from the database and present it in a 'sliding panel' using jquery.
i already added 'login' form provided in drupal by dragging it into my custom region in the sliding panel from the 'admin -> site building -> blocks' page.

so should i 'add' a new block, and type the php codes in to the block body!? or is there any way i can create a custom cck content and show it in my sliding panel? i have also installed some modules that shows up in the 'content type' page. i can create contents from it but i want to add that into my sliding panel. :(
Can you please help me explaining how i can achieve this goal.. :)