I tried to use this project for my ecommerce website built with ubercart. But as I have several product classes (so several node types), I didn't manage to display only one block for all my product classes. Is there a way to have a key that would be a product (available for every product classes) or something like this ?
Comments
Comment #1
pgorecki commentedI'm planning to integrate this module with Views in the near future, stay tuned.
Comment #2
christelle41 commentedThanks a lot, I stay tuned.
Comment #3
imoreno commentedAny updates on this feature? I think that it is mandatory to have one block that will display all recent node types
BR
Itzhak
Comment #4
pgorecki commentedStarting from alpha4 you can do it via a custom block with php code:
Comment #5
pgorecki commentedComment #6
imoreno commentedTHX,
Working very well for me.
1. what do i had to add to the code in order to limit the number of nodes that are displayed e.g 5 ?
2. is it possible to add a "clean all" link at the bottom of this custom block?
BR
Itzhak
Comment #7
pgorecki commentedad. 1. you can specify number of nodes as a 3rd parameter, i.e.
ad. 2. I'm not planning to add such functionality in the near future. You can do it programmatically by removing node entries in recently_read_nodes table (logged in user), or by removing $_SESSION["recently_read-$node_type"] array (anonymous). Any patches are welcome.
Comment #8
imoreno commentedAdding just the parameter $node_count as in your example results an error : Undefined variable: node_count
Where exactly this parameter needs to be added?
BR
Itzhak
Comment #9
pgorecki commentedSimply replace $node_count with a constant: