douji6667 2013-04-07 12:26
浏览 28
已采纳

图片网址和分页

I am developing an image gallery site. Now I want to have unique URL for every image, like:

www.xyz.com/photos/aaaa.jpg

I am using CodeIgniter to implement pagination.

Pagination works fine, but I am getting a URL like:

/index.php/main/latest/5

I can remove pagination and get this URL, www.xyz.com/photos/aaaa.jpg but how can I go to the next/previous images? I am showing images on the basis of created date and have search functionality.

So I can I implement distinct URL and have pagination. So if any one can share an image and can navigate prev/next.

For example http://www.imdb.com/media/rm397582592/rg117676544, and you can still go to next/previous in this gallary.

  • 写回答

1条回答 默认 最新

  • dsflxcfuw27742248 2013-04-07 20:19
    关注

    i think you misunderstanding pagination and images urls:

    pagination url looks like:

    site.com/photos/3 /*where 3 is the pagination number of page or page offset*/
    

    while image proper link looks like:

    site.com/img/myimage.jpg
    

    image link is a separated page or popup if you show image inside javascript popup for example

    so you get 1 gallery page in which you paginate all images, once you click on a single image you get the single image page

    so pagination links has nothing in common with the single image url

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器