Card View - 1st record of page does not get setPhrase() (v2025)

on listpage using cardview, had to change the pharse for "view" to "preview.

in listpage row rendered.

// ListOptions Rendered event
function ListOptions_Rendered(): void
{
    global $Security, $Language;
        
    $Language->setPhrase("ViewLink", "Preview");
...

when items are display the 1st card still displays view instead of Preview, moving to 2nd page, the same pattern occurs, 1st record is "view" then all the rest are "preview"


1st item inspect:

2md item inspect:

That is because you used ListOptions_Rendered which is too late for your change (and there is no need to set it for every row), you should use earilier event such as Page_Render.

thanks makes sense, thanks appreciated.

issue resolved.