Skip to main content

Questions tagged [token]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
111 views

Craft CMS 5 Headless live preview using nuxt not working

I'm not understanding how the preview mode exactly works trough graphql queries for Craft CMS headless. Using Craft CMS 5. From what I read, all I have to do is add the 'token' in the headers of the ...
mtsfrstd's user avatar
1 vote
1 answer
240 views

How to generate a token, retrieve it and delete it

I have a workflow were a user will be given a link, with a token attached to it, upon clicking that link, the token will be read from the query string, if it is valid the user will be presented a ...
Wally's user avatar
  • 343
1 vote
0 answers
220 views

Using tokens to authenticate a one-time download link?

I am trying to create a download link to an ASSET in craft that I can send via email - the client clicks the email link (which has a token query string attached to validate the link) and is presented ...
Wally's user avatar
  • 343
3 votes
1 answer
472 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 ...
David Jones's user avatar
2 votes
1 answer
304 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" ...
henry's user avatar
  • 228
3 votes
1 answer
2k 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?
Anson LeClair's user avatar
1 vote
3 answers
615 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 ...
Bowenac's user avatar
  • 821
3 votes
1 answer
488 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/* ...
taylor's user avatar
  • 1,128
2 votes
1 answer
1k 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 ...
Matt Stein's user avatar
  • 4,006
1 vote
1 answer
95 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 ...
Tim Kelty's user avatar
  • 3,081