By dealmaker on
Hi,
I am trying to create a site using book module. But how do I create dynamic page with book module? Some pages will have login prompt, and some pages will have dynamic content generated from database. But when I play around with book module, it seems that it can only create static page. Am I missing something?
Thanks.
Comments
BTW, I am not trying to
BTW, I am not trying to create a online book, I am using book module to create a corporate site just because I am trying to create the site without dealing with Taxonomy thing.
The category module enables
The category module enables a hierarchical structure to be imposed upon dynamic content - it is not perfect but is probably the best approach for organising truly dynamic content and maintaing the really important menus/breadcrumbs.
But, if you don't want to look at the taxonomy thingy, ahh, category might be, ahhh, a little, ahhh never mind.
The important thing - is it actually dynamic content that is being added to regularly, or is it a fixed site structure with changes made to prexisting pages? Because menus might be enough.
There have been many posts on the subject of using drupal to organise a site into a strict hierarchy, and a number of solutions proposed. Virtually all involve some form of taxonomy/category integration.
Input formats
There's nothing to stop you (as an administrator) adding book pages with a PHP input format if you want custom code in a book. You won't be able to slot non-node based URLs (eg pages generated by modules etc) into your book though.
If you really do want non-node URLs in your hierarchy, you might want to use a menu (or two) for that purpose instead of a book. Menus create navigation blocks that can be enabled in your theme.
I think though that forcing your site to be a book so you don't have to learn how taxonomy works is ultimately going to be a bit limiting. Using a combination of both menus (for a 'top down'* information architecture) and taxonomy (for a 'bottom up'* information architecture) is generally the most flexible way of doing things.
* by 'top down' I mean a traditional hierarchical arrangement of links.
* by 'bottom up' I mean an architecture where node metadata (eg categorisation) is used to automatically add some dynamic structure to a site.
--
Anton
New to Drupal? | Forum posting tips | Troubleshooting FAQ
do you mean ..
by dynamic content do you mean that you want to get a list of nodes and/or teasers that match certain criteria? I think you can use the category views integration to accomplish this by creating the view that you want and then telling the page that you create in the category module to use that view.
Not very clear, I know, but I'm just learning about the Category module myself and this is an option I think I'll need down the road. I'll add more if I clear it up after doing mor building.
Michael
www.webemulsion.com
How to display external links from a Drupal module
I have created a module in which after processing I ended up having an array of URLs.
The question is how to display these URLs (external links) from my module.
Thanks for your help.
Pol