Member
Member
no64   2007-08-12, 12:23
#1
This is showing up the "prev" "pagenumber" "next" links below the albums.

`

<?php printPageListWithNav("« prev", "next »"); ?>

`

how can I add an
`

rel="ajaxcontent"

`

to those displayed links?

Thank's
Member
Member
aitf311   2007-08-12, 15:28
#2
Do a search for "function printPageListWithNav(" without the quotes in template-functions.php. You can add it to the output there.
Member
Member
no64   2007-08-12, 18:38
#3
Do you mean this part:

`function printPageListWithNav($prevtext, $nexttext, $nextprev=true, $class="pagelist", $id=NULL) {

echo "";

$total = getTotalPages();

$current = getCurrentPage();

echo "n<ul class=\"$class\">";

if ($nextprev) {

echo "n <li class=\"prev\">";

printPrevPageLink($prevtext, "Previous Page");

echo "</li>";

}

for ($i=1; $i <= $total; $i++) {

echo "n <li" . (($i == $current) ? " class=\"current\"" : "") . ">";

printLink(getPageURL($i), $i, "Page $i" . (($i == $current) ? " (Current Page)" : ""));

echo "</li>";

}

if ($nextprev) {

echo "n <li class=\"next\">";

printNextPageLink($nexttext, "Next Page");

echo "</li>";

}

echo "n</ul>";

echo "nn";

}`

Where do I have to insert it?

Is it possible to do this in the index.php or album.php of a theme?
Or can I create that menu by myself ?
Member
Member
aitf311   2007-08-12, 21:55
#4
I believe you will need to make the following change to the top of that function: echo "<div" . (($id) ? " id=\"$id\"" : "") . " class=\"$class\" rel=\"ajaxcontent\">";

There is no other way to do this in the index.php or album.php that I know of.
Member
Member
no64   2007-08-13, 07:50
#5
Well, I can't get it to work.....so there is no way to set up a "prev" and "next" manual so I can create a "href" with that "rel" inside?
Administrator
Administrator
acrylian   2007-08-13, 08:36
#6
Yes you can do that. Use these functions, they return only the link:
getNextPageURL()
getPrevPageURL()
Member
Member
penzoto   2007-08-13, 13:51
#7
*edit this forum does not render the code properly.
sry dude
Member
Member
no64   2007-08-13, 19:44
#8
acrylian....could you please give me a complete code line - I have that little understanding in php, it is shameful
Administrator
Administrator
acrylian   2007-08-14, 09:00
#9
That's not shameful. I am not that great php programmer myself, but this is quite easy:

`

previous

`
Member
Member
no64   2007-08-14, 11:00
#10
Thank's , I'll try it right away
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.