All questions about EDocman extension

No style assigned to Pagination

  • Nico
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 6 months ago #52448 by Nico
No style assigned to Pagination was created by Nico
Hi Tuan,

why pagination does not have the tag "<ul>" but only <div class = "pagination">.
What should I change to get the tag "ul" and take advantage of the default css style?

thanks

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #52459 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic No style assigned to Pagination
Hi Nico

I guess you will need to edit the code to use that style. Send me the link to the page you want to change and I will guide you what file you need to change

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Nico
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 6 months ago #52468 by Nico
Replied by Nico on topic No style assigned to Pagination
Hi Tuan,

I wish that every time you need paging there is the css style with the <ul> tag.

Unfortunately I can not point you in the pages on the forum because it is the section of the restricted area.
Help me please...

thanks

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #52469 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic No style assigned to Pagination
Look at the files under components/com_edocman/views/category/tmpl folder. You should see the code and can change it to meet your need. I will try to look at how Joomla core does with this make up and will update the code of the component in the new release which I am working on at the moment

Tuan

Please Log in or Create an account to join the conversation.

  • Nico
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 6 months ago #52472 by Nico
Replied by Nico on topic No style assigned to Pagination
Hi,
I found this piece of code in tmpl folder "default.php" :
Code:
<div class="pagination"> <?php echo $this->pagination->getPagesLinks(); ?> </div>
show me where to add the <ul> and <li>

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #52473 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic No style assigned to Pagination
OMG. You can change that code to:
Code:
<ul class="pagination"> <?php echo $this->pagination->getPagesLinks(); ?> </ul>

To see how it goes. The <?php echo $this->pagination->getPagesLinks(); ?> is Joomla core code and you cannot change it

Tuan

Please Log in or Create an account to join the conversation.

  • Nico
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 6 months ago #52474 by Nico
Replied by Nico on topic No style assigned to Pagination
I had already done this test, I forgot to write it. It does not work!
In fact, it is a piece of code $ this-> pagination-> getPagesLinks (); that sets the div. I attach a screenshot:
Attachments:

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #52475 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic No style assigned to Pagination
Ah, then it is not possible, too. That pagination is Joomla core code and it is using through all sections of your site (which has pagination), we could not change it, unfortunately

Tuan

Please Log in or Create an account to join the conversation.

  • Nico
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 6 months ago #52476 by Nico
Replied by Nico on topic No style assigned to Pagination
I found the function getPagesLinks() in libraries / cms / pagination / pagination.php
I can not figure out where to change the tad div <ul>.

As you can see in the screenshot above, there are instances of "pagination" (<ul> and before the <div> second)
can you help me please?

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #52477 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic No style assigned to Pagination
Sorry I cannot. You should never modify Joomla core code as it might break other extensions which use it. Also, it will get lost when you upgrade to new Joomla version

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam