Zum Inhalt springen

kk_downloader in Tabellenform

Erstellt am 14. Februar 2009 · 4 Antworten · letzte Antwort am 30. Juli 2009

Tags: Frage

alexus ·

Hallo,

ich benutze neuerdings den kk_downloader und möchte ganz gerne die Anzeige in Tabellenform wie im Dokument angezeigt haben.
Leider bekomme ich die Anordnung "Alle Dateien zum Herunterladen auf einen BlickL" nicht hin. Kann ich dafür mal eine Hilfe bekommen.

Ich bedanke mich im Voraus und verbleibe mit bestem Gruß
Axel Scherling

bbgrobie ·

hallo axel!

hast du inzwischen die tabellenform beim kk_downloader hinbekommen? ich suche auch gerade nach der lösung und könnte einen tipp gebrauchen.
den tipp darf mir natürlich auch jemand anders geben.

gruß von andreas

alexus ·

Hallo Andreas!

Leider habe ich bis jetzt noch keine passende Hilfe bekommen, so dass ich das Problem zunächst zurück gestellt habe.

Mit bestem Gruß
Axel

bbgrobie ·

nochmal zum kk_downloader...

mir ist aufgefallen, dass in der datei /static/css/setup.txt alle bezeichner von "class" und "id" mit "kk_" beginnen.
im template "kk_download_template.html" beginnen die bezeichner von "class" und "id" noch mit "sb_".

da passt doch irgendwas nicht zusammen, oder??
außerdem wunderts mich, dass der seitenaufbau schon bei nur 5 pdf's in der Downloadliste schweine-langsam ist. hat jemand ähnliche probleme gehabt?

gruß von andreas

Guardian ·

Hallo Axel,

ich habe mir das Template angepasst und durch CSS die Tabellenform mit DIV-Containern hinbekommen. Anbei das Template und das CSS.

Template:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=windows-1250">
  <meta name="generator" content="PSPad editor, www.pspad.com">
  <title></title>

  </head>
  <body>
<!-- ###TEMPLATE### begin -->

<!-- BEGIN: Content of extension "sb_downloader", plugin "sb_downloader" -->
<div id="sb_download_flexWrap">
  <div class="sb_download_h1">Kategorie</div>
  <div class="sb_download_h2">Name <br /> <hr /> kurze Beschreibung </div>
  <div class="sb_download_h3">Download-Link</div>
  <div class="sb_download_h4">Anz. <br />Downloads</div>

  <!-- ###CONTENT### begin-->
  
     <!-- ###LIST_ITEM### begin -->
			  <div class="sb_download_flex">
					  <!-- erste Spalte -->
					<div class="sb_download_col1">
						<div class="cat">###CATEGORIES###</div>
					</div>
					  <!-- zweite Spalte -->
					<div class="sb_download_col2">
						<div class="title">###TITLE###</div>
						<hr />
						 <div class="sb_download_text">
							 	<div class="description">###SHORTDESCRIPTION###</div>
							 	###MORE###
						 </div>
					</div>
					<!-- dritte Spalte -->
					<div class="sb_download_col3">
						<div class="links">###LINKS###</div>
						<div class="sb_download_image">###IMAGE###</div>
						<div style="clear: both"></div>
					 	<div class="datetime">###DATE###</div>
						<br />
					 	<div class="description">###IPLASTDOWNLOAD###</div>
 					 	<div class="datetime">###LASTDOWNLOAD###</div>
					 	<div class="datetime">###LASTEDIT###</div>
					</div>
					<!-- vierte Spalte -->
					<div class="sb_download_col4">
						<div class="clicks">###CLICKS###</div>
					</div>
			  </div>
			  <div style="clear: both"></div>
      <!-- ###LIST_ITEM### end -->
  <!-- ###CONTENT### end-->
</div>
<!-- END Content of extension "sb_downloader", plugin "sb_downloader" -->
<!-- ###TEMPLATE### end -->

  <!-- Single Template -->

<!-- ###TEMPLATE_SINGLE### begin -->
	<div class="sb_download_single">
					  <div class="title">###TITLE###</div>
					  ###CATEGORIES###
						 <div class="sb_download_text">
								<div class="links">###LINKS###</div>
							 	<div class="description">###DESCRIPTION###</div>
						 </div>
							<div class="sb_download_image">###IMAGE###</div>
							<div style="clear: both"></div>
					 	<div class="clicks">###CLICKS###</div>
					 	<div class="datetime">###LASTDOWNLOAD###</div>
					 	<div class="description">###IPLASTDOWNLOAD###</div>
					 	<div class="datetime">###DATE###</div>
					 	<div class="datetime">###LASTEDIT###</div>
	</div>
<!-- ###TEMPLATE_SINGLE### end -->

  <!-- Single Template -->
  
  </body>
</html>

CSS:

/*Download*/

.sb_download_h1{
   float: left; 
   width: 105px;
   border: 1px solid black;
   font-size: 0.9em;
   font-style: italic;
   height: 3em;
   margin: 0; padding: 1em 1em;
   background-color: #cccc99;
  }
  

.sb_download_h2{
   float: left; 
   width: 200px;
   border: 1px solid black;
   font-size: 0.9em;
   font-style: italic;
   height: 3em;
   margin: 0; padding: 1em 1em;
   background-color: #cccc99;
}

.sb_download_h3{
   float: left;
   width: 200px;
   border: 1px solid black;
   font-size: 0.9em;
   font-style: italic;
   height: 3em;
   margin: 0; padding: 1em 1em;
   background-color: #cccc99;
}
.sb_download_h4{
   float:left;
   width: 60px;
   border: 1px solid black;
   font-size: 0.9em;
   font-style: italic;
   height: 3em;
   margin: 0; padding: 1em 1em;
   background-color: #cccc99;
   }

.sb_download_col1{
   font-size: 0.9em;
   float: left; 
   width: 105px;
   height: 10em;
   margin: 0; padding: 1em 1em;
   border: 1px solid #cccc99;
   }

.sb_download_col2{
   font-size: 0.9em;
   float: left; 
   width: 200px;
   height: 10em;
   margin: 0; padding: 1em 1em;
   border: 1px solid #cccc99;
   }

.sb_download_col3 {
   font-size: 0.9em;
   float: left;
   width: 200px;
   height: 10em;
   margin: 0;
   padding: 1em 1em;
   border: 1px solid #cccc99;
   }

.sb_download_col4 {
   font-size: 0.9em;
   float:left;
   text-align: right;
   width: 60px;
   height: 10em;
   margin: 0;
   padding: 1em 1em;
   border: 1px solid #cccc99;
   
  }

.datetime, .sb_fileMDateClass, .sb_filesize_class{
   font-size: 0.8em;
   }
.sb_download_col2 .title{
	font-style: italic;
	font-weight: bold;
	}

Ansehen kannst du dir das ganze unter http://www.rk-feldjaeger.de/download.html. Was mir noch nicht gelungen ist, das ist die Single-Ansicht. Schalte ich die Single-Ansicht frei und klicke auf [mehr] bekomme ich nur Fehlermeldungen, dass die SQL-Abfrage leer ist. Falls du da eine Idee hast wäre ich dankbar.

Gruß Harald