Hi,
With tips from the community, I have created a dynamically generated View that groups, sorts, and displays a Table of Contents of a collection of academic papers. Instead of creating a custom type for the papers, I have used book pages. Among others, because I wanted to harness the navigation features of the book type.
The ToC View currently displays for each article the name of author, a link to the full article (HTML) and another link to download the file of the article (MSWord/PDF).
My problem is that I don't know how to associate/attach this dynamic ToC View to the specific book which now groups all the papers. More specifically, my idea was harness the Book module's navigation by allowing users to go from one paper to the next using the "next" (next paper), and "previous" (previous paper), (which was easy to do as it is built in in Book) and use the "up" feature to go at any time back to the the ToC (the View).
Should I create an empty page to stand for the ToC and use some kind of redirect, so that whenever that page is requested, I get a redirect to my view? I am happy for any thoughts or ideas.
Thanks
Comments
That's definitely a
That's definitely a possibility. Try creating an empty page (turn off comments, etc) in the book as the top-level, and add a 'block' display for your view. Put the block in your content section, and on its visibility settings (under configure), only allow it to be visible on that page. See if that works for you.
Alan
Great idea!!
I've got the block with the ToC sitting in the content section of the empty page, and the navigation up and down works a charm.
My only problem now is that this page is not empty. It displays the whole book module navigation shebang - links to all the book pages and a 'next' link to the first article. And what's more, they are showing above the block. How can I turn off this display. I don't need any of it on this particular page (the display on the rest of pages is good because it only shows the next, previous, up, links which is what I had in mind)
Thanks again
Sorry, again a different question
I'll post it separately here: http://drupal.org/node/873404.
Thanks
Oh! I thought you meant you
Oh! I thought you meant you wanted the book module navigation there, which is why it was requiring the empty page. Add a page display with a URL instead of a block display. That makes the view the only thing on that page.
If your filters are giving you trouble (ex. the view needs to be located on a book page for argument purposes) let me know. There are ways to work around this with relationships.
Alan
Thanks so much Alan
The dynamically generated ToC View (whether in a block or as a page) needs to end up on a page/book page that is the top level of the particular book to which all the articles are attached.
The reason for that is that I want the 'up' link at the bottom of each article to point to this ToC.
Thanks
Ah yeah.
In that case I'd just add the CSS property display: none to the elements you don't want displayed. So, back to the CSS discussion, hah.
Alan
Well, there is another option
I thought of using plain old redirect: The ToC View display on a simple page, which is not the top level book page. Add a redirect from the top level book page to the alias of the page ToC View and so every time the 'up' link in one of the papers is clicked, the user is redirected from the top level book page to the ToC view page.
I tried to do it with a module called path_redirect, but they have a funny restriction where you cannot redirect from a valid url, only from urls that return 404.
Any other ideas how to redirect in Drupal to a dynamically created view with an alias?
thanks