Skip to content

dart-creations.com

Advertisement
Home arrow Forums
DART Creations Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Header, and content all in one list item (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Header, and content all in one list item
#292
dessery (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Header, and content all in one list item 1 Month ago Karma: 0  
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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#294
DART (Admin)
Admin
Posts: 163
graph
User Online Now Click here to see the profile of this user
Re:Header, and content all in one list item 1 Month ago Karma: 1  
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.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#295
dessery (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Header, and content all in one list item 1 Month ago Karma: 0  
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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#297
DART (Admin)
Admin
Posts: 163
graph
User Online Now Click here to see the profile of this user
Re:Header, and content all in one list item 1 Month ago Karma: 1  
What if you put the H2 in the article itself, and then choose the option not to strip the HTML?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#298
dessery (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Header, and content all in one list item 1 Month ago Karma: 0  
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.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#299
dessery (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Header, and content all in one list item 1 Month ago Karma: 0  
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="http://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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Sponsors

Your Ad Here

Ad Space for Sale.
125,000+ page views a month.
Advertising Rates

Login Form






Lost Password?
No account yet? Register

Buy us a beer!

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






Generated in 2.01530 Seconds