We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Module: Recently Viewed Entries

Development and Programming

Rob Howard's avatar
Rob Howard
11 posts
16 years ago
Rob Howard's avatar Rob Howard

Thanks for the great plugin and the much-needed limit addition in 1.1 … I was about to do that myself!

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith

Nathan,

I just downloaded and installed this but it isn’t putting out any results for me. The code I added is copied from your docs.

{exp:weblog:entries weblog="articles" parse="inward" fixed_order="{exp:recently_viewed:get_entries weblog='articles' distinct='off'}" dynamic="off"}
{title}
{/exp:weblog:entries}

If I remove the recently_viewed tag it does spit out entry titles. Could there be a conflict with Structure which is running this particular weblog?

       
nathanpitman's avatar
nathanpitman
531 posts
16 years ago
nathanpitman's avatar nathanpitman

Hi Sean, could you post a more complete extract of your page template for me to look at? 😊

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith

Nathan, that is pretty much the whole template - it’s sitting in the sidebar surrounded by a div with a border on it so I know where it should display.

       
Djive's avatar
Djive
97 posts
15 years ago
Djive's avatar Djive

Hi,

it all works ok if i have only one weblog like this:

{exp:weblog:entries weblog="lusteri" parse="inward" dynamic="off" fixed_order="{exp:recently_viewed:get_entries weblog='lusteri' distinct='off'}"}{title} - {product_slika}

{/exp:weblog:entries}

but it i put this:

{exp:weblog:entries weblog="lusteri|downlighter" parse="inward" dynamic="off" fixed_order="{exp:recently_viewed:get_entries weblog='lusteri|downlighter' distinct='off'}"}{title} - {product_slika}

{/exp:weblog:entries}

then i get:

A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 0
Filename: recently_viewed/mod.recently_viewed.php
Line Number: 73

and it doesn’t work.

Each weblog has its template and this code (weblog parameter is different for every template):

{exp:weblog:entries weblog="downlighter" limit="1"}
{exp:recently_viewed:add_entry weblog="downlighter" entry_id="{entry_id}"}
{/exp:weblog:entries}

Thanks

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.