Problem Articles Nested In A Column Topic is solved

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

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.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
panta7
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sun Nov 06, 2011 10:32 am

Problem Articles Nested In A Column

Post by panta7 » Sun Feb 09, 2020 5:31 pm

Hello guys,
a strange thing happens to me in the category view, until a user is logged in, everything is ok, the articles are seen one below the other and aligned, but as soon as a user logs in to see some articles with "Registered" access, here is the articles one under the other misalign, are nested. From the source I see that instead of creating a row and a column for each article, it creates a row and more columns nested inside it.

You can try, this is the http://nuovo.cantinefatteadarte.it/inde ... Itemid=125

the login form is in the footer, you can use user: prova and password: prova

The template is: shaper_helixultimate which has an override in the blog category view.

Code: Select all

<?php if (!empty($this->intro_items)) : ?>
		<div class="article-list">
			<div class="row">
			<?php foreach ($this->intro_items as $key => &$item) : ?>
				<div class="col-md-<?php echo round(12 / $this->columns); ?>">
					<div class="article <?php echo $item->state == 0 ? ' system-unpublished' : null; ?>"
						itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
						<?php
						$this->item = & $item;
						echo $this->loadTemplate('item');
						?>
					</div>
					<?php $counter++; ?>
				</div>
			<?php endforeach; ?>
			</div>
		</div>
	<?php endif; ?>
Can anyone help me, please?
Thank you

 
User avatar
xfsgpr
Joomla! Ace
Joomla! Ace
Posts: 1023
Joined: Mon Feb 14, 2011 4:02 am
Location: London

Re: Problem Articles Nested In A Column

Post by xfsgpr » Sun Feb 09, 2020 5:52 pm

Your links don't work for me and it looks like you are either using Wordpress or Mobirise for some static/dynamic sites.

Please provide a valid link so that we can understand the problem.

panta7
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sun Nov 06, 2011 10:32 am

Re: Problem Articles Nested In A Column

Post by panta7 » Sun Feb 09, 2020 6:47 pm

You have right. I forgot iris a test website, so please edit your hosts file ti see It with:
185.81.4.38 nuovo.cantinefatteadarte.it
Let me know if you can, please. Thanks

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 26429
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Problem Articles Nested In A Column

Post by Per Yngve Berg » Sun Feb 09, 2020 7:17 pm

I cannot open your link either, but I suspect a missing </div> close tag making the row not to close.

panta7
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sun Nov 06, 2011 10:32 am

Re: Problem Articles Nested In A Column

Post by panta7 » Mon Feb 10, 2020 9:31 am

To edit hosts file adding this line:
185.81.4.38 nuovo.cantinefatteadarte.it
please read here: https://www.howtogeek.com/howto/27350/b ... osts-file/

However I don't think it's a DIV closing problem, I checked and all divs are closed properly.

I link two screenshots so if you can't see the site you can at least understand better.
I also link the html output for the public state and the output for the registered user state.
Finally, I am linking the category view override.
http://www.cantinefatteadarte.it/Archivio.zip

If you need further information, do not hesitate to ask me.
Thanks a lot.

panta7
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sun Nov 06, 2011 10:32 am

Re: Problem Articles Nested In A Column

Post by panta7 » Sat Feb 15, 2020 10:09 am

Any news, please? Thanks

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 26429
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Problem Articles Nested In A Column

Post by Per Yngve Berg » Sat Feb 15, 2020 12:56 pm

Validated the register.html file with a bunch of open/close mismatches.

Code: Select all

Error: End tag main seen, but there were open elements.

From line 670, column 13; to line 670, column 19

div></div></main></div>

Error: Unclosed element div.

From line 319, column 8; to line 319, column 30

v>↩							<div class="col-md-12">↩					

Error: Unclosed element div.

From line 274, column 8; to line 274, column 30

v>↩							<div class="col-md-12">↩					

Error: Unclosed element div.

From line 185, column 4; to line 185, column 20

list">↩			<div class="row">↩					

Error: Unclosed element div.

From line 184, column 4; to line 184, column 29

↩	↩	↩	↩			<div class="article-list">↩			<d

Error: Unclosed element div.

From line 173, column 1; to line 173, column 24

>↩	</div>↩<div class="blogstoria">↩	↩		↩

Error: Unclosed element div.

From line 171, column 326; to line 171, column 349

le="main"><div class="sp-column "><div i

panta7
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sun Nov 06, 2011 10:32 am

Re: Problem Articles Nested In A Column

Post by panta7 » Wed Feb 19, 2020 10:14 am

Ok, can you tell me the path to this register.html file, please? Thanks

panta7
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sun Nov 06, 2011 10:32 am

Re: Problem Articles Nested In A Column

Post by panta7 » Fri Feb 21, 2020 11:58 am

SOLVED: it was a DIV issue introtext
echo $this->item->introtext;
in /templates/shaper_helixultimate/html/com_content/category/blog_item.php

 

Post Reply

Return to “General Questions/New to Joomla! 3.x”