[joomla] How to override the Newsflash module HTML?
Helvécio da Silva
helvecio.rj at gmail.com
Wed Jun 20 22:06:45 EDT 2012
This is the source code in modules/mod_articles_news/tmpl/vertical.php
<ul class="newsflash-vert<?php echo $params->get('moduleclass_sfx'); ?>">
<?php for ($i = 0, $n = count($list); $i < $n; $i ++) :
$item = $list[$i]; ?>
<li class="newsflash-item">
<?php require JModuleHelper::getLayoutPath('mod_articles_news',
'_item');
if ($n > 1 && (($i < $n - 1) || $params->get('showLastSeparator'))) : ?>
<span class="article-separator"> </span>
<?php endif; ?>
</li>
<?php endfor; ?>
</ul>
I'm using the AllVideos plugin to display a youtube video:
<ul class="newsflash-vert-caixa">
<li class="newsflash-item">
<h4 class="newsflash-title-caixa">
<a
href="/campanha/11-videos/10-manifestacao-bonde-de-santa-teresa.html">
Manifestação Bonde de Santa Teresa</a>
</h4>
<p>
<!-- JoomlaWorks "AllVideos" Plugin (v4.4) starts here -->
</p>
<div class="avPlayerWrapper avVideo">
<div class="avPlayerContainer" style="width:130px;">
<div class="avPlayerBlock" id="AVPlayerID_9ffa13bf_1746384842">
<iframe width="130" height="100" frameborder="0"
title="JoomlaWorks AllVideos Player" allowfullscreen="" src="
http://www.youtube.com/embed/pfoKa2BDW2k?rel=0&fs=1&wmode=transparent"></iframe>
</div>
</div>
</div>
<!-- JoomlaWorks "AllVideos" Plugin (v4.4) ends here -->
<p></p>
<span class="article-separator"> </span>
</li>
<li class="newsflash-item">
<h4 class="newsflash-title-caixa">
<a
href="/campanha/11-videos/11-eliomar-coelho-no-buraco-do-lume.html">
Eliomar Coelho no Buraco do Lume</a>
</h4>
<p>
<!-- JoomlaWorks "AllVideos" Plugin (v4.4) starts here -->
</p><div class="avPlayerWrapper avVideo">
<div class="avPlayerContainer" style="width:130px;">
<div class="avPlayerBlock" id="AVPlayerID_734f2a4c_948345506">
<iframe width="130" height="100" frameborder="0"
title="JoomlaWorks AllVideos Player" allowfullscreen="" src="
http://www.youtube.com/embed/ojXYe0l8LeM?rel=0&fs=1&wmode=transparent"></iframe>
</div>
</div>
</div>
<!-- JoomlaWorks "AllVideos" Plugin (v4.4) ends here -->
<p></p>
<span class="article-separator"> </span>
</li>
<li class="newsflash-item">
<h4 class="newsflash-title-caixa">
<a
href="/campanha/11-videos/12-insercao-do-psol-com-milton-temer-marcelo-freixo-e-chico-alencar.html">
Inserção do PSOL com Milton Temer, Marcelo Freixo e Chico
Alencar</a>
</h4>
<p>
<!-- JoomlaWorks "AllVideos" Plugin (v4.4) starts here -->
</p><div class="avPlayerWrapper avVideo">
<div class="avPlayerContainer" style="width:130px;">
<div class="avPlayerBlock" id="AVPlayerID_5715564f_679276548">
<iframe width="130" height="100" frameborder="0"
title="JoomlaWorks AllVideos Player" allowfullscreen="" src="
http://www.youtube.com/embed/SahnvYpIWWQ?rel=0&fs=1&wmode=transparent"></iframe>
</div>
</div>
</div>
<!-- JoomlaWorks "AllVideos" Plugin (v4.4) ends here -->
<p></p>
</li>
</ul>
I want to get rid of the <p></p> tags, so I can reposition the h4 tag on
the side of the video.
I can't find where it's coming from.
Thanks a million!!!
2012/6/20 Chris French <contact at chrisfrench.me>
>
>
> are you talking about functions like ?
>
> require JModuleHelper::getLayoutPath('')
>
> if so you need to look at the other files int he tmpl directory
>
> Chris
> On Jun 20, 2012, at 6:26 PM, Helvécio da Silva wrote:
>
> Hi everyone!
>
> I need to make a change in the HTML output provided by the newsflash
> module in J 2.5.
>
> I thought this would be easy, but in the module files all I see are
> function calls that I have NO idea where it's retrieving the HTML code to
> display the module on the page.
>
> Can someone shed some light on this for me?
>
> Thanks a million
>
> --
> Helvecio "Elvis" da Silva
> Rio de Janeiro - Brasil - helvecio.rj at gmail.com
> http://www.helvecio.com - http://blog.helvecio.com
>
> _______________________________________________
> New York PHP SIG: Joomla! Mailing List
> http://lists.nyphp.org/mailman/listinfo/joomla
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
>
> _______________________________________________
> New York PHP SIG: Joomla! Mailing List
> http://lists.nyphp.org/mailman/listinfo/joomla
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
--
Helvecio "Elvis" da Silva
Rio de Janeiro - Brasil - helvecio.rj at gmail.com
http://www.helvecio.com - http://blog.helvecio.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/joomla/attachments/20120620/6a6aeda6/attachment.html>
More information about the Joomla
mailing list