The Joomla! Forum ™






Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sat Jul 07, 2007 11:33 pm 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Oct 05, 2006 12:13 am
Posts: 810
I have tested the behaviour of blog layouts: (1) Front Page Blog Layout, (2) Section Blog Layout and (3) Category Blog Layout (Note: For the test, I have created 7 articles in a Section/Category and published them in the Front Page).

The first thing i have noticed is that the flow of articles in the blog is different in Joomla! 1.5 than in Joomla! 1.0 (see image attached). The following are several issues/bugs that i have found:

1. Front Page Blog Layout and Category Blog Layout:

Case A: When setting Columns to an even number, and #Intro to an odd number, then both layouts try to display always an even number of articles in the #Intro section. For example if i set Columns to 2, both layouts do the following:

    # Leading       1  ->  Shows 1 article
    # Intro           1  ->  Shows 2 articles
    # Links           4  ->  Shows 3 links

=>The layout takes the needed articles from #Links to #Intro (to complete an even number of articles in the #Intro).

Case B: In the same situation, if i set #Links to 0, then the layout has no article to take and it shows the following errors (see related report):

Quote:
Front Page Blog Layout

Notice: Trying to get property of non-object in joomla_root\components\com_content\views\frontpage\view.html.php on line 146
Notice: Undefined property: stdClass::$attribs in joomla_root\components\com_content\views\frontpage\view.html.php on line 150
Notice: Undefined property: stdClass::$id in joomla_root\components\com_content\views\frontpage\view.html.php on line 178
Notice: Undefined property: stdClass::$id in joomla_root\plugins\content\vote.php on line 21
Notice: Undefined property: stdClass::$title in joomla_root\components\com_content\views\frontpage\tmpl\default_item.php on line 19
Notice: Undefined property: stdClass::$slug in joomla_root\components\com_content\helpers\icon.php on line 54
Notice: Undefined property: stdClass::$slug in joomla_root\components\com_content\helpers\icon.php on line 149
Notice: Undefined property: stdClass::$slug in joomla_root\components\com_content\helpers\icon.php on line 78
Notice: Undefined property: stdClass::$author in joomla_root\components\com_content\views\frontpage\tmpl\default_item.php on line 70
Notice: Undefined property: stdClass::$modified in joomla_root\components\com_content\views\frontpage\tmpl\default_item.php on line 107
Notice: Undefined property: stdClass::$created in joomla_root\components\com_content\views\frontpage\tmpl\default_item.php on line 84

Category Blog Layout

Notice: Trying to get property of non-object in joomla_root\components\com_content\views\category\view.html.php on line 155
Notice: Undefined property: stdClass::$attribs in joomla_root\components\com_content\views\category\view.html.php on line 163
Notice: Undefined property: stdClass::$slug in joomla_root\components\com_content\views\category\view.html.php on line 200
Notice: Undefined property: stdClass::$id in joomla_root\plugins\content\vote.php on line 21
Notice: Undefined property: stdClass::$title in joomla_root\components\com_content\views\category\tmpl\blog_item.php on line 19
Notice: Undefined property: stdClass::$slug in joomla_root\components\com_content\helpers\icon.php on line 54
Notice: Undefined property: stdClass::$slug in joomla_root\components\com_content\helpers\icon.php on line 149
Notice: Undefined property: stdClass::$slug in joomla_root\components\com_content\helpers\icon.php on line 78
Notice: Undefined property: stdClass::$author in joomla_root\components\com_content\views\category\tmpl\blog_item.php on line 70
Notice: Undefined property: stdClass::$created in joomla_root\components\com_content\views\category\tmpl\blog_item.php on line 84


2. Section Blog Layout:

This layout shows a different behaviour.

Case A: In the same context than above (2 columns), this layout does the following:

    # Leading       1  ->  Shows 1 article                          # Leading       1  ->  Shows 1 article     
    # Intro           1  ->  Shows 0 articles                        # Intro           2  ->  Shows 1 articles   
    # Links           4  ->  Shows 5 links                            # Links           4  ->  Shows 5 links

=> This layout considers Leading articles as Intro, and then those Intro articles which aren't showed are summed to Links.

Case B: In the same situation, if i set #Links to 0, the layout doesn't show the errors reported above (for Front Page and Category Blog Layout), but the behaviour is the same as for the Case A (Leading articles are considered as Intro).


You do not have the required permissions to view the files attached to this post.

_________________
"The skill of writing is to create a context in which other people can think" - Edwin Schlossberg.


Last edited by Jinx on Sun Sep 09, 2007 7:42 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sun Jul 08, 2007 8:04 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Oct 17, 2006 11:40 am
Posts: 99
Hi,

I have reported similar troublesalready a month ago in this topic

http://forum.joomla.org/index.php/topic ... #msg844805

I wondered why nobody made a reply at that time. My reported issues still exist in the latest svn build.

@leadict:  I am happy you reported similar troubles, I was at the point to relaunch my post.

Thank you.

Sincerely
Léon


Top
 Profile  
 
PostPosted: Mon Jul 09, 2007 9:45 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sun May 07, 2006 8:24 pm
Posts: 312
my question is...

how did you get the nice spacing between the 2 columns?


Top
 Profile  
 
PostPosted: Wed Jul 18, 2007 5:28 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Jul 17, 2007 7:11 pm
Posts: 9
x126 wrote:
my question is...

how did you get the nice spacing between the 2 columns?


I guess, it`s done with css.

And my two cents - output of articles left-to-right and then top-to-bottom is much more intuitive, than current top-to-bottom and then left-to-right.


Top
 Profile  
 
PostPosted: Fri Sep 07, 2007 12:11 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Fri Sep 16, 2005 8:41 pm
Posts: 3745
Location: NRW - Germany
Fixed the issues in SVN. The direction of the articles has to be decided by the lead devs.

_________________
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.


Top
 Profile  
 
PostPosted: Sun Sep 09, 2007 7:23 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Fri Sep 16, 2005 8:41 pm
Posts: 3745
Location: NRW - Germany
Declaring this as fixed. If you need the article flow in another way, you have to write your own template override.

_________________
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 



Who is online

Users browsing this forum: No registered users and 0 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® Forum Software © phpBB Group