Member
Member
atif   2012-06-06, 04:49
#1

Hi, I am using [b][/b] to display Album URL on Album and Image Page. (Note: I set 5 Images per Page to show). Everything was going right when I had less than 5 Images per Album and Image Page was showing Album Link as [b]http://www.mydomain.com/happy-birthday/[/b] (as I wanted). But when I added more Images then more Pages were created and when I went to other Pages e.g. [b]Page 2[/b], [b]Page 3[/b] or [b]Page 4[/b] and clicked on Image to see what they are showing then I saw the Album Link is showing as [b]http://www.mydomain.com/happy-birthday/page/2[/b], [b]http://www.mydomain.com/happy-birthday/page/3[/b] or [b]http://www.mydomain.com/happy-birthday/page/4[/b] respectively.

It means the main problem is that it is generating links according to the Album Page [b]/happy-birthday/page/2[/b] or [b]/happy-birthday/page/3[/b] or [b]/happy-birthday/page/4[/b] and I don't want to display those Page Numbers. I want to display only Album URL i.e. [b]/happy-birthday/[/b]. Is there any other function to display only Album URL in album.php and image.php without Page Numbers?

Administrator
Administrator
acrylian   2012-06-06, 08:27
#2

Either you use pagination or you don't. What sense does it make to have pages if you cannot access them?

Setting the albums per page to a number so all fit on one page is the only way.

Member
Member
atif   2012-06-06, 09:43
#3

You didn't get my point. I have no problem with pagination, I am looking for a function which generates and display [b]Album's Root URL[/b] i.e. [b]http://www.mydomain.com/happy-birthday/[/b].

So, I used [b][/b] which is generating and displaying [b]Album's Root URL[/b] on [b]Page 1[/b] but on other Pages i.e. [b]Page 2[/b], [b]Page 3[/b], etc. it doesn't show [b]Album's Root URL[/b] instead it is showing [b]Album's Pagination URL[/b] i.e. [b]http://www.mydomain.com/happy-birthday/page/2[/b].

I want to know is there any way to [b]Display/Show[/b] [b]Album's Root URL[/b] i.e. [b]http://www.mydomain.com/happy-birthday/[/b] on other Pages i.e. [b]Page 2[/b], [b]Page 3[/b], etc.

Member
Member
atif   2012-06-06, 09:56
#4

Actually I want to [b]Display/Show Album's Root URL[/b] on my Album and Image pages with some text e.g.

Quote:The above Image is placed in the Happy Birthday Album and You can access it via this link [b]http://www.mydomain.com/happy-birthday/[/b]
OR

Quote:Share Happy Birthday Album with your Friends - Link to the Album [b]http://www.mydomain.com/happy-birthday/[/b]
These are the examples to clear my point that I want to show [b]Album's Root URL[/b] on Album and Image Pages with some text.

Administrator
Administrator
acrylian   2012-06-06, 10:19
#5

Ah ok.... Then you have to use the object mode to generate the album link using the album name.

In 1.4.3 (and the beta naturally has already) the album class method getAlbumLink()also will have a parameter for the page to get.

Member
Member
atif   2012-06-06, 10:35
#6

OK. I don't know how to use the object mode to generate the album link using the album name.

Did you mean that in 1.4.3 I will be able to generate [b]Album's Root URL[/b] using getAlbumLink()? If getAlbumLink() generate [b]Album's Root URL[/b] in 1.4.3 then I will wait for the release of 1.4.3 which is scheduled for June 15 I think.

Administrator
Administrator
acrylian   2012-06-06, 10:52
#7

No, with the album class method you then can set a parameter for the page in 1.4.3. The template function is bascially a wrapper for that anyway and mostly kept for backward compatibility.

The object model is the base of everything. We have a tutorial about the object model on the user guide. To generate the album link manually you can look at the album class methods directly (the files in zp.core).

You need to have a basic understanding of how object orientation in PHP works. You should really do as you might need it for any orther sort of special customization anyway.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.