plainblack.com
Username Password
search
Bookmark and Share

    

Classname for subscribe/unsubscribe

User rogier
Date 11/11/2009 10:13 am
Views 518
Rating 0    Rate [
|
]
Previous · Next
User Message
rogier

Does this make any sense? From the collaboration template:

<tmpl_if user.isSubscribed>
  <a href="<tmpl_var unsubscribe.url>" class="subscribe un"><span><tmpl_var unsubscribe.label></span></a>
<tmpl_else>
  <a href="<tmpl_var subscribe.url>" class="subscribe"><span><tmpl_var subscribe.label></span></a>
</tmpl_if>

This allows a designer to style the unsubscribe link different from the subscribe link. But it's still possible to make them identical.

Alternatively we could use:

  • "subscribe" / "unsubscribe"
  • "subscribe on" / "subscribe off"
  • "sub subscribe" / "sub unsubscribe"
  • etc...

There's probably more instances of this type of "dynamic" links, so I thought it would be useful to come up with a standard.

Any ideas? Can anyone think of another examples of this type of link?

 

Rogier | United Knowledge
www.unitedknowledge.nl · www.webgui-help.nl



Back to Top
Rate [
|
]
 
 
serif

Although the logic behind your suggestion is clever, "subscribe un" kind of reminds me of pig latin. ;)

I'd tend to identify other areas with links like this (if they exist) and then have a general class with the classes "subscribe" and "unsubscribe". If there aren't any other links like this, your suggestion is fine.

I believe Tabb compiled a list of controls for each asset, so I'll take a look at that when I get a moment.

 

Tessa Harmon

Knowmad Technologies



Back to Top
Rate [
|
]
 
 
© 2012 Plain Black Corporation | All Rights Reserved