Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISPAGE:XXX] is not working correctly #77

Open
MaiklT opened this issue Feb 1, 2022 · 2 comments
Open

[ISPAGE:XXX] is not working correctly #77

MaiklT opened this issue Feb 1, 2022 · 2 comments

Comments

@MaiklT
Copy link

MaiklT commented Feb 1, 2022

When I use [ISPAGE:1]...[/ISPAGE:1] in the View.Item template, it shows the correct content when I enter the article and it has multiple pages, otherwise not.

If the article has multiple pages and I go from page 1 to page x, or enter the article on page x (where x > 1), and then (back) to page 1, the part inside [ISPAGE:1]...[/ISPAGE:1] is not displayed.

@vmasanas
Copy link
Collaborator

vmasanas commented Feb 1, 2022

@MaiklT this might be the same issue I reported and fixed here?
#64

@MaiklT
Copy link
Author

MaiklT commented Feb 1, 2022

Not exactly - I have 3 pages, and it works correctly when changing between the pages. I use this token for example to display the image and the summary only on page 1:

   [ISPAGE:1]
   [HASSUMMARY]
   <div class="articleTeaserIntro">
      <p>[HASIMAGE]<img src="[IMAGETHUMBLINK:100]" class="articleTeaserThumbnail">[/HASIMAGE][SUMMARY]</p>
   </div>
   [/HASSUMMARY]
   [/ISPAGE:1]

(I also tried with [ISPAGE:001]...[/ISPAGE:001])

When I go to the article from the listing by clicking the link this is displayed. When I navigate to another page and back to page 1 it is not displayed anymore.

When I add something like

   [ISPAGE:002]
   <div class="articlePageText">
      2
   </div>
   [/ISPAGE:002]
   [ISPAGE:003]
   <div class="articlePageText">
      3
   </div>
   [/ISPAGE:003]

it works as expected, the problem is only with page 1.

I guess it has something to do with the Url. When I come from the listing, the Url is

NewsArticles/ID/1/Lorem-ipsum

otherwise it is

NewsArticles/articleType/ArticleView/ArticleID/1/PageID/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants