2022 Developer Survey is open! Take survey.

Questions tagged [token]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
71 views

How to generate a preview URL in Twig

I have a template intended for administrators (separate from the Craft control panel) where I'd like to generate tokenized preview links for unpublished posts (the same URL you get when you click on ...
user avatar
2 votes
1 answer
263 views

What does defaultTokenDuration affect besides hidden entries' share links?

Per this answer, configuring defaultTokenDuration is the way to change the lifespan of hidden entries' share links from the default 24 hours. The v2 docs describes this as affecting "system tokens" ...
user avatar
  • 228
3 votes
1 answer
1k views

How long does the share link on the entry edit screen last?

We're noticing that links to hidden entries that are shared via token (share button) eventually expire. How long do these links last? Is there a setting to adjust how long the token will last?
user avatar
1 vote
3 answers
572 views

Is it possible to disable token expiration? Or prevent follow from bots?

So I have some gated content entries and need to prevent these from being indexed by search engines etc. Currently using draft pages but the tokens expire which then causes a 404 if someone is to land ...
user avatar
  • 781
3 votes
1 answer
478 views

Plugin Routes: Asterisk Token effect from CP Routes

I'd like to use the asterisk token functionality that is available in the CP in my plugin. This way I can have an infinite amount of 'pages' under certain routes. In the CP, it looks like myroute/* ...
user avatar
  • 1,108
2 votes
1 answer
907 views

Can I select the latest draft of a given entry?

I've built a help site for a client that pre-releases articles to a select group of beta users. The updated articles (Craft entries) are published as drafts until features make it out of beta and into ...
user avatar
  • 3,901
1 vote
1 answer
91 views

User activation via email does not work when system status is "off" [closed]

System Status is set to off Create a new user, with permissions to Access the site when the system is off and Access the CP As long as the system is off, the activation email sent to the user is ...
user avatar
  • 3,051