Joomla! Discussion Forums



It is currently Fri Nov 27, 2009 2:23 am (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.



Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2  Next
Author Message
Posted: Tue Nov 03, 2009 10:41 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Jun 18, 2006 10:59 pm
Posts: 192
Hi Everybody,

I am currently switching over to Joomla 1.5 and I discovered that my pagination creates false results. It displays pages that shouldn't exist.

The link to a test page is here
http://www.buff.com.au/joom15/outdoors- ... /overview/

What could it be?

-the category does not have more test item than displayed a pagination should not be displayed because the setting is auto. Could it be some other setting?

-Could it be the template? I can't believe that but who knows

-Could it be the use of the component "Export Content" I migrated content from my 1.0 installation to the new 1.5 installation. I still have the content component installed.

Any idea is greatly appreciated.

Cheers,
Edward

_________________
http://www.buff.com.au


Top
  E-mail  
 
Posted: Tue Nov 03, 2009 12:22 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
Hi,

Which page doesn't exist?
I can see 7 pages, and if I click on each one of the pages, I get a result?

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Tue Nov 03, 2009 9:40 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Jun 18, 2006 10:59 pm
Posts: 192
ooffick wrote:
Hi,

Which page doesn't exist?
I can see 7 pages, and if I click on each one of the pages, I get a result?

Olaf


Hi Olaf,
There shouldn't be 7 pages. There shouldn't even be a pagination. All articles you see are on the first page. All results contain variations of the same articles.

Cheers,
Edward

_________________
http://www.buff.com.au


Top
  E-mail  
 
Posted: Tue Nov 03, 2009 10:06 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
Well, is the menu item which links to that page, what layout is that? Article? Category? Section?

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Wed Nov 04, 2009 1:01 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Jun 18, 2006 10:59 pm
Posts: 192
Hi Olaf,
Its a section blog layout with 2 categories. 1 article set to display in full, zero as intro and 99 as links. Pagination is on auto.
Cheers,
Edward

_________________
http://www.buff.com.au


Top
  E-mail  
 
Posted: Wed Nov 04, 2009 9:35 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
So, you have the following information:

leading = 1
columns = 1
article= 0
links = 99

So why would it not show pagination? It only displays one article at a time, right? and there are 6 more in that category, right?

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Wed Nov 04, 2009 10:14 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Jun 18, 2006 10:59 pm
Posts: 192
Why should it show 7 pages if 7 pages do not exist. All articles are posted on page 1.

Could it be that I understand the setting auto wrong. At the moment it seems to be a random listing generator with all the same articles.

If I go life with this Google is most probably going to punish me for coming up with so many pages of the same articles.

_________________
http://www.buff.com.au


Top
  E-mail  
 
Posted: Wed Nov 04, 2009 10:26 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
No, they are not. One article is posted, and the other 6 are not. (there are just 6 links, but the article is not displayed)

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Wed Nov 04, 2009 7:33 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Jun 18, 2006 10:59 pm
Posts: 192
Isn't that the same Olaf? Even if the articles are just displayed as links. Doesn't it still mean that Joomla should only output one page and indicated on page.

What If I only have one article in a section blog that is displayed in what ever way. Shouldn't Joomla then skip pagination and only show this article?

_________________
http://www.buff.com.au


Top
  E-mail  
 
Posted: Wed Nov 04, 2009 7:43 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Jun 18, 2006 10:59 pm
Posts: 192
I analysed the output again and now understand what happens in 1.5 and where you are coming from, Olaf. Every single article gets it's own page where it is displayed in full and the remaining articles in the list are displayed underneath.

Is there any way to alter this output mode? I want only one page output. Is there a way to force 1.5 to do this?

Edward

_________________
http://www.buff.com.au


Top
  E-mail  
 
Posted: Wed Nov 04, 2009 7:49 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Jun 18, 2006 10:59 pm
Posts: 192
What do I do if I have 400 articles in one section? Does that mean that 1.5 then outputs 400 pages if I switch on pagination? How do I set the amount of articles displayed on one page (no matter if full, intro or link) so that I am in control of the amount of pages created.

Cheers and many thanks
Edward

_________________
http://www.buff.com.au


Top
  E-mail  
 
Posted: Wed Nov 04, 2009 10:48 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
So what would you like to have?
You can change most of it!

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Wed Nov 04, 2009 10:58 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Jun 18, 2006 10:59 pm
Posts: 192
That's what I thought, Olaf.
I would like to have 20 posts per page.
Cheers,
Edward

_________________
http://www.buff.com.au


Top
  E-mail  
 
Posted: Wed Nov 04, 2009 11:04 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
And in which format? Like 20 articles show in full?

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Wed Nov 04, 2009 11:06 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Jun 18, 2006 10:59 pm
Posts: 192
That matters? Let's just make it links.
Cheers,
Edward

_________________
http://www.buff.com.au


Top
  E-mail  
 
Posted: Wed Nov 04, 2009 11:08 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Jun 18, 2006 10:59 pm
Posts: 192
Sorry,

I am in blog layout. Let us make it The first article in full and the rest in links.

Cheers,
Edward

_________________
http://www.buff.com.au


Top
  E-mail  
 
Posted: Thu Nov 05, 2009 9:35 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
Well, the easiest solution would be to use the article instead of the links, and only show the title of those articles.

e.g.:
set in the menu items links=0, articles=20 and columns =1
then add to each article a pagebreak at the top of the article

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Fri Nov 06, 2009 1:21 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Jun 18, 2006 10:59 pm
Posts: 192
Im definitely not going into tweaking my articles to achieve a look, Olaf.
If 1.5 can't give me a descent page layout out of the box I have to look for something else.

Have a look at this page on my current 1.0 installation. It is exactly the same articles with the same settings. 1 full, 0 intro, 99 links and pagination on auto. How comes this one looks the way you would expect it and 1.5 gives me 7 pages. http://www.buff.com.au/general/the-basics/

This is all I want 1.5 to do.

_________________
http://www.buff.com.au


Top
  E-mail  
 
Posted: Fri Nov 06, 2009 9:31 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
Well, that looks like as if the pagination is just disabled.

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Fri Nov 06, 2009 9:50 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Jun 18, 2006 10:59 pm
Posts: 192
It isn't Olaf.
Maybe I am in the running movie here.

Could you please be so kind and show me websites that display the same articles on several pages. Something like a blog were you get the same stuff shown all over again similar to my test page. Maybe there is a Joomla sample page out there that displays this type of pagination.

If pagination is set to auto it would make sense to create two pages if say you have 20 articles and have set 10 to show. Page one would have the first 10 pages and page two the last 10.

If you set show 99 articles on your settings and you have only 10 articles what would you expect Joomla to show. 1 page or 10 pages?

Cheers,
Edward

_________________
http://www.buff.com.au


Top
  E-mail  
 
Posted: Fri Nov 06, 2009 10:55 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
A blog is using multiple articles (intros or full articles), and not just links, right?

But here is a solution:

  1. create a folder in your template folder called "html" (if it doesn't exists)
  2. create a folder in that html folder called "com_content" (if it doesn't exists)
  3. create a folder in that com_content folder called "category" (if it doesn't exists)
  4. copy the file .../components/com_content/views/category/tmpl/blog_item.php in this .../templates/[your-template]/html/com_content/category/ folder
  5. copy the file .../components/com_content/views/category/tmpl/blog.php in this .../templates/[your-template]/html/com_content/category/ folder
  6. rename the blog_item.php to blog_item2.php
  7. open the file blog_item2.php file
  8. find the following lines:
    Code:
    <tr>
    <td valign="top" colspan="2">
    <?php if (isset ($this->item->toc)) : ?>
       <?php echo $this->item->toc; ?>
    <?php endif; ?>
    <?php echo $this->item->text; ?>
    </td>
    </tr>

  9. and replace it with the following:
    Code:
    <tr>
    <td valign="top" colspan="2">
    </td>
    </tr>
  10. save the file
  11. open the file blog.php file
  12. find the following lines:
    Code:
                         if ($target < $this->total && $target < ($numIntroArticles)) :
                            $this->item =& $this->getItem($target, $this->params);
                            echo $this->loadTemplate('item');
                         endif;

  13. and replace it with the following:
    Code:
                         if ($target < $this->total && $target < ($numIntroArticles)) :
                            $this->item =& $this->getItem($target, $this->params);
                            echo $this->loadTemplate('item2');
                         endif;

  14. find the following lines:
    Code:
                   if ($i < $this->total && $i < ($numIntroArticles)) :
                      $this->item =& $this->getItem($i, $this->params);
                      echo $this->loadTemplate('item');
                      $i ++;
                   endif;


  15. and replace it with the following:
    Code:
                   if ($i < $this->total && $i < ($numIntroArticles)) :
                      $this->item =& $this->getItem($i, $this->params);
                      echo $this->loadTemplate('item2');
                      $i ++;
                   endif;
  16. save the file
  17. in the menu item set for that category blog:
    • Columns = 1
    • Intro = 10
    • Links = 0

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Fri Nov 06, 2009 11:02 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
If you don't want to disable all the details for the links by hand, you can use this blog_item2.php as well:

Code:
<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<?php if ($this->item->state == 0) : ?>
<div class="system-unpublished">
<?php endif; ?>

<table class="contentpaneopen<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>">
<tr>
   <td class="contentheading<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>" width="100%">
      <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catslug, $this->item->sectionid)); ?>" class="contentpagetitle<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>">
         <?php echo $this->escape($this->item->title); ?></a>
   </td>
</tr>
</table>
<?php if ($this->item->state == 0) : ?>
</div>
<?php endif; ?>
<span class="article_separator">&nbsp;</span>
<?php echo $this->item->event->afterDisplayContent; ?>


Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Mon Nov 16, 2009 6:08 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Jun 18, 2006 10:59 pm
Posts: 192
Hi everybody,

I had to stop the discussion with Olaf as I was getting aggravated. I have spend the last days searching for a Joomla site that outputs the same format as mine.

I couldn't find a single website with pagination. Then I decided to look at the Joomla Demo and found this http://demo.joomla.org/1.5/section-blog.html.

This brought me back to earth. The pagination output from 1.0 to 1.5 was changed. The 1.5 pagination really creates pages with recurring articles. That's why Olaf gave me the code to change the output.

Is there any reason why this changed? I find this quite odd and no blog program does this. All the Joomla sites I looked at either don't have pagination or use something else to blog.

Could anybody shed some light on this funny pagination.

Cheers,
Edward

_________________
http://www.buff.com.au


Top
  E-mail  
 
Posted: Mon Nov 16, 2009 8:40 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Jun 18, 2006 10:59 pm
Posts: 192
I also just realised that my links are broken.

They all point to one article.
Have a look at the links on this page http://www.buff.com.au/joom15/general/overview/ .

Now somebody please tell me that this is okay and I shouldn't worry. The settings haven't changed by the way. 1 leading, 0 intro, 1 column, 99 links.

Cheers,
Edward

_________________
http://www.buff.com.au


Top
  E-mail  
 
Posted: Mon Nov 16, 2009 9:38 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
The way you want to output your articles is not possible in Joomla, you will need to use a different option e.g. the template overwrite as mentioned above.

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Mon Nov 16, 2009 10:25 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Jun 18, 2006 10:59 pm
Posts: 192
Olaf,
What aggrevates me is that you don't react to the actual question. As much as I appreciate you putting so much time into showing how it works.

For me the real question is now why the output is the way it is.

First the output is broken. Please check it: Every single article link points to the same article. Something must be wrong with my installation. My hunch is that a content migration tool caused a database desaster.

Second this might not be the right section but if that output is Joomlas native output the question has to be discussed what and why on earth the output is like this.

Apparently everybody seems to switch it off. If this is not the case Olaf, please show me life websites that use this pagination. I can't find them.

Also I would like to point at Joomla 1.0 again. The output in 1.0 was as I describe it and as I see it all over the web. I have asked people stand spend their last 10 years 24/7 on the net and they can't tell me any site that outputs pagination the way Joomla 1.5 does. They all agreed with me that the output is confusing, irritating and definitely far away from "don't make me think". I don't even want to go into SEO issues with this output format.

I would greatly appreciate if you could give me any benefit of the default Joomla 1.5 output.

I guess I'll move this topic over to feature requests, bug reporting or coding. Will have to make up my mind.

Cheers,
Edward

_________________
http://www.buff.com.au


Top
  E-mail  
 
Posted: Tue Nov 17, 2009 9:21 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
For a demo page, have a look here: http://demo.joomla.org/1.5/
Right on the first page you have a pagination.

or if you prefer a category blog, have a look here:
http://demo.joomla.org/1.5/categoryblog.html

Since you want the links section to be treated as very short articles, you will need to modify the output.

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Tue Nov 17, 2009 9:27 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
Eddi wrote:
First the output is broken. Please check it: Every single article link points to the same article. Something must be wrong with my installation. My hunch is that a content migration tool caused a database desaster.


Can you try to switch off the SEF option in the global configuration. So I can have a look if there are any duplicate alias issues.

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Wed Nov 18, 2009 5:57 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Jun 18, 2006 10:59 pm
Posts: 192
Thanks for having a look at it Olaf. I switched off SH404SEF so you get the raw Joomla address. As you can see, nothing changed.
Cheers,
Edward

_________________
http://www.buff.com.au


Top
  E-mail  
 
Posted: Wed Nov 18, 2009 9:01 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 7689
Location: Europe
Sorry, I cannot see the links, but I say it has something to do with sh404sef. Did you try to delete the cache and uninstall sh404sef?

Olaf

_________________
Olaf Offick
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2  Next

Quick reply

 



Who is online

Users browsing this forum: Arianna, awilcox, brduran, dogsoldier42, msshoffman, NateM, rajeshsen1, Tariq Ali, wistex and 70 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group