This might be a take a lot of time and might be a tough question to answer, but please help.
I have a blogger blog It is a blog for reading Japanese Manga.
The theme of this blog was actually published not fully developed.I downloaded it and applied it and even though I have almost completed the coding at necessary places, some problems are left out.
One of them is Next and Prev button. For temporary uses I have put data:newerPageUrl and data:olderPageUrl The above both tags are used for linking to the previous post and next post.
Since this is a manga website, I want the next button to work so that it goes till the end of the last chapter of a title of manga (under the same categories) and gives an error saying that next chapter is not yet available.
Leaving the error part out, for now all I want is for the Next button to go to Next chapter of the manga and stops at the last chapter of that manga.
The code that was already in the theme is :
<nav class='op-pagi'>
<a class='blog-pager-older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + "_blog-pager-older-link"' expr:title='data:olderPageTitle'>
<i class='fa fa-angle-left'/> Prev</a>
<a class='blog-pager-newer-link' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + "_blog-pager-newer-link"' expr:title='data:newerPageTitle'> Next <i class='fa fa-angle-right'/>
</a>
</nav>
Let me simplify my Idea more easily and tell you:
Manga is a type of comic.
These Manga's are generally categorized into different genres.
One Manga can obviously come under different genres.
The genres that I mention for these mangas are like : Romance,School,Comedy,Action,Adventure and other such.
In my blog I am using these genre's as labels.
Suppose a manga has 3 chapters in them:
Chuuko demo Koi ga Shitai! Chapter 1
Chuuko demo Koi ga Shitai! Chapter 2
Chuuko demo Koi ga Shitai! Chapter 3
And suppose all the above 3 chapters come under 4 same labels like :
Romance, School, Comedy, Chuuko demo Koi ga Shitai!
Since they are the chapters of the one and same title manga Chuuko demo Koi ga Shitai!
Suppose I have 3 posts that I have posted in my blog:
Post 1:
Title : Chuuko demo Koi ga Shitai! Chapter 1
Label: Romance, School,Comedy,Chuuko demo Koi ga Shitai!
Post 2:
Title : Chuuko demo Koi ga Shitai! Chapter 2
Label: Romance, School,Comedy,Chuuko demo Koi ga Shitai!
Post 3:
Title : Dungeon Seeker Chapter 1
Label: Action, Drama, Fantasy, Dungeon Seeker
Suppose I am browsing the first post : Chuuko demo Koi ga Shitai! Chapter 1.
After reading I press the NEXT button and it goes to the next chapter Chuuko demo Koi ga Shitai! Chapter 2.
Now when I press NEXT button I don't want it to go to Dungeon Seeker Chapter 1. It will go to dungeon seeker chapter 1 since I am using data:newerPageUrl as HREF value of the NEXT button html code.
Instead I just want it to end there.
More simply :
Demonstration of what happens when I press next button :
Dungeon Seeker Chapter 1
next button : Dungeon Seeker Chapter 2
next button : Dungeon Seeker Chapter 3
next button : Dungeon Seeker Chapter 4
If no more chapters...no more next button.
Seems like when I reach the latest post NEXT button automatically gets disabled. Looks like it was preinstalled in the theme.
If you understand then,
Please help by providing a code :)