/includes/templates/YOURTEMPLATE/templates/tpl_modules_media_manager.php
around line 25-30 you have this:```
<div id="mediaTitle" class="back"><?php echo $za_media['text']; ?></div>
<?php
$zv_counter1 = 0;
while(list($za_clip_key, $za_clip) = each($za_media_manager[$za_media_key]['clips'])) {
?>
<div id="mediaTypeLink" class="forward"><a href="<?php echo zen_href_link(DIR_WS_MEDIA . $za_clip['clip_filename'], '', 'NONSSL', false, true, true); ?>" target="_blank"><?php echo '<span class="mediaClipFilename">' . $za_clip['clip_filename'] . '</span>' . (!empty($za_clip['clip_type']) ? '<span class="mediaClipType"> (' . $za_clip['clip_type'] . ')</span>' : ''); ?></a></div>
Change to this:```
<div class="mediaTitle"><?php echo $za_media['text']; ?></div>
<?php
$zv_counter1 = 0;
while(list($za_clip_key, $za_clip) = each($za_media_manager[$za_media_key]['clips'])) {
?>
<div class="mediaTypeLink"><a href="<?php echo zen_href_link(DIR_WS_MEDIA . $za_clip['clip_filename'], '', 'NONSSL', false, true, true); ?>" target="_blank"><?php echo '<span class="mediaClipFilename">' . $za_clip['clip_filename'] . '</span>' . (!empty($za_clip['clip_type']) ? '<span class="mediaClipType"> (' . $za_clip['clip_type'] . ')</span>' : ''); ?></a></div>
/includes/templates/YOURTEMPLATE/css/stylesheet.css
around line 440 (if you used classic as a base) you have this:#mediaManager { width: 50%; margin: 0.2em; padding: 0.5em; background-color: #E4FEf5; border: 1px solid #003D00; }add this below it:```
.mediaTitle {
float: left;
}
.mediaTypeLink {
float: right;
}
That will change the layout to use classes instead of repeating ID's in the HTML.
That won't solve your layout problem, but will give you better control to resolve the layout problem.
You'll find that if you turn on the right-column and alter your media filenames to have underscores instead of spaces, that the spacing will work out such that the peculiar wrapping behaviour you mentioned will go away.
There are probably some additional things you can do in the stylesheet to cause the links to stop their wrapping behaviour.
You might try changing the #mediaManager width to 60% or 65%.
You might even consider getting more creative and converting the template output to an unordered list instead of stacked DIVs.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.