Jun 7, 2013 at 9:26 AM
Edited Jun 7, 2013 at 9:33 AM
I must change pager text on blog posts. On my site there are two blogs. I would have two different pager texts, for example: Newer Blog1, Newer Blog2, Older Blog1, Older Blog2.
I can change pager text, but two blogs will have the same pager text.
Can I place here something like:
if (Model.ActualUrl.Contains("xyz")) Model.PreviousText="xyz" else Model.PreviousText = "abc".
But how to get actual Url ? Maybe there are best solutions for do something like this.
This is pager.cshtml file, where I made changes.
Model.Quantity = 0;
Model.PreviousText = "Newer Blog1";
Model.NextText = "Older Blog1";
Model.Metadata.Type = "Pager_Links";