Philipp Becker Non-Profit Membership
 Ventrian Wiz Posts:146


 |
| 12/08/2006 7:40 AM |
|
| That looks good, even better would be a print template that would implement all available tokens. |
|
Cheers, Philipp
 |
|
|
Mark Marucot Registered Users
 Ventrian Super Newbie Posts:24

 |
| 1/07/2007 4:25 PM |
|
| Can you add alignment property for [IMAGETHUMB:XXX] just like this [IMAGETHUMB:XXX-Y] where Y can be "C" for center align, "L" for Left" align and "R" for right align? I tried using the IMAGELINK token and include it in the image tag but the problem is that if the author didn't specify an image the listings shows blank images while other articles with images display thumbnails. |
|
|
|
|
ROBAX Gold Membership
 Ventrian Master Posts:1018


 |
| 1/07/2007 5:00 PM |
|
Posted By markmarucot on 1/07/2007 4:25 PM Can you add alignment property for [IMAGETHUMB:XXX] just like this [IMAGETHUMB:XXX-Y] where Y can be "C" for center align, "L" for Left" align and "R" for right align? I tried using the IMAGELINK token and include it in the image tag but the problem is that if the author didn't specify an image the listings shows blank images while other articles with images display thumbnails.
Note: It's proving very difficult to post the code in the forum. I'll have to change the angle brackets for normal brackets to make it work - make sure you change them back. (arrrghh.. where are the text colour buttons?? I was trying to make the code more clear with colour)
Here's how I do it:
Put the [IMAGE] token in a div and style the div to float where you want it. Use the [HASMOREDETAIL] token to enable/disable the [ARTICLELINK] token.
(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)
Place the div just ahead of your [SUMMARY] token in your Listing.Item.html
Note that I have a class specified for the div as well. You can use that for applying padding, borders, or anything else needed.
Regards, Rob
p.s. |
|
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 1/08/2007 2:06 AM |
|
Thanks Rob..
Does that post answer your question mark? |
|
Scott McCulloch Site Administrator |
|
|
Mark Marucot Registered Users
 Ventrian Super Newbie Posts:24

 |
| 1/08/2007 7:55 AM |
|
| I tried it but [HASMOREDETAILS] token is not working on Latest Articles module. It displayed the token itself. It would work if [HASMOREDETAILS] token is included in the list of tokens that can be process by Latest Articles module. |
|
|
|
|
y01nk Registered Users
 Ventrian Master Posts:201


 |
| 1/08/2007 8:05 AM |
|
Posted By robax on 1/07/2007 5:00 PM
Here's how I do it:
Put the [IMAGE] token in a div and style the div to float where you want it.
Ah, very nice.
Thanks!
|
|
 |
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 1/08/2007 3:19 PM |
|
Posted By markmarucot on 1/08/2007 7:55 AM I tried it but [HASMOREDETAILS] token is not working on Latest Articles module. It displayed the token itself. It would work if [HASMOREDETAILS] token is included in the list of tokens that can be process by Latest Articles module.
I'll be making a build this week, so that the latest articles uses the same tokens as the actual articles, this should help to synch the tokens.
Sorry for the inconvenience. |
|
Scott McCulloch Site Administrator |
|
|
ROBAX Gold Membership
 Ventrian Master Posts:1018


 |
| 1/08/2007 3:51 PM |
|
Posted By smcculloch on 1/08/2007 3:19 PM
I'll be making a build this week, so that the latest articles uses the same tokens as the actual articles, this should help to synch the tokens.
Excellent, that'll help me along as well :D |
|
|
|
|
Tom Kraak Gold Membership
 Ventrian Wiz Posts:142


 |
|
Robert Huber Registered Users
 Ventrian Wiz Posts:126

 |
| 1/10/2007 10:22 PM |
|
Just double checking... but do the [USERNAME] [FIRSTNAME] [LASTNAME] and [FULLNAME] tags still work in the comment notification (email) template for news articles? I'm using the latest build on a project now, and those tags don't seem to render anything. Just curious if the syntax changed or anything.
Thanks, Bob |
|
|
|
|
Dax Davis Gold Membership
 Ventrian Master Posts:349


 |
| 1/15/2007 10:33 PM |
|
Scott, I've become a bit confused. Is there a centralized document or post that has all of the template tokens in one place? I know this thread has them, but was wondering if the first post was being edited to include the new? I saw reference to you working on a document for this. Any help would be great, I would really love to be able to at least read the first post of this thread for a full list. Thanks.
Dax |
|
|
|
|
ROBAX Gold Membership
 Ventrian Master Posts:1018


 |
| 1/15/2007 11:04 PM |
|
That's what also confused me and obviously a few others. It's not clear whether the first post is kept current or if the new tokens are dotted throughout the thread.
So last week I compared an early copy of the first post that I had made, with the current version and the latter did have new tokens added.
It'd be handiest if a current list were present in the template editor like it is in the Latest Articles module and I believe Scott has said he would do that. |
|
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 1/17/2007 6:43 AM |
|
This thread at the very beginning gets updated when I release new tokens.
I'll be moving the templates inside the module and a document like property agent has for ease of use. |
|
Scott McCulloch Site Administrator |
|
|
petersruby
Posts:0

 |
| 3/02/2007 6:09 AM |
|
| I'm having a brain fart. What is the difference between [PAGETEXT] and [SUMMARY]? |
|
|
|
|
odove Registered Users
 Ventrian Master Posts:210

 |
| 4/17/2007 8:42 PM |
|
Posted By cmunoz on 10/11/2006 1:23 PM
Posted By smcculloch on 9/30/2006 7:12 AM
Posted By kalak on 9/28/2006 12:14 PM
Is it possible to have DISPLAYNAME like AUTHOR ?
Do you mean the new DisplayName entry available in later versions of DNN? I'm not sure I understand your question.
I as well would like to have a [AUTHORDISPLAYNAME] or similar token added so that the "Display Name" from the user's profile can be used instead of the User or First/Last name combinations.
I would also like to have [AUTHORDISPLAYNAME] token. It can be more useful in many cases compared to other user tokens.
|
|
|
|
|
ROBAX Gold Membership
 Ventrian Master Posts:1018


 |
| 4/18/2007 5:59 AM |
|
I agree, I think any module that displays user information should simply reflect the standard DNN user profile.. including user, first, last, display and so on.. even to the point of making all the other fields available.
I'd love to be able to make a tool-tip pop-up on the author's name that displayed their profile and a pic, all taken from the profile.. (if a pic field ever gets added to that).
Rob |
|
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 4/18/2007 9:53 AM |
|
Rob, It doesn't support the profile at the moment because the minimum version the module supports doesn't the profile functionality.
I am porting the modules to an ASP.NET 2 codebase, and will be able to take into account these features. |
|
Scott McCulloch Site Administrator |
|
|
y01nk Registered Users
 Ventrian Master Posts:201


 |
| 4/18/2007 11:37 AM |
|
Posted By smcculloch on 4/18/2007 9:53 AM
I am porting the modules to an ASP.NET 2 codebase
WOW! |
|
 |
|
|
ROBAX Gold Membership
 Ventrian Master Posts:1018


 |
| 4/18/2007 3:43 PM |
|
| sounds fabulous to me! :D |
|
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 4/19/2007 6:53 AM |
|
| I'm thinking of having the minimum version for new modules to be 4.5 also. The old downloads will still exist, it's just that i'll be able to use the absolute latest features, e.g. user permissions. |
|
Scott McCulloch Site Administrator |
|
|