logo       

[bug] Book block doesn't show up for node/view: msg#01040

php.drupal.devel

Subject: [bug] Book block doesn't show up for node/view

Project: Drupal
Version: cvs
Component: book.module
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: Steven
Updated by: stefan nagtegaal
Status: active

Well, my question is: why do we access every node using
'node/view/$nid'? Why not;
- stories 'story/view/$nid';
- books 'book/view/$nid';
- pages 'page/view/$nid';
- and so on...


Why is it only with books that we use the 'book/view/$nid' and not with
every other $node->type?

stefan nagtegaal



Previous comments:
------------------------------------------------------------------------

January 22, 2004 - 17:51 : Steven

When viewing a book page through /node/view/, the book block doesn't
show up. Using /book/view/ does work.

Sounds like a tricky thing to fix though.

e.g.:
http://drupal.org/book/view/1 [1]
http://drupal.org/node/view/1 [2]
[1] http://drupal.org/book/view/1
[2] http://drupal.org/node/view/1


------------------------------------------------------------------------

February 10, 2004 - 14:05 : weitzman@xxxxxxxxxxxx

could be fixed with the much discussed 'global context' feature which
will tell modules about the node currently being viewed


------------------------------------------------------------------------

February 25, 2004 - 01:20 : bmann@xxxxxxxxxxxxxxxxxxx

Also doesn't show up if a book node is accessed through an alias.

One possible fix will be to check the node type instead of the URL.
This will only work with nodes that have actually been created as book
pages, not for other types of content that have been organized in a
book.

Looking at the database, couldn't we just see if the current node id
exists in the book table? If it does, then it's part of a book.


------------------------------------------------------------------------

February 25, 2004 - 14:42 : weitzman@xxxxxxxxxxxx

we could check the book table. but where and how to do so? we don't want
to create a special case for books in the core engine.


------------------------------------------------------------------------

February 29, 2004 - 06:14 : killes@xxxxxxxxxxxx

Can't we access the un-aliased url somehow? This is also a problem when
setting up block paths in general.


--
View: http://drupal.org/node/view/5347
Edit: http://drupal.org/project/comments/add/5347





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise