Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi, I am really interested to your package but I want to be sure that the counter is not incremented when a page is in preview mode and when I work with the node in backoffice.
Can you tell me something about this?
Thank you
Adriano
Umbraco v7.5.13 SQL Server 2016
Sure, try this:
@if (!(UmbracoContext.InPreviewMode || Request.QueryString["dtgePreview"] == "1")) { CounterService.Increment(Model.Content.Id); }
// Herman
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
What happens when a page is in preview mode and in the backoffice?
Hi, I am really interested to your package but I want to be sure that the counter is not incremented when a page is in preview mode and when I work with the node in backoffice.
Can you tell me something about this?
Thank you
Adriano
Sure, try this:
// Herman
is working on a reply...