Skip to content

dart-creations.com

Advertisement
Home arrow Forums
DART Creations Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Header, and content all in one list item Forum is locked
(1 viewing) 1 Guest
Go to bottom
TOPIC: Header, and content all in one list item
#292
Header, and content all in one list item 3 Years, 2 Months ago  
Hey

Ive just installed the Joomla Featured Articles Mod today on a joomla 1.5 site, it seems great, in theory it does exactly what i want it to do.

But all the content from the article is all being thrown out in one list item or table cell depending on which setting i use. This means that i cant style it properly how i want, and therefore the title isnt at all visible. Is this due to a wrong setting or possibly how my article is setup? I dont seem to have all the options available that are in the screenshots in the configuration setting.

Any advice on how to fix this would be much appreiciated.

Thanks in advance
David Essery
 
Logged Logged
  The topic has been locked.
#294
Re:Header, and content all in one list item 3 Years, 2 Months ago  
Hi David,

I think what there is at the moment is by design. The best you could do is send the address of your website and explain what you need to do, so hopefully I'll be able to help out better.
 
Logged Logged
  The topic has been locked.
#295
Re:Header, and content all in one list item 3 Years, 2 Months ago  
Hi

Thanks for responding so quickly, sadly i cant actually link the site at the moment because it is not viewable externally.

Ive had a quick look at the default.php file myself for the module. Basically what i want to do is wrap a <h2> tag around the output of the page title but sadly im not a really a php expert.

If you have any more suggestions for this i'd really appreciate any help.

Thanks again.
David Essery
 
Logged Logged
  The topic has been locked.
#297
Re:Header, and content all in one list item 3 Years, 2 Months ago  
What if you put the H2 in the article itself, and then choose the option not to strip the HTML?
 
Logged Logged
  The topic has been locked.
#298
Re:Header, and content all in one list item 3 Years, 2 Months ago  
sadly that just displays as the actual html:



* <h2> News Event 1</h2><p>Curabitur turpis. Morbi fermentum. In non erat. Quisque a enim a libero vehicula scelerisque. Nullam a nulla hendrerit ante euismod porta. Maecenas aliquam nisl quis risus. Aenean sodales nibh sit amet lectus. Praesent lorem.</p>

thats the output i see on the page, not the source.
 
Logged Logged
  The topic has been locked.
#299
Re:Header, and content all in one list item 3 Years, 2 Months ago  
Ok ive found a fix. Thought id post it here incase anyone else wants to do something similar to me.

I had to copy the tmpl folder out of the mod_j15featuredarticles folder in the modules folder of the joomla install and move it into my html folder withing my template. Then rename the tmpl folder to mod_j15featuredarticles. U can then edit the default.php file to give you custom output. The following code is the file ammended to do what i wanted:

<?php // no direct access
defined('_JEXEC') or die('Go away'); ?>


<?php foreach ($items as $item) : ?>
<div class="featuredarticles">
<?php
if ($params->get('title') == "1") {
echo "<h3> $item->title </h3>";
}
if ($params->get('intro') == "2") {
echo $item->introtext;
}
if ($params->get('body') == "2") {
echo $item->fulltext;
}
?>

<?php if ($params->get('articlelink') == "1") { ?>
<a href="<?php echo $item->link; ?>" class="readon">
<?php
}
?>Read More &raquo;
<?php if ($params->get('articlelink') == "1") { ?>
</a>
<?php } ?>
</div>
<?php endforeach; ?>

<?php
if ($params->get('link') == 1)
{
?>
<a href="www.dart-creations.com" style="font-size:1px;display:none;">Joomla 1.5 Featured Articles</a>
<?php
}
?>

Ignore all the smiles, there replacing all the ; )

I basically just changed the list element to display as a div, moved the link into a read more link at the bottom and wrapped a <h3> tag around the title. Once this was done the module worked perfectly.

Hopefully this will be useful to anyone else that wants to customize the output a little.

Thanks for all ur help trying to sort out my problem, a very useful module you've written, ill try and sort out a donation for you later.

Dave
 
Logged Logged
  The topic has been locked.
Go to top

Buy us a beer!

If we've helped you, consider buying a beer €3. It will inspire us to keep on giving! Cheers!

Sponsors

Login Form






Lost Password?
No account yet? Register

Pagerank
Generated in 1.35058 Seconds