Forum

Thread tagged as: Question, Problem

Updating a field without entering admin

I am making an interface for a url redirecter using perch, and I want to implement some basic statistics. I have made a field named outgoing clicks with an initial value of zero. I want to update this field (+1) every time someone visits the page. In other words, I want to update the value of the field without visiting the admin dashboard. Is this possible?

Thanks so much in advance!

Erling Hoff

Erling Hoff 0 points

  • 7 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Is this an App you have developed using the API? I'm not sure I understand what you are doing.

Hi! No I have a field called "visits" in a regular perch template with an initial value of "0", and i want to increment this by one each time somebody visits the page. In other words, I want to write to the perch database.

Drew McLellan

Drew McLellan 2638 points
Perch Support

You'd need to create a (very simple) app for that - you can't modify content regions from the front end of the site.