View Single Post
Old 11-21-2012, 02:48 PM   #2
chaley
"chaley", not "charley"
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 4,980
Karma: 802238
Join Date: Jan 2010
Location: France
Device: Many android devices
Quote:
Originally Posted by da_jane View Post
I am trying to create a custom column that requires a lowercase Authors and lowercase Title with all the punctuation stripped out. So far I have this:

http://releases.dearauthor.com/wp-content/coverimages/{author:lowercase()}/{title:lowercase()}({id})/cover.jpg

I know I can use re to strip out the punctation such as re(,\,) but I'm not sure where I put that to affect "author".

Do I make two additional custom columns. One to make the author lowercase and then another to strip out the punctuation using re.

lowercaseauthor:re(\,,)

did not work as an argument.
You can nest functions in either of template program mode or general program mode. For example, to strip commas from a lowercase author in template program mode you could use
Code:
{authors:'re(lowercase($), ',', '')'}
chaley is offline   Reply With Quote