John,
I think you're working too hard, or maybe just avoiding the simple. Here's what I'd do:
First create a custom content type--call it "memory_verse," or something like that. Use the node title to contain the reference, e.g. John 3:16; the body contains the text. Add a date field; this becomes the last date the verse is "valid" (I'm talking technical, not theological, here 8=) ).
Next, create as many memory_verses as you like; you can work ahead just one week, or ten years. At a minimum create two for the upcoming two weeks for testing.
Finally, create a view to create a block view (you might want a page view, too, showing the entire node). Select memory_verses where the date is greater than now() (I may not have that exactly correct). Sort by the date (ascending) and only return 1 entry. You might want to just list the title as a link to the node, or you can include the verse.
That's it.
Curt













Can someone point me in the right direction? I am working to finalize the new church website. One feature that I am looking at implementing is to have a weekly memory verse. I would like to have 52 verses in the database. Then, create a view that will show the verse, with a filter or argument that chooses the correct verse based on what week it is.
I have been doing some homework, and it looks like I would need to create some PHP code to insert an argument into the block that will display the verse. Then I suppose, my views will have to accept the argument, parse it and match it up with the verse for that week.
Is that the right way to attack this?
For my content, I plan to have a custom content type with three fields: verse text, verse passage, and order which will be an integer from 1 to 52.
Is there a good resource on how to insert arguments into a block so that the view can use those arguments to filter nodes?
Thanks.
John
john-simons.com
John
john-simons.com