Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Data Model Questions

Tracking the appearence of a page item inside another page


Reply

2 Posts   1149 Views

Avatar
gMentat

10 February 2010 at 2:11am (Last edited: 10 February 2010 2:11am), Community Member, 2 Posts

Well this is what I want to do

Let's say I have a HomePage and a NewsPage. On my HomePage I show two(2) random NewsPage pages (the title and a preview). I need to track how many times a NewsPage page item has appeared in my HomePage. Is this possible ??

Thank you in advance

George

Avatar
baba-papa

10 February 2010 at 8:26am Community Member, 279 Posts

Create a new property for your NewsPage ($db). There must be a controller method in your HomePage_Controller that is responsible for displaying those two NewsPages. Let that method increment the new property of NewsPage.