help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

Pagination

Re: Pagination

8 years 3 months ago - 8 years 3 months ago
#22633
update:

Did install the template (TK_Purity_Gen_ii) and was having the same issue with pagination.
It happen as the template is overwriting the pagination but besides that it's also missing code to display pagination nicely.

If you check these files you will see a difference.
File1: ...templates/tk_gen_free_ii/html/pagination.php
File2: ...templates/protostar/html/pagination.php

ofcourse i's up to you how you want to display the pagination. If you want to display it in the Joomla 3 way then it will be time to update the pagination file of your template. in that case you also have to add code to the css to display the pagination nicely and if you do want to show icons then you also have to add some more code.

Eventually the result can be like this...



But there are more issues with the template.
The tooltips are not displayed nicely and think there will be more to be adjusted.

Attachments:

Last edit: 8 years 3 months ago by Bluefox.
The following user(s) said Thank You: myrtus

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

Re: Pagination

8 years 3 months ago - 8 years 3 months ago
#22635
Hello Bluefox,
thank you very much. Now I know the reason for my problem. So I can think about it. May be, I modify the code or I take another template.
Best regards,
myrtus

Update:
I have replaced the pagination.php with the file from protostar and modified.
It is still not perfect, but I am pleased.
www.gso-hef.de/terminkalender.html
Thank you again for your help.
Last edit: 8 years 3 months ago by myrtus.

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

Re: Pagination

8 years 3 months ago - 8 years 3 months ago
#22636
did see that with the pagination at your page it's missing the icons.
to add them you can do the following:

File: .../templates/tk_gen_free_ii/index,php

add below the line with "defined...." the following
Code:
$doc = JFactory::getDocument(); $doc->addStyleSheet($this->baseurl.'/media/jui/css/icomoon.css');
Last edit: 8 years 3 months ago by Bluefox.
The following user(s) said Thank You: myrtus

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

Re: Pagination

8 years 3 months ago - 8 years 3 months ago
#22637
The linking from the table of the eventslist-view to the detail page, only when desc filled, is more difficult.
If you want to have the option also with JEM2.x then there is a problem.

With JEM3.0.7 there was an option "Link title (when desc)" and what it did was that it checked if there was a description filled for the event. If there was no description there would be no link. It was a while back that I've been on Github but did take a peak. Have to say that i'm seeing all kind of things with that version that can or should be changed/adapted but to continue your question the following info:

To note: With JEM3.0.7 there is no "common" folder for the table files, this it was making things easier to override and to make easier adjustments to individual views.

Let's look at the eventslist-view.

File: ..components/com_jem/views/eventslist/tmpl/default_events_table.php
There is this block
Code:
<?php if (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 2)) : ?> <?php if ($this->escape($row->introtext) != "" ) { ?> <td class="jem_title"> <a href="<?php echo JRoute::_(JemHelperRoute::getEventRoute($row->slug)); ?>" itemprop="url"> <span itemprop="name"><?php echo $this->escape($row->title); ?></span> </a> </td> <?php } else { ?> <td class="jem_title" itemprop="name"> <?php echo $this->escape($row->title); ?> </td> <?php } ?> <?php endif; ?> <?php if (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 1)) : ?> <td class="jem_title"> <a href="<?php echo JRoute::_(JemHelperRoute::getEventRoute($row->slug)); ?>" itemprop="url"> <span itemprop="name"><?php echo $this->escape($row->title); ?></span> </a> </td> <?php endif; ?> <?php if (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 0)) : ?> <td class="jem_title" itemprop="name"> <?php echo $this->escape($row->title); ?> </td> <?php endif; ?>
Basicly the lines are above will check
- the option for showtitle
- the option for showdetails
- if (showtitle = 1 + showdetails = 2 ) it will check if there is a description filled.

The options mentioned above are defined in a form (xml file).
In this case they can be found in the file: .../administrator/components/com_jem/models/forms/settings.xml
Code:
<field name="showdetails" type="list" label="COM_JEM_SHOW_EVENT" description="COM_JEM_SHOW_EVENT_DESC" class="inputbox" size="1" default="1" required="false" > <option value="0">COM_JEM_EVENT_OFF</option> <option value="1">COM_JEM_LINK_ON_TITLE</option> <option value="2">COM_JEM_SETTINGS_FIELD_LINKTITLE_WHENDESC</option> </field>
See option2.

We can even add more options to it and then modify the files at the front side.
- The form is called in the settings-view and this option is shown in tab "basic-settings".
- after save it's storing the selected value in a database (settings table)
- that value is retrieved from the front

To add the code to JEM2.x you need to find a way to override the xml files as otherwise changes will be overwritten in a future update unless the developers will add the option to it. If remembered correctly there are ways to override the xml file but that's to much for now. Also don't forget to create an override for the table files in the front.

Remember:
- as it stand now there won't be a future update for JEM3.0.7 so you can decide to make adjustments without using overrides.
- changes in JEM3.0.7 have to be done for every view individually
Last edit: 8 years 3 months ago by Bluefox.
The following user(s) said Thank You: myrtus

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

Re: Pagination

8 years 3 months ago
#22639
Bluefox wrote: did see that with the pagination at your page it's missing the icons.
to add them you can do the following: ...
[/code]

Done. And it works. Perfect! Thank you very much! :)
For the other problem I need more time and conzentration.
Maybe I wait for an update of the 2.x in future.

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

Time to create page: 0.621 seconds