ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to set id to <a> tag in CodeIgniter pagination

June 29, 2013 8:18pm

Subscribe [3]
  • #1 / Jun 29, 2013 8:18pm

    vancao1992

    1 posts

    How to set id to <a> tag in CodeIgniter pagination.
    I use CI 2.1.3
    Please, Help me!

  • #2 / Jul 11, 2013 12:05am

    grandascrub

    1 posts

    give a <span> out of <a> and you can set id to <span>

  • #3 / Jul 18, 2013 10:16pm

    vancao1992

    1 posts

    Can you guide me how!?
    Thanks!

  • #4 / Aug 07, 2014 11:01pm

    dalirnet

    17 posts

    open (system/libraries/Pagination) file
    in line 285 and 291

    $output .= $this->num_tag_open.'<a href="http://.$this-&gtfirst_url.&gtanchor_class.">'.$loop.'</a>'.$this->num_tag_close;

    change to

    $output .= $this->num_tag_open.'<a href="http://.$this-&gtfirst_url.id=your_id&gtanchor_class.">'.$loop.'</a>'.$this->num_tag_close;

    do you need to more help?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases