Jump to content

This topic is 7813 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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]

Posted

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 smile.gif

good luck!

Posted

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 smirk.gif

Posted

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

This topic is 7813 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.