wagtail-personalisation icon indicating copy to clipboard operation
wagtail-personalisation copied to clipboard

Add new rule to segment based on number of page visits with specific tag

Open mvantellingen opened this issue 8 years ago • 4 comments

mvantellingen avatar May 31 '17 12:05 mvantellingen

This requires to have tags to be attached to a Page, which currently isn't the case. Would it be feasible to have a e.g. SegmentedPersonalisablePage which has a panel for adding tags?

robmoorman avatar May 31 '17 12:05 robmoorman

A neat way might be to let developers choose between using the mixin and using the PersonalisablePage class that already includes the mixin. With good documentation a developer can decide between the two and the implications that may arise with the selected option.

jberghoef avatar Jun 09 '17 06:06 jberghoef

Jeah I agree. I've implemented such before when using Aws Machine Learning to predict Page objects based on 'segments'. In this case a Panel 'Segments' was shown on the edit Page were the user can fill in their tags.

robmoorman avatar Jun 09 '17 07:06 robmoorman

That's pretty much what I had in mind. Using this method we won't have to complicate the "tag rule" and can always assume the tags are in the same field.

jberghoef avatar Jun 09 '17 07:06 jberghoef