September 9, 200322 yr I would like to have my next/prev icons grey out accordingly when I am at the beginning or the end of a found set. I have solved the beginning but how do I tell when I am at the last record? [FMP-If: CurrentRecordNumber .eq. 1 ] 'icon' [/FMP-If]
September 9, 200322 yr Syntax example(s) Returns the total number of records in the found set using an HTML file Record(s) in found set: [FMP-CurrentFoundCount] <!-- After processing it could look like: Record(s) in found set: 12 --> grab it as a variable (JS) set varCurrent= [FMP-Current FoundCount] [FMP-If: CurrentRecordNumber .eq. 'varCurrent' ] 'iconLAST' [/FMP-If] I have not tried it but just as a thought....maybe...maybe not good luck!
September 11, 200322 yr Hi, first the obvious: If you use: [FMP-LINKPREVIOUS] Previous Results [/FMP-LINKPREVIOUS] and [FMP-LINKNEXT] Next Results [/FMP-LINKNEXT] ...the links just disappear when there are no more to go to. so I guess we just have to add an "if" to replace it, like: [FMP-LINKNEXT] Next Results [/FMP-LINKNEXT] [FMP-IF: currentfoundcount.eq.{FMP-RANGEEND}] <FONT COLOR="#666666">Next Results</FONT> [/FMP-IF] and [FMP-LINKPREVIOUS] Previous Results [/FMP-LINKNEXT] [FMP-IF: rangestart.eq.1] <FONT COLOR="#666666">Previous Results</FONT> [/FMP-IF] ......and the "if" bit will replace the link bit [FMP-RANGSTART] and [FMP-RANGEEND] are the numbers of the first and last record being shown on the page regards, jeff ...er, I havn't tried this yet
September 12, 200322 yr Hi, sorry - I spoke too soon here! Just sticking "{FMP-RANGEEND}" in the "IF" doesn't work. I know the syntax to add a field as the second value is "field:fieldname" but I havn't worked out what it is to display a that variable. I'll work on this and get back to you aplologies, Jeff
September 12, 200322 yr Now there's a true FMP philanthropist dedicated to his craft! You , go, Jeff! --ST
Create an account or sign in to comment