Skip to content

TwistedInteractive/field_unique_link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unique link field

This extension allows you to create a link to an unique URL, for example: when you want to send someone an e-mail with a link which is only valid for 24 hours.

How does it work?

Simply add the field to your section. You can set the following parameters

So how can I use this in my site then?

Simply create a page with a parameter called code (for example) and add a datasource with the unique field link to it.

Next, use some XSL logic. For example, something like this:

<xsl:choose>
    <xsl:when test="$code = my-datasource/entry/link/@code">

        <!-- The code is valid! Show some content, form, etc... -->

    </xsl:when>
    <xsl:otherwise>

        <!-- The code is not valid! Show some error message or something -->

    </xsl:otherwise>
</xsl:choose>

About

Generate an unique link for Symphony CMS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages