News Article Tokens

Follow

Comments

40 comments

  • Avatar
    IowaComputerGurus

    I really need a wya to identify the currently selected category for a category archive display.  Is there a way to handle that?

  • Avatar
    Scott McCulloch

    Not specifically (there are tokens for month/year though). I could add them in though:

    http://support.ventrian.com/entries/21862568-add-tokens-for-selected-category-in-archives-module

  • Avatar
    WiredKiwi

    I can't seem to find the tokens available for the News Articles Latest module?

  • Avatar
    Scott McCulloch

    WiredWiki - the tokens are in the module on the settings page (Template Help)

  • Avatar
    Scott McCulloch

    There is now a templating guide located here:

    http://support.ventrian.com/entries/22143468-templating-news-articles-for-dotnetnuke

  • Avatar
    jaxuk

    Are Standard DNN tokens also supported in the templates? e.g. [User:Email]

  • Avatar
    obadiah.williams

    is it possible to change the comment gravatar to something more generic? I looked in the comment section of the admin panel and couldn't find anything

  • Avatar
    Frey-Z

    Hi. I'm using the News Article module and I'm wondering if there's any way to change the text at the bottom where it says

    | Page 1 of 2                                      First    Previous  [1] 2 Next Last |

     

    I'm doing this website in another language and this is the only bit that I haven't been able to change/translate in my template.

  • Avatar
    Scott McCulloch

    Frey-Z, try this one:

    http://support.ventrian.com/entries/22106393-customizing-the-pager-for-news-articles

  • Avatar
    Amor

    Scott, what is the token [RESX: NoArticles]?

    <!-- Listing.Empty -->
    <span class="NormalBold">[RESX:NoArticles]</span>

  • Avatar
    fkobas

    Hi!

    Is it possible to set the thumbnail size when using [IMAGES] (array of all images related to the article)?

    It seems to me that is set to 125px and isn't editable...

    Thank you!
    Regards,

    Fabio

  • Avatar
    Scott McCulloch

    Fabio - [IMAGES] will use the image template for each image. So you can use:

    [IMAGETHUMB:XXX:YYY] where XXX is the max width and YYY is the max height.

    Make XXX and YYY whatever values you want.

    The template guide is here if you need more help:

    http://support.ventrian.com/entries/22143468-templating-news-articles-for-dotnetnuke

  • Avatar
    Scott McCulloch

    Amor - that token pulls the "NoArticles.Text" entry for the localization files in /desktopmodules/dnnforge - newsarticles/app_localresources/sharedresources.ascx.resx

    This allows people to have different text per language. 

  • Avatar
    fkobas

    Hi Scott!

    Thank you for answering.

    I wanna show all images (the [IMAGES] behaviour) but [IMAGETHUMB:XXX:YYY] shows only the first image.

    How can I show all images and set the width and height?

     

    Thank you.

    Regards,

    Fabio

  • Avatar
    Scott McCulloch

    If you use [IMAGES], it will load the images template for each image.

    You can then modify Image.Item.Html and change it using the token I specified. 

  • Avatar
    fkobas

    Hi Scott!
    Everything is working fine now!

    Thank you!

  • Avatar
    Scott McCulloch

    Updated with menu tokens

  • Avatar
    WiredKiwi

    Hi Scott,

    Is it possible to modify the path of the links created by the Categories token in the View Item and Listing Item template? I'd like to use the Categories token as a sort of site-wide collator link but I've got 34 (!) instances (linked) of the NA module on the site, so I want to send the Categories token link to one central 'more info' type page rather than the current NZ instance.

    Thanks

  • Avatar
    fkobas

    Hi Scott,

    I'm using the template Listing.Item.Html with the token [DETAILS:XXX].

    Sometimes the words are broken and if they have accent at the XXX position, the word appears splitted with ASCII code like this 'confer&ecir...'.

    Can you help me on how to solve this issue?


    Thanks in advance!

    Regards,

    Fabio

  • Avatar
    Loukas

    Hey Fabio,

     

    you just need to go to host -> HTML editor manager

    Select "everyone" from the left column and deselect the "ConvertCharactersToEntities" checkbox.

    Update Settings

    This will solve your problem =]

     

    /Loukas

  • Avatar
    Loukas

    Hey Scott,

    I've noticed that with latest version and in the "Comment.Item.Html/Rss.Comment.Item.Html/Latest Comments" template:

    the ARTICLELINK and ARTICLEID tokens doesn't work but there is the COMMENTLINK token that works (not included in your list).

    Thanks,

    /Loukas

  • Avatar
    Mike Riley

    Scott:

    Any way to do a different template for alternating items? Even something as simple as applying a different background color for even/odd items.

    A MOD(INDEX/2)=0, for example?

  • Avatar
    Loukas

    One of the most simple ways:

    http://www.huntingground.freeserve.co.uk/main/mainfram.htm?../style/alt_div_col.htm

     

    Hope it helps :)

  • Avatar
    jaxuk

    Hey Scott,

    Is there tokens for the category.html template for the category image url? e.g. [CATEGORYIMAGELINK]

    Thanks

    Jax 

  • Avatar
    Nanz

    Hey Scott

    I am also looking for a Category Image token to use in the Category.html template.  Does this exist?

  • Avatar
    Loukas

    You can use the [IMAGELINK] in the Category.Html template :)

    Example: http://www.exploria.gr/Blog/tabid/88/articleType/CategoryView/categoryId/2/language/en-US/Announcements.aspx

  • Avatar
    Nanz

    Thanks Loukas.

    Is there an Image Link for the Category Archives template?

  • Avatar
    Loukas

    No problem Nanz.

    I am not aware of any image link token for the categories :\ 

  • Avatar
    Brad

    Can you add a new token
    [ISEDITMODE]
    [/ISEDITMODE]

    Would be nice to be able to include additional information in the Listings templates when the page is in edit mode.

Please sign in to leave a comment.

Powered by Zendesk