I want to allow my users to make travel journals. These are basically groups of blog posts about a certain trip they took.
So a user can start a new "Travel Notebook" give it a title and upload a photo. Then they create entries in this journal to track their travels. Each entry has a date which the user is allowed to manually enter (so they can enter past travels). These are all grouped together to follow along on their journey. They should be able to create many of these 'Travel Notebooks" as well.
Here is an exact example of what I need:
http://www.travelblogger.net/members/jamaiken/index.html?action=ViewTrav...
This page lists a users 'travel notebooks' that he has created. It shows the date of the first and last posts so you can see when the trip was and the books are sorted by date with newest travel at the top.
Clicking on a 'notebook' shows you a brief introduction and then lists entries at the bottom of the page. You can click through entries using next/previous links and images are integrated perfectly.
So this is more then just a blog. How should I go about this?
Comments
Any ideas? Would this need a
Any ideas?
Would this need a custom node type or can it be done with views/cck/etc
Can this be done or does it
Can this be done or does it need to be a custom module?
I havn't thought this
I havn't thought this through completely, but I think you could get something close to this functionality just using views, cck, and nodereference fields.
First setup two content types, one for the Travel Notebook, and one for a Travel Entry.
Second, setup a view that filters by 1) Content Type = Travel Notebook & 2) Node Author = Current User
Third, add whatever fields you'd like for the two content types (images, dates, etc...) and then add a nodereference field to your Travel Entry. In the nodereference field settings, set the "Advanced - Nodes that can be referenced (View)" view to the view you created in #2.
Fourth, create a new block view with a filter for Content Type = Travel Entry and add an argument for the nodereference field with this code in the "Argument Handling Code" section:
Last, enable that block in your "content" region so that it shows at the bottom of a Travel Notebook node view.
Now you can create a Travel Notebook like normal, and when you create a Travel Entry just select the Travel Notebook you previously created with the nodereference field. Then when you view the Travel Notebook page, a list (depending on how you setup the view) of travel entries will appear for that particular travel notebook.
If you give it a try, I'd be interested to hear how it turns out :) I'm sure it could also be modified further to give you better functionality.
ALIAN DESIGN
Sorry, that code for the
Sorry, that code for the arguments section should look like this:
ALIAN DESIGN
Thanks for the very thorough
Thanks for the very thorough instructions. I understand what you explained and I will try and set it up tommorrow.
I will keep you updated.
Thanks again.
Travel entries
Hi,
Did you succeed in this?
Is organic groups something for you?
greetings,
Martijn