mod_articles_category show "4>"

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

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.
Locked
The Tracoter
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Mon Jul 08, 2013 3:34 pm

mod_articles_category show "4>"

Post by The Tracoter » Tue Jul 30, 2013 8:31 am

Hy guys!
I override the mod_articles_category. I created html folder in my template and into this I have created mod_artcles_category folder with the deafault.php file.
When I modify this file, in my articles list in every title I see "4>" why???

For example:

Title 1 4>
intro text blablablablabla
"Read More"

Title 2 4>
intro text blablablablabla
"Read More"

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 11972
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: mod_articles_category show "4>"

Post by brian » Tue Jul 30, 2013 9:26 am

Impossible to tell without seeing the contents of your override file but it is almost certainly some typo you have made in the override
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

The Tracoter
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Mon Jul 08, 2013 3:34 pm

Re: mod_articles_category show "4>"

Post by The Tracoter » Tue Jul 30, 2013 9:42 am

this is the override file...

situated in name_template/html/mod_articles_category/default.php
there aren't error

Code: Select all

<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_articles_category
 * @copyright	Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
?>
<style type="text/css" media="screen">
    li {list-style: none;}
	ul {list-style-type:none;margin:0;padding:0;}
	.linkTitoloNews a {text-transform:uppercase;font-size:18px;color:#73be1e;}
	.linkTitoloNews a:hover {color:#000;}
	.imgNews img {float:left;margin-right:10px;border:3px solid #e5e5e5;height:105px;width:130px;}
</style>
<ul class="category-module<?php echo $moduleclass_sfx; ?>">
<?php if ($grouped) : ?>
	<?php foreach ($list as $group_name => $group) : ?>
	<li>
		<h<?php echo $item_heading; ?>><?php echo $group_name; ?></h><?php echo $item_heading; ?>>
		<ul>
			<?php foreach ($group as $item) : ?>
				<li>
					<h<?php echo $item_heading+1; ?>>
					   	<?php if ($params->get('link_titles') == 1) : ?>
						<a class="mod-articles-category-title <?php echo $item->active; ?>" href="<?php echo $item->link; ?>">
						<?php echo $item->title; ?>
				        <?php if ($item->displayHits) :?>
							<span class="mod-articles-category-hits">
				            (<?php echo $item->displayHits; ?>)  </span>
				        <?php endif; ?></a>
				        <?php else :?>
				        <?php echo $item->title; ?>
				        	<?php if ($item->displayHits) :?>
							<span class="mod-articles-category-hits">
				            (<?php echo $item->displayHits; ?>)  </span>
				        <?php endif; ?></a>
				            <?php endif; ?>
			        </h><?php echo $item_heading+1; ?>>


				<?php if ($params->get('show_author')) :?>
					<span class="mod-articles-category-writtenby">
					<?php echo $item->displayAuthorName; ?>
					</span>
				<?php endif;?>

				<?php if ($item->displayCategoryTitle) :?>
					<span class="mod-articles-category-category">
					(<?php echo $item->displayCategoryTitle; ?>)
					</span>
				<?php endif; ?>
				<?php if ($item->displayDate) : ?>
					<span class="mod-articles-category-date"><?php echo $item->displayDate; ?></span>
				<?php endif; ?>
				<?php if ($params->get('show_introtext')) :?>
			<p class="mod-articles-category-introtext">
			<?php echo $item->displayIntrotext; ?>
			</p>
		<?php endif; ?>

		<?php if ($params->get('show_readmore')) :?>
			<p class="mod-articles-category-readmore">
				<a class="mod-articles-category-title <?php echo $item->active; ?>" href="<?php echo $item->link; ?>">
				<?php if ($item->params->get('access-view')== FALSE) :
						echo JText::_('MOD_ARTICLES_CATEGORY_REGISTER_TO_READ_MORE');
					elseif ($readmore = $item->alternative_readmore) :
						echo $readmore;
						echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit'));
						if ($params->get('show_readmore_title', 0) != 0) :
							echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
						endif;
					elseif ($params->get('show_readmore_title', 0) == 0) :
						echo JText::sprintf('MOD_ARTICLES_CATEGORY_READ_MORE_TITLE');
					else :

						echo JText::_('MOD_ARTICLES_CATEGORY_READ_MORE');
						echo JHtml::_('string.truncate', ($item->title), $params->get('readmore_limit'));
					endif; ?>
	        </a>
			</p>
			<?php endif; ?>
		</li>
			<?php endforeach; ?>
		</ul>
	</li>
	<?php endforeach; ?>
<?php else : ?>
	<?php foreach ($list as $item) : ?>
    	<?php $images = json_decode($item->images);?>
	    <li>
            <div>
				<div class="imgNews">
					<img src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo $item->title; ?>" title="<?php echo $item->title; ?>" class="mod-latest-image" />
				</div>
				
				<div>
					<h<?php echo $item_heading; ?>>
					<?php if ($params->get('link_titles') == 1) : ?>
					<span class="linkTitoloNews"><a class="mod-articles-category-title <?php echo $item->active; ?>" href="<?php echo $item->link; ?>">
					<?php echo $item->title; ?>
					<?php if ($item->displayHits) :?>
						<span class="mod-articles-category-hits">
						(<?php echo $item->displayHits; ?>)  </span>
					<?php endif; ?></a></span>
					<?php else :?>
					<?php echo $item->title; ?>
						<?php if ($item->displayHits) :?>
						<span class="mod-articles-category-hits">
						(<?php echo $item->displayHits; ?>)  </span>
					<?php endif; ?></a>
						<?php endif; ?>
					</h><?php echo $item_heading; ?>>
			
					<?php if ($params->get('show_author')) :?>
						<span class="mod-articles-category-writtenby">
						<?php echo $item->displayAuthorName; ?>
						</span>
					<?php endif;?>
					<?php if ($item->displayCategoryTitle) :?>
						<span class="mod-articles-category-category">
						(<?php echo $item->displayCategoryTitle; ?>)
						</span>
					<?php endif; ?>
					<?php if ($item->displayDate) : ?>
						<span class="mod-articles-category-date"><?php echo $item->displayDate; ?></span>
					<?php endif; ?>
					<?php if ($params->get('show_introtext')) :?>
						<p class="mod-articles-category-introtext">
						<?php echo $item->displayIntrotext; ?>
						</p>
					<?php endif; ?>
			
					<?php if ($params->get('show_readmore')) :?>
						<p class="mod-articles-category-readmore">
							<a class="mod-articles-category-title <?php echo $item->active; ?>" href="<?php echo $item->link; ?>">
							<?php if ($item->params->get('access-view')== FALSE) :
									echo JText::_('MOD_ARTICLES_CATEGORY_REGISTER_TO_READ_MORE');
								elseif ($readmore = $item->alternative_readmore) :
									echo $readmore;
									echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit'));
								elseif ($params->get('show_readmore_title', 0) == 0) :
									echo JText::sprintf('MOD_ARTICLES_CATEGORY_READ_MORE_TITLE');
								else :
									echo JText::_('MOD_ARTICLES_CATEGORY_READ_MORE');
									echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit'));
								endif; ?>
						</a>
						</p>
					<?php endif; ?>
				</div>
    		</div>
            <br />
            <div style="clear"></div>
            <br />
		</li>
	<?php endforeach; ?>
<?php endif; ?>
</ul>

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 11972
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: mod_articles_category show "4>"

Post by brian » Tue Jul 30, 2013 9:46 am

Code: Select all

               </h><?php echo $item_heading; ?>>
should be

Code: Select all

               </h<?php echo $item_heading; ?>>
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

The Tracoter
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Mon Jul 08, 2013 3:34 pm

Re: mod_articles_category show "4>"

Post by The Tracoter » Tue Jul 30, 2013 11:24 am

The problem is solved. The problem is in the dreamweaver!
I modify the default.php original with notepad++ and now it's work!


Locked

Return to “General Questions/New to Joomla! 2.5”