Hello,
I'm using ionFiles with the addons Latest Files and Popular Files, and the issue that I'm having is that when I create my files, the Latest addon doesn't list the files close enough. Below is an example:
but I would like the files to be listed like
.
Is it possible to do? If so, how do I format the file names to list like so?
Thanks for such a great product.
Kevin
What is your site URL? You probably need to edit your CSS to have no margins or paddings top/bottom for links.
Thanks for the quick reply.
My domain is Welcome to the Frontpage
I'm about 3 weeks into Joomla, and I am still trying to learn my way around it. So, not much of my content is on there yet. I haven't looked at the CSS file yet.
Is the CSS file in the ionFiles folder?
Kevin
That's real slick how my url got converted into my page title when I posted the above. I never saw that before.
Cool.
Kevin
It looks like you are using the version that Rolandd created. Send him a PM and he should be able to help. I can see it is trying to print the descriptions and adding a <br /> tag. There may be an option to disable descriptions.
Hello,
You can change this in the file modules/mod_ionfileslatest.php. On line 80 it says:You can remove the <br /> tag there. The items should then show as you want.Code:echo '</span><br />';
Hi Rolandd,
Thanks for the reply.
I've tried it and it notches it up just a tidbit, and the small separator is still visible. I'm still looking over the code and I at least know where to begin.
[UPDATE]
I've made these changes, and it's looking good, but now I need to clean it up and format it better.
Old Code:
New Code: after removing the red areas from above.Code:{ foreach ($filedetails as $id => $details) { echo '<a class="link" href="'.$mosConfig_live_site.'/index.php?option=com_ionfiles">'.$details['title'].'</a><br />'; echo '<span class="description">'; if (strlen($details['description']) > $description_length) echo substr($details['description'], 0, $description_length).'...'; else echo $details['description']; echo '</span><br />'; if ($show_divider && $affectedrows > 1) echo '<div class="hr"><hr /></div>'; }
and the results are:Code:{ foreach ($filedetails as $id => $details) { echo '<a class="link" href="'.$mosConfig_live_site.'/index.php?option=com_ionfiles">'.$details['title'].'</a><br />'; echo '<span class="description">'; if (strlen($details['description']) > $description_length) echo substr($details['description'], 0, $description_length).'...'; else echo $details['description']; echo ''; if ($show_divider && $affectedrows > 1) echo '<div class="hr"></div>'; }
Now I need to try a way to line them up properly and get rid of the pre-dots from the beginning.
Thanks again for your help.
Kevin
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks