Register   Login
     
  Latest Posts  
RE: NA Latest - Template question
by Blondie on 3/17/2010 9:03 PM
RE: Multiple images in RSS feed
by eyesocketnet on 3/17/2010 8:20 PM
RE: Images/Lightbox on Listing template
by eyesocketnet on 3/17/2010 8:15 PM
Resouce Files
by IMISOFT on 3/17/2010 5:59 PM
RE: BUG So many 404's with rssbutton.gif
by smcculloch on 3/17/2010 4:30 PM
BUG So many 404's with rssbutton.gif
by greenflash on 3/17/2010 2:45 PM
RE: thumbnails and W3C validation
by greenflash on 3/17/2010 2:38 PM
RE: Dual PA modues on site for different levels of access?
by robax on 3/17/2010 1:38 PM
RE: Where is the NA Latest Article Module setting stored?
by ray-isc on 3/17/2010 1:10 PM
RE: Where is the NA Latest Article Module setting stored?
by Declic Video on 3/17/2010 12:46 PM
  Forums  
Subject: News Articles Tokens
Prev Next
You are not authorized to post a reply.

Author Messages
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17192


5/15/2009 5:53 AM  
There is a mistake in the original post, [LINKPREVIOUSURL] is only accessible in listing.header.html, listing.footer.html

Scott McCulloch
Site Administrator
Michel BarreauUser is Offline
Gold Membership
Ventrian Newbie
Ventrian Newbie
Posts:4

5/15/2009 7:34 AM  

Hi Scott,

Thanks a lot! Could you add this tokens for the View.Item.htm template in a next version?

Regards,

Michel

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


5/18/2009 7:14 AM  
Where would they go though? The previously viewed page?

Scott McCulloch
Site Administrator
Michel BarreauUser is Offline
Gold Membership
Ventrian Newbie
Ventrian Newbie
Posts:4

5/18/2009 8:42 AM  

Hi Scott,

AFAIK there is no way to navigate with icons to previous and next pages in the View.Item.htm. I could add a img tag in the resource file instead the "Next" and "Previous" text, but in this case my change apply to all News Articles instances. It's a workarround but I want to have choice! ;-) I need to create 2 icons to navigate between article pages (not between articles). My first idea was to use the LINKPREVIOUSURL and LINKNEXTURL (because LINKPREVIOUS and LINKNEXT are used to navigate "with text link" between pages), but they do no work.

Michel

Michel BarreauUser is Offline
Gold Membership
Ventrian Newbie
Ventrian Newbie
Posts:4

6/13/2009 5:36 PM  

Hi Scott,

Finaly, I searched my own solution. I choosed to add the following cases to the ProcessArticleItem method in the LayoutControler class.

Line 1500:

Line 1559

The two new cases add two token to retreive the url of the next/previous page inside an article. The code is very close than the case "LINKNEXT" and "LINKPREVIOUS", but return a literal instead an anchor control. I could be great if you could add this changes to the next release.

Regards,

Gilles


Attachment: LayoutController.zip

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


6/14/2009 7:48 AM  
Yep, I can add that in.

Scott McCulloch
Site Administrator
JustinUser is Offline
Gold Membership
Ventrian Newbie
Ventrian Newbie
Posts:1

7/07/2009 11:10 PM  

Hi Scott,

Is there an updated master list of all tokens available in News Articles templates?

I see there have been a lot of suggestions, etc. since the original posting 4 years ago and I am not clear on whether the original list has been updated to reflect any changes.

 

Thanks and regards,

Justin.

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


7/07/2009 11:19 PM  
Hi Justin,
The first post is updated with each release.

Scott,
I've just noticed that the tokens list in the LA module settings says [IMAGETHUMB:XXX] where it should read [IMAGETHUMB:XXX:XXX]

Rob
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17192


7/08/2009 7:32 AM  
Your right, thanks for pointing that out.

Scott McCulloch
Site Administrator
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17192


7/08/2009 7:33 AM  
Justin, the original post is updated with new tokens.

Scott McCulloch
Site Administrator
SaeedUser is Offline
Registered Users
Ventrian Newbie
Ventrian Newbie
Posts:2

7/10/2009 11:59 PM  

how i can customaze backgrand color of news body please ?

 

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


7/13/2009 6:50 AM  
Posted By Saeed on 7/10/2009 11:59 PM

how i can customaze backgrand color of news body please ?

 


Please open a new thread for this.


Scott McCulloch
Site Administrator
Daniel SchmitzUser is Offline
Gold Membership
Ventrian Super Newbie
Ventrian Super Newbie
Posts:20

7/31/2009 2:38 PM  

Hi,

I need [TABTITLE]-token in Listing.Header.Html/Listing.Footer.Html for this szenario described in FAQ:

Q.  Is it possible to create a Category for each of these, and only display the articles from the Events Category on the Events page, etc. ? Or do I need to add a new instance of the module on each page?

A.   This is now possible with 00.00.09! It is possible by adding a module to any page, and then using "add existing module" to add it to other pages. You can then restrict categories in each to filter (Admin Options) the output relevant for each "instance".
But that has one drawback. The module-titles (container) on all pages are allways the same. To solve this, i create a container without displaying a module-title and i want to put following template into Listing.Header.Html.
[TABTITLE]
Or is there a better way to do this?
Regards
Daniel
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17192


8/03/2009 7:54 AM  
Tab title is the title of the page - not the module, so it should change on each page?

Scott McCulloch
Site Administrator
Daniel SchmitzUser is Offline
Gold Membership
Ventrian Super Newbie
Ventrian Super Newbie
Posts:20

8/03/2009 1:01 PM  

Yes, i want to display the title of the page. It should change on every page. The Page-Title works as a category-group title.

For the moment i solved this with a custom container. In it i use (instead of ) following snipppet.

<%=PortalSettings.ActiveTab.Title %>

But it would nice to have this token, so it can be used overall inside the template. With the custom template, i can use the title only outside of the module-contentpane.

Regards
Daniel

Will SuggUser is Offline
Gold Membership
Ventrian Active Member
Ventrian Active Member
Posts:41


8/22/2009 2:49 PM  

I am trying to find a token to list the categories for that instance of the NA module in the listing.header.html file. Is there one? I am using NA in a 'wiki' type set up so I have NA on each wiki page with several articles for each instance. They have different categories per instance as one wiki page might be apples with categorie "Pest Control, Recipes" and another like pigs might include "Vet Care". So I need to the token to pull the categories for that instance.

thanks,

Will

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


8/25/2009 2:44 PM  
Will,

It is possible on a single category using "CategoryView", for multiple categories there isn't a token yet. When using categoryview, it uses the Category.html at the top.

I could add a token that pulls out the filtered categories into listing.header.

Scott McCulloch
Site Administrator
Will SuggUser is Offline
Gold Membership
Ventrian Active Member
Ventrian Active Member
Posts:41


8/25/2009 3:44 PM  
For now I will just link to the category pages from each category hardcoded in the module settings header. A bit laborious but will work until there can be a token.

Thanks,

Will
Will SuggUser is Offline
Gold Membership
Ventrian Active Member
Ventrian Active Member
Posts:41


8/30/2009 11:57 AM  
Laborious makes it sound too easy. Doing it this way (with module headers) is a major pain. Any chance of a token for this? [CATEGORYLIST] with | inbetween each one?

thanks,

Will
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17192


8/31/2009 5:20 AM  
Posted By Will Sugg on 8/30/2009 11:57 AM
Laborious makes it sound too easy. Doing it this way (with module headers) is a major pain. Any chance of a token for this? [CATEGORYLIST] with | inbetween each one?

thanks,

Will


Why would it have a | between them if it's on the view category page?

Oh wait, I understand, it pulls out the categories filter and adds them to listing.header?


Scott McCulloch
Site Administrator
You are not authorized to post a reply.
Forums > Modules > News Articles > News Articles Tokens



ActiveForums 3.7