Register   Login
     
  Latest Posts  
RE: how to use news article source with dnn source to change and compile whole source code?
by nosa on 7/04/2009 9:02 AM
Dark background skin
by craig on 7/04/2009 5:55 AM
RE: Trial peroid
by glenwin on 7/04/2009 4:45 AM
RE: Different skin for View Item?
by cchufook on 7/03/2009 10:29 PM
RE: Different skin for View Item?
by swebster on 7/03/2009 10:10 PM
Different skin for View Item?
by cchufook on 7/03/2009 8:13 PM
RE: Human friendly URL not working--Urgent
by Madz on 7/03/2009 11:26 AM
RE: Friendly URL and DNN4.8.0 ?
by Madz on 7/03/2009 11:25 AM
Human friendly URL not working--Urgent
by Madz on 7/03/2009 11:11 AM
RE: Google Sitemap Revisited
by georgelew on 7/03/2009 4:26 AM
  Forums  
Subject: News Articles Tokens
Prev Next
You are not authorized to post a reply.

Author Messages
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:14659


1/16/2008 1:42 PM  
Yes, you can format the date in Monday 15 September 2008 using [CREATEDATE:D] I think.

Or you can specify the parameters individually, [CREATEDATE:dddd dd MMMM yyyy]

More information on date format strings can be found here

Scott McCulloch
Site Administrator
Jean-Sylvain BoigeUser is Offline
Gold Membership
Nuke Active Member
Nuke Active Member
Posts:43


1/17/2008 7:58 AM  

Thank you Scott. I did not found that by myself.

D gives Tuesday, January 15, 2008

dddd dd MMMM yyyy gives Tuesday 15 January 2008

 

I'm in state to give you a link with to a site which is essentially composed of NewsArticle with templates. This could gives some good ideas. I'll post the link the next week when releasing in production.

Sébastien


Team Aricie
www.aricie.com
Jean-Sylvain BoigeUser is Offline
Gold Membership
Nuke Active Member
Nuke Active Member
Posts:43


1/18/2008 1:51 PM  

Hello,

[CREATEDATE:dddd dd MMMM yyyy] don't work on Comment.item.html. Should be parsed by token parser but seems to be a missed token here.


Cheers,

Sébastien


Team Aricie
www.aricie.com
Jean-Sylvain BoigeUser is Offline
Gold Membership
Nuke Active Member
Nuke Active Member
Posts:43


1/21/2008 7:01 AM  

Relative to [HASLINK][/HASLINK] :

[HASLINKEDARTICLE][/HASLINKEDARTICLE] : this could be used on view.item to show a link "Read original article" or on listing for directly redirect to the orginal article.

[HASLINKEDFILE][/HASLINKEDFILE] : if the article have a linked file : this could be used on view.item or list.item in order to show a download file buton.

works with [HASNOLINK][/HASNOLINK]

For example :

[HASLINKEDARTICLE]
< a href="[LINK]">[TITLE] (external article)< /a >
[/HASLINKEDARTICLE]

[HASLINKEDFILE]
< a href="[LINK]"> < img scr="MydownloadButon.png" /> < /a >
[/HASLINKEDFILE]

[HASNOLINK]
< a href="[ARTICLELINK]">[TITLE] (internal article)< /a >
[/HASNOLINK]

 

 


Team Aricie
www.aricie.com
Mariette KnapUser is Offline
Registered Users
Nuke Master
Nuke Master
Posts:650


1/21/2008 10:04 AM  

That is a great idea with HASLINKEDFILE. As long as it supports the secure storage in the file manager I am happy.



Subscribe for great articles and howtos. Get unlimited access to all content.
Mariëtte Knap
www.smallbizserver.net
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:14659


1/22/2008 4:52 AM  
Great guys, I'll add them in.

Scott McCulloch
Site Administrator
SSUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:5

1/22/2008 9:14 AM  
Any tokens to align a image?

Something like: [IMAGE:left], [IMAGE:center], [IMAGE:right]

Or tell me where I can edit the existing tokens, so i can add align=""

Please help me someone...
Joe MaierUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:182

1/22/2008 10:02 AM  
There is a token which renders just the URL (IMAGE or IMAGELINK). You can then create your img Tag from scratch.
Another elegant solution is to embed the article in some div or td and apply a CSS class to that div, e.g. "HomepageNewsFeatured".
You can then apply the desired image formatting via CSS in the portal.css, e.g.:

td.HomepageNewsFeatured img {
float:left;
margin-bottom:10px;
margin-right:10px;
}

Cheers,
Joe

maiersoft internet solutions - www.maiersoft.de
Get your own managed DotNetNuke-Portal
Mike RileyUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:6

1/22/2008 11:08 AM  
Posted By Jessynoo on 1/21/2008 7:01 AM

Relative to [HASLINK][/HASLINK] :

-snip-

For example :

[HASLINKEDARTICLE]
< a href="[LINK]">[TITLE] (external article)< /a >
[/HASLINKEDARTICLE]

[HASLINKEDFILE]
< a href="[LINK]"> < img scr="MydownloadButon.png" /> < /a >
[/HASLINKEDFILE]

[HASNOLINK]
< a href="[ARTICLELINK]">[TITLE] (internal article)< /a >
[/HASNOLINK]

I, too, would love to see something like this.  Sometimes an article will have a link to a file, sometimes a link to a URL, sometimes it might have details, and sometimes it might have nothing.  It would be nice to be able to use these.

I think it also might be a good idea to add [NOTHAS...] to be able to create If/Then type scenarios.

ROBAXUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:882


1/22/2008 3:32 PM  
Posted By SSam on 1/22/2008 9:14 AM
Any tokens to align a image?

Something like: [IMAGE:left], [IMAGE:center], [IMAGE:right]

Or tell me where I can edit the existing tokens, so i can add align=""

Please help me someone...



Alignment is a design aspect and it really belongs in the template rather than in the token.

Edit your template file (either via the module menu or directly on the file system in the module's own templates folder) and add an alignment attribute or style to the tag that contains the token.

E.g. if [IMAGE] is sitting in a table cell then add align="left" to the TD tag

This is of course easier said than done if you're not familiar with these tasks... so ask again if it doesn't make sense.

Rob

Marcos HollandaUser is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:11

2/03/2008 8:27 PM  
Hi, I am in need of a [PAGETEXT] token in the News Articles Latest module. Is that an easy to do stuff? Which file should I edit in the source code pack? Thks.
ty aUser is Offline
Gold Membership
Nuke Active Member
Nuke Active Member
Posts:35


2/14/2008 5:34 AM  
Scott,
can you add a token for unconstrained image sizes? currently [IMAGETHUMB:XXX:YYY] maintains aspect ratio but this is not desirable if you want the image to fit a specific dimension. maybe [IMAGETHUMB:XXX:YYY:ASPECTOFF]?
ROBAXUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:882


2/14/2008 2:31 PM  
Posted By curlyfro on 2/14/2008 5:34 AM
Scott,
can you add a token for unconstrained image sizes? currently [IMAGETHUMB:XXX:YYY] maintains aspect ratio but this is not desirable if you want the image to fit a specific dimension. maybe [IMAGETHUMB:XXX:YYY:ASPECTOFF]?

I've harrassed Scott more than once about fixed-ratio thumbnail cropping because it vastly improves the look af a thumbnail gallery and also matches what all the places like Flickr do. I wouldn't want thumbs to be stretched, just cropped to a set size.

Scott, is there a chance this might make it into SG one day?

 

Ismet DumlupinarUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:182

2/18/2008 2:16 AM  
Hello i would like to have [ARTICLELINK] token working at View.Footer.html,

But it does not work.

Can you implement this on next release?

Why i am asking it is because, i would like to implement social bookmarking in view.footer.html file (my template is ready, but token needed)

Thanks.

DNN Tutorials
DotNetNuke Turkish Community
Ismet DumlupinarUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:182

3/05/2008 12:49 AM  
Hello??????

DNN Tutorials
DotNetNuke Turkish Community
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:14659


3/05/2008 12:55 AM  
The header/footer of the article don't really do anything that you couldn't put in the item. Why not just put everything in the view.item.html, it's always 1 item anyhow? You would have these tokens available then.

Scott McCulloch
Site Administrator
Déclic VidéoUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:977


3/08/2008 9:32 AM  
greeflash, for social bookmarking, Mitchel sellers made a wonderful article to explain how to do it.
On my side, I have not tried yet, but I will do so soon...
DV

Non linear video editing software, tips and tricks, tutorials... Déclic Vidéo FX
Ismet DumlupinarUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:182

3/08/2008 1:16 PM  
thanks, i will try both suggestions

DNN Tutorials
DotNetNuke Turkish Community
Déclic VidéoUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:977


3/13/2008 6:09 AM  
Any news greenflash ???

DV

Non linear video editing software, tips and tricks, tutorials... Déclic Vidéo FX
Ismet DumlupinarUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:182

3/17/2008 2:14 PM  
DV i a m already using Social bookmarking in my English blog > with my small modification to Nina's template. But i was talking about another blog template in my last reply here.

I haven't got time to update it yet.

DNN Tutorials
DotNetNuke Turkish Community
You are not authorized to post a reply.
Forums > Modules > News Articles > News Articles Tokens



ActiveForums 3.7