Register   Login
     
  Latest Posts  
RE: News Articles Tokens
by ray-isc on 3/21/2010 3:04 PM
RE: Can'd add photo
by rsobari on 3/21/2010 10:17 AM
Tracking image/file clicks
by spirit on 3/21/2010 8:46 AM
Catcha doesnt seem to work
by chaloum on 3/20/2010 8:16 PM
RE: Recently created articles are not shown in list
by atriage on 3/20/2010 10:15 AM
RE: Recently created articles are not shown in list
by spirit on 3/20/2010 10:08 AM
RE: Introducing the most powerful News Slider for Ventrian News Articles
by jhoelz on 3/19/2010 9:29 PM
Rich Snippets for Review, Ratings etc!
by georgelew on 3/19/2010 7:49 PM
Recently created articles are not shown in list
by atriage on 3/19/2010 11:18 AM
RE: News Articles Tokens
by spirit on 3/19/2010 10:43 AM
  Forums  
Subject: List of token attributes?
Prev Next
You are not authorized to post a reply.

Author Messages
ROBAXUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:1018


2/06/2006 2:25 PM  

Hi all,

Wondering if there's a list of token attributes anywhere?

I've printed out the list of token in order to design my own skin, but I immediately want to change things such as how the date displays (words/numbers) and also add and outline to the image. I'd normally just put that in the <img> tag but the [IMAGE] token seems to generate the whole tag by itself so I can't put anything extra in it... is that what is happening here?

Any comments appreciated,

Rob

armand datemaUser is Offline
Registered Users
Ventrian Active Member
Ventrian Active Member
Posts:38

2/06/2006 3:30 PM  

wel you could do something like

<span class="imageholder:>[image]</span>

 

and style using

 

span.imageholder img

{

css here

}

 

ROBAXUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:1018


2/07/2006 10:57 PM  

Thanks Nokiko,

That turned into a good workaround for the image border.

Turns out there is also is a lot of power in Scott's [HAS][/HAS] tokens. I think there should be one for images too.

The hardest bit for me yesterday was styling a sequence of tokens all exactly the same. They don't all appear to accept CssStyle attributes. The following took ages to get right but I did manage in the end with yet more contextual styles.

[PUBLISHSTARTDATE][AUTHOR][HASCATEGORIES][CATEGORIES][/HASCATEGORIES][VIEWCOUNT][HASCOMMENTSENABLED]<a href="[COMMENTLINK]" >Comments: [COMMENTCOUNT]</a>[/HASCOMMENTSENABLED]

I'll put a request for attributes in the tokens thread

Rob

Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


2/09/2006 5:10 AM  
Normally I have a [IMAGELINK] token that just displays the url to the image, did I not have one?

Scott McCulloch
Site Administrator
ROBAXUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:1018


2/09/2006 7:23 PM  

Yes that's there thanks scott.

In the end it turned out nokiko's version, but as a div, worked best for the purpose....

I have the image floating in the summary area with a 1 pixel outline around it and wanted it to collapse away to nothing when no image is present.

If anyone would like to use my bits:

 <div class="articleimage" style="position: relative; float: right">[HASMOREDETAIL]
 <a href='[ARTICLELINK]' title="Click to read the full article">[/HASMOREDETAIL][IMAGE][HASMOREDETAIL]</a>[/HASMOREDETAIL]
 </div> [SUMMARY][HASMOREDETAIL]<a href='[ARTICLELINK]' class="NormalSmallBold" title="Click to read the full article">...read more</a>[/HASMOREDETAIL]

and the related style:

div.articleimage img {
 border: 1px solid Gray;
 width: 80px;
 margin-left: 8px;
}

You are not authorized to post a reply.
Forums > Modules > News Articles > List of token attributes?



ActiveForums 3.7