I presume you categorize your content using taxonomy terms, or?
So, as an example, you create an article for issue number '122' and you 'could' use this in the url of your article, such as www.example.com/articles/issue_number/node_id
In this example, if the node id was 12345, the full url would look like this:
www.example.com/articles/122/12345
Now you could use views and arguments - in Views 3 'Arguments' was renamed to 'Contextual filters'.
So,
- Create a view -> create block -> unformatted list -> titles (linked)
- add a Contextual filter
- Content -> Has taxonomy term ID
- When the filter value is NOT in the URL: -> Provide default value ->
- Type: Taxonomy Term ID from URL -> Load default filter from node page, that's good for related taxonomy blocks.
- Check the boxes of the taxonomies you want involved here
- skip to point 11
------------ old way -------
Provide default argument -> php code
$node = node_load(arg(1));
if($node) {
//Be sure to rename ->field_taxonomy_name to your field name
foreach($node->field_taxonomy_name[LANGUAGE_NONE] as $term) { $terms[] = $term['tid']; }
return implode('+',$terms);
} else { return; }
Allow multiple terms per argument -> yes
- Reduce duplicates -> yes
^^----------- old way ---------^^
- Create a second argument to remove the currently displayed node from related content block
- so, add a 2nd Contextual filter
- Select Node: Nid
- Action to take if argument is not present -> Provide default argument
- Default argument type -> Node ID from URL
- Exclude the argument -> yes
- Save
- Add block to node pages, only display in articles/*