Jack Hoelz Gold Membership
 Nuke Master Posts:815


 |
|
John Zimmerman Gold Membership
 Nuke Super Newbie Posts:13


 |
| 12/05/2005 3:11 PM |
|
| I am also using this for recipes, http://www.reinhartfoodservice.com/Default.aspx?tabid=348, and this is why I want a print token. |
|
|
|
|
chad caison Gold Membership
 Nuke Newbie Posts:8

 |
| 1/10/2006 11:00 AM |
|
| Would be nice if the Latest Articles template had a [URL] that would link directly to the article's URL, bypassing the detail. Also, if the Latest Articles could be paged. But the need for "Latest Articles" is not necessary if you could just define a category to show on a per module basis. |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12819


 |
| 1/11/2006 3:58 AM |
|
Posted By chadwick.caison on 1/10/2006 11:00 AM Would be nice if the Latest Articles template had a [URL] that would link directly to the article's URL, bypassing the detail. Also, if the Latest Articles could be paged. But the need for "Latest Articles" is not necessary if you could just define a category to show on a per module basis.
There is [LINK] which takes you straight to the article, or do you mean the link associated with an article? |
|
Scott McCulloch Site Administrator |
|
|
John L. Gold Membership
 Nuke Active Member Posts:46


 |
| 1/27/2006 6:36 AM |
|
Maybe I am overlooking it but is there a Token for the Date without the Day of the week? Also, is there a way to change the date format from month,dd,yyyy to mm,dd,yyyy example January 7,2006 to 01/07/2006.
|
|
Visit my wife's site at http://www.sarahlafon.com |
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12819


 |
| 1/27/2006 5:51 PM |
|
Posted By jlafon on 1/27/2006 6:36 AM
Maybe I am overlooking it but is there a Token for the Date without the Day of the week? Also, is there a way to change the date format from month,dd,yyyy to mm,dd,yyyy example January 7,2006 to 01/07/2006.
You can customize the date formats via the xml file associated with the template, these give you access to the date properties, there should already be an example in the default template. |
|
Scott McCulloch Site Administrator |
|
|
Robert Axford Gold Membership
 Nuke Master Posts:765


 |
| 2/07/2006 11:00 PM |
|
Some sort of list of attributes would be useful. I'm finding that not all tokens seem to accept all attributes.. even things such as CssClass?
I'm also finding the whole [Has][/Has] system very useful... good stuff
Rob |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12819


 |
| 2/09/2006 4:52 AM |
|
Posted By robax on 2/07/2006 11:00 PM
Some sort of list of attributes would be useful. I'm finding that not all tokens seem to accept all attributes.. even things such as CssClass?
I'm also finding the whole [Has][/Has] system very useful... good stuff
Rob
Now that I'm back, one of my tasks for this month is to complete the templating guide. What tokens are you wanting to use CssClass on? What are the default attributes you would like to see on all tokens? |
|
Scott McCulloch Site Administrator |
|
|
Robert Axford Gold Membership
 Nuke Master Posts:765


 |
| 2/09/2006 7:57 PM |
|
Posted By smcculloch on 2/09/2006 4:52 AM
Now that I'm back, one of my tasks for this month is to complete the templating guide. What tokens are you wanting to use CssClass on? What are the default attributes you would like to see on all tokens?
I guess the ain requirement for me is to be able to style any text item without having to use contextual styles to get around a hard coded style.
The reason this even came up was when I had great difficulty making the following sequence of tokens and text the same style (no need to examine the code bits here.. I'm just pasting them in to show the amount of stuff needed to make them look the same):
<td class="article">Contributed [CREATEDATE] [CREATETIME] by [AUTHOR][HASCATEGORIES] <span class="NormalSmall" title="Click to view further articles in these categories"> in [CATEGORIES]</span> [/HASCATEGORIES] | Views: [VIEWCOUNT] | [HASCOMMENTSENABLED] <a href="[COMMENTLINK]" title="Click to add your own comments and ratings" class="NormalSmall"> Comments: [COMMENTCOUNT]</a>[/HASCOMMENTSENABLED] </td>
The tokens wouldn't all accept a style attribute so I ended up having to make a set of conextual styles just for this one cell:
.article, td.article, .article span.normal, .article div.normal { font-family: tahoma, arial; font-size: 9px; font-weight: normal; color: gray; } td.article a, td.article a:link, td.article a:active, td.article a:visited { color:#68798F ; font-family: tahoma,arial; font-weight: normal; font-size: 9px; text-decoration: none; } td.article a:hover { color: #991f1f; font-family: tahoma, arial; font-weight: normal; font-size: 9px; text-decoration: none; }
That's all a bit messy sorry.... all it results in is a single line as follows:
Contributed Thursday, January 26, 2006 1:25 PM by Robert | Views: 18 | Comments: 1
It would have been much simpler if I could have just styled the cell it all sits in and leave it at that. I'm not exactly sure how to go about that... whether it's best to leave tokens unstyles by default or set them all to one unique style or give them all individual unique styles. Someone might have a good suggestion. The main thing is to keep it as easy to set a single style to many items, without having to set a new attribue for every little piece seperately. After all, we dont tend to need 20 style of text.. I'd say most of use use perhaps 3 styles in this module... the title, the text... and the list of posting details.
Oh, and on a related note.. is it possible to choose a date format?
"Thursday, January 26, 2006 1:25 PM" is a bit too long for me.. "1/26/2006 13:25" or "Thu 1/26/2006 13:25" would be a bit tighter maybe.
One thing I've been trying to do is maintain consitency across my site.. I spend a lot of time working to make the different modules behave as if they were made by the same person. Things like that way ratings are displayed, dates and comments etc are all things I try to make as similar as possible.
Just some ideas,
Regards, Rob
|
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12819


 |
| 2/10/2006 3:40 AM |
|
| You should be able to customize the date formats via the xml files, there should be an example in the default template and it uses the regular .net expressions |
|
Scott McCulloch Site Administrator |
|
|
John L. Gold Membership
 Nuke Active Member Posts:46


 |
| 2/10/2006 7:16 AM |
|
"Posted By smcculloch on 1/27/2006 5:51 PM
You can customize the date formats via the xml file associated with the template, these give you access to the date properties, there should already be an example in the default template."
Ok, I have searched for a couple of days looking for what to use in the Value field to get my date to display properly. I can not find it anywhere on the internet and have tried a couple different things. Can you point me to a good resource to learn how to properly format these values. Here is what I am trying to change to MM/DD/YYYY I have tried in value MM"/"DD'/"YY, MDY, %m/%d,%y, and other things as well.
<Token>[PUBLISHSTARTDATE]</Token> <Settings> <Setting> <Name>FormatString</Name> <Value>Y</Value> </Setting> </Settings>
|
|
Visit my wife's site at http://www.sarahlafon.com |
|
|
Robert Axford Gold Membership
 Nuke Master Posts:765


 |
| 2/10/2006 4:33 PM |
|
Posted By jlafon on 2/10/2006 7:16 AM
Ok, I have searched for a couple of days looking for what to use in the Value field to get my date to display properly. I can not find it anywhere on the internet and have tried a couple different things. Can you point me to a good resource to learn how to properly format these values. I haven't nutted it out yet myself, but the place to find all things asp/.net related is msdn.com
So I've found this page on the FormatString method: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/xdmthFormatString_HV01025232.asp
Click the list of category and the list of options links for the details.
I'll check it out later today and see if I can come with something suitable.
Rob
|
|
|
|
|
John L. Gold Membership
 Nuke Active Member Posts:46


 |
| 2/10/2006 6:41 PM |
|
Ok, Here is what I have figured out with some experimenting (A blind squirrel finds a nut every now and then)
For Value: D = Friday January 7,2006 d = 1/27/2006 Y or y = January 2006 M or m = Janary 27 |
|
Visit my wife's site at http://www.sarahlafon.com |
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12819


 |
| 2/10/2006 6:48 PM |
|
If you use just D, it should key of the locale format for the logged on user.
But if you wanted to force it into that format for everyone, I would use, dd/MM/yyyy (I think that's right). Lookup formatting expressions on MSDN for a complete list |
|
Scott McCulloch Site Administrator |
|
|
John L. Gold Membership
 Nuke Active Member Posts:46


 |
| 2/10/2006 6:56 PM |
|
That worked as well both MM/dd/yyyy and dd/MM/yyyy. Thanks
It doesn't work with MM/DD/YYYY, I guess it is case sensitive. That was throwing me off. It's the little things that will drive you nuts. |
|
Visit my wife's site at http://www.sarahlafon.com |
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12819


 |
| 2/10/2006 7:17 PM |
|
Posted By jlafon on 2/10/2006 6:56 PM That worked as well both MM/dd/yyyy and dd/MM/yyyy. Thanks
It doesn't work with MM/DD/YYYY, I guess it is case sensitive. That was throwing me off. It's the little things that will drive you nuts.
Heh, I have done that before (plenty of times), that's how I know the exact casing  |
|
Scott McCulloch Site Administrator |
|
|
Mariette Knap Registered Users
 Nuke Master Posts:650


 |
| 2/12/2006 8:49 AM |
|
| I don't understand why you need to set these in a seperate file. Should that not depend on the language the user chooses when he/she registers at the site? |
|
Mariëtte Knap www.smallbizserver.net |
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12819


 |
| 2/12/2006 2:10 PM |
|
Posted By Mariette on 2/12/2006 8:49 AM I don't understand why you need to set these in a seperate file. Should that not depend on the language the user chooses when he/she registers at the site?
Yes, it should work dependant on the settings when using a standard formatter such as "d" |
|
Scott McCulloch Site Administrator |
|
|
Philipp Becker Gold Membership
 Nuke Wiz Posts:146


 |
| 3/14/2006 6:17 AM |
|
Posted By smcculloch on 1/11/2006 3:58 AM
There is [LINK] which takes you straight to the article, or do you mean the link associated with an article?
A token for links associated with the article would be perfect! |
|
Cheers, Philipp
 |
|
|
Steinar Svendsen Registered Users
 Nuke Active Member Posts:49

 |
| 3/29/2006 1:57 AM |
|
Instead of [PRINT] I add the following to the View.Item.html
Print
I could not find a [TABID] tokens, that should be easy to implement 
/Steinar |
|
|
|
|