#1 7. Dezember 2008 Hallo, bin grad dabei eine Seite auf Joomla 1.5 Basis zu erstellen. Leider stehe ich vor einem Problem: Ich möchte dass der Inhalt folgendemaßen aussieht: {bild down} Der normale schwarze BG existiert schnon. Ich brauch also nur noch dass der speziefische BG immer abwechselnd schwarz bzw. halt jedes 2. Mal weiß mit footer ist und dieses Zeichen nach der Überschirft kommt. Kann mir bei diesem Problem wer helfen? + Multi-Zitat Zitieren
#2 7. Dezember 2008 AW: Joomla Content Background Wenn Sie versuchen, es andern? Oder auf der Seite? Was ist dein URL? Kann ich seh? + Multi-Zitat Zitieren
#3 7. Dezember 2008 AW: Joomla Content Background Hallo, ohne Code kann ich auch nicht gut helfen. Aber nach meinem Verständnis sollte es etwa so funktionieren: Die News' werden ja irgendwo aus der Datenbank ausgelesen und dann ausgegeben. Ich denke mal, die News' werden mit mit einer while-Schleife in ein Array eingelesen. In dieser Schleife könntest Du eine Zählvariable, von 0 beginnend, mitlaufen lassen. Im Template, wo die News' dann ausgegeben werden sollen, fügst Du eine If-Abfrage ein. Wenn Zählvariable modulo (also Division mit Rest) keinen Rest hat (also eine gerade Zahl ist), dann machst Du den Hintergrund weiß und fügst unter die News noch einen Div (oder eine Tabellenspalte, wenn mit table gelöst) ein mit dem Footer. Wenn ein Rest herauskommt, dann Hintergrund schwarz lassen und keinen Footer anfügen. Sn0wm4n + Multi-Zitat Zitieren
#4 7. Dezember 2008 AW: Joomla Content Background Das is eben das große Problem dass ich mich damit nicht so gut auskenne. Ich hab 2 Files gefunden, in denen das evtl. generiert wird: File1: PHP: <? php // no direct access defined ( '_JEXEC' ) or die( 'Restricted access' ); ?> <?php if ( $this -> params -> get ( 'show_page_title' , 1 ) && $this -> params -> get ( 'page_title' ) != $this -> article -> title ) : ?> <div class="componentheading<?php echo $this -> params -> get ( 'pageclass_sfx' ) ?>"><?php echo $this -> escape ( $this -> params -> get ( 'page_title' )); ?></div> <?php endif; ?> <?php if ( $this -> user -> authorize ( 'com_content' , 'edit' , 'content' , 'all' ) && ! $this -> print ) : ?> <div class="contentpaneopen_edit<?php echo $this -> params -> get ( 'pageclass_sfx' ); ?>" > <?php echo JHTML :: _ ( 'icon.edit' , $this -> article , $this -> params , $this -> access ); ?> </div> <?php endif; ?> <?php if ( $this -> params -> get ( 'show_title' , 1 )) : ?> <h2 class="contentheading<?php echo $this -> params -> get ( 'pageclass_sfx' ); ?>"> <?php if ( $this -> params -> get ( 'link_titles' ) && $this -> article -> readmore_link != '' ) : ?> <a href="<?php echo $this -> article -> readmore_link ; ?>" class="contentpagetitle<?php echo $this -> params -> get ( 'pageclass_sfx' ); ?>"> <?php echo $this -> escape ( $this -> article -> title ); ?> </a> <?php else : ?> <?php echo $this -> article -> title ; ?> <?php endif; ?> </h2> <?php endif; ?> <?php if (! $this -> params -> get ( 'show_intro' )) : echo $this -> article -> event -> afterDisplayTitle ; endif; ?> <?php if ( ( $this -> params -> get ( 'show_create_date' )) || (( $this -> params -> get ( 'show_author' )) && ( $this -> article -> author != "" )) || (( $this -> params -> get ( 'show_section' ) && $this -> article -> sectionid ) || ( $this -> params -> get ( 'show_category' ) && $this -> article -> catid )) || ( $this -> params -> get ( 'show_pdf_icon' ) || $this -> params -> get ( 'show_print_icon' ) || $this -> params -> get ( 'show_email_icon' )) || ( $this -> params -> get ( 'show_url' ) && $this -> article -> urls ) ) : ?> <div class="article-tools"> <div class="article-meta"> <?php if ( $this -> params -> get ( 'show_create_date' )) : ?> <span class="createdate"> <?php echo JHTML :: _ ( 'date' , $this -> article -> created , JText :: _ ( 'DATE_FORMAT_LC2' )) ?> </span> <?php endif; ?> <?php if (( $this -> params -> get ( 'show_author' )) && ( $this -> article -> author != "" )) : ?> <span class="createby"> <?php JText :: printf (( $this -> article -> created_by_alias ? $this -> article -> created_by_alias : $this -> article -> author ) ); ?> </span> <?php endif; ?> <?php if (( $this -> params -> get ( 'show_section' ) && $this -> article -> sectionid ) || ( $this -> params -> get ( 'show_category' ) && $this -> article -> catid )) : ?> <?php if ( $this -> params -> get ( 'show_section' ) && $this -> article -> sectionid && isset( $this -> article -> section )) : ?> <span class="article-section"> <?php if ( $this -> params -> get ( 'link_section' )) : ?> <?php echo '<a href="' . JRoute :: _ ( ContentHelperRoute :: getSectionRoute ( $this -> article -> sectionid )). '">' ; ?> <?php endif; ?> <?php echo $this -> article -> section ; ?> <?php if ( $this -> params -> get ( 'link_section' )) : ?> <?php echo '</a>' ; ?> <?php endif; ?> <?php if ( $this -> params -> get ( 'show_category' )) : ?> <?php echo ' - ' ; ?> <?php endif; ?> </span> <?php endif; ?> <?php if ( $this -> params -> get ( 'show_category' ) && $this -> article -> catid ) : ?> <span class="article-section"> <?php if ( $this -> params -> get ( 'link_category' )) : ?> <?php echo '<a href="' . JRoute :: _ ( ContentHelperRoute :: getCategoryRoute ( $this -> article -> catslug , $this -> article -> sectionid )). '">' ; ?> <?php endif; ?> <?php echo $this -> article -> category ; ?> <?php if ( $this -> params -> get ( 'link_section' )) : ?> <?php echo '</a>' ; ?> <?php endif; ?> </span> <?php endif; ?> <?php endif; ?> </div> <?php if ( $this -> params -> get ( 'show_pdf_icon' ) || $this -> params -> get ( 'show_print_icon' ) || $this -> params -> get ( 'show_email_icon' )) : ?> <div class="buttonheading"> <?php if (! $this -> print ) : ?> <?php if ( $this -> params -> get ( 'show_email_icon' )) : ?> <span> <?php echo JHTML :: _ ( 'icon.email' , $this -> article , $this -> params , $this -> access ); ?> </span> <?php endif; ?> <?php if ( $this -> params -> get ( 'show_print_icon' )) : ?> <span> <?php echo JHTML :: _ ( 'icon.print_popup' , $this -> article , $this -> params , $this -> access ); ?> </span> <?php endif; ?> <?php if ( $this -> params -> get ( 'show_pdf_icon' )) : ?> <span> <?php echo JHTML :: _ ( 'icon.pdf' , $this -> article , $this -> params , $this -> access ); ?> </span> <?php endif; ?> <?php else : ?> <span> <?php echo JHTML :: _ ( 'icon.print_screen' , $this -> article , $this -> params , $this -> access ); ?> </span> <?php endif; ?> </div> <?php endif; ?> <?php if ( $this -> params -> get ( 'show_url' ) && $this -> article -> urls ) : ?> <span class="article-url"> <a href="http://<?php echo $this -> article -> urls ; ?>" target="_blank"> <?php echo $this -> article -> urls ; ?></a> </span> <?php endif; ?> </div> <?php endif; ?> <?php echo $this -> article -> event -> beforeDisplayContent ; ?> <div class="article-content"> <?php if (isset ( $this -> article -> toc )) : ?> <?php echo $this -> article -> toc ; ?> <?php endif; ?> <?php echo $this -> article -> text ; ?> </div> <?php if ( intval ( $this -> article -> modified ) != 0 && $this -> params -> get ( 'show_modify_date' )) : ?> <span class="modifydate"> <?php echo JText :: _ ( 'Last Updated' ); ?> ( <?php echo JHTML :: _ ( 'date' , $this -> article -> modified , JText :: _ ( 'DATE_FORMAT_LC2' )); ?> ) </span> <?php endif; ?> <span class="article_separator"> </span> <?php echo $this -> article -> event -> afterDisplayContent ; ?> oder eben File 2: PHP: <? php // no direct access defined ( '_JEXEC' ) or die( 'Restricted access' ); ?> <?php if ( $this -> user -> authorize ( 'com_content' , 'edit' , 'content' , 'all' )) : ?> <div class="contentpaneopen_edit<?php echo $this -> item -> params -> get ( 'pageclass_sfx' ); ?>" style="float: left;"> <?php echo JHTML :: _ ( 'icon.edit' , $this -> item , $this -> item -> params , $this -> access ); ?> </div> <?php endif; ?> <div class="contentpaneopen<?php echo $this -> item -> params -> get ( 'pageclass_sfx' ); ?>"> <?php if ( $this -> item -> params -> get ( 'show_title' )) : ?> <h2 class="contentheading<?php echo $this -> item -> params -> get ( 'pageclass_sfx' ); ?>"> <?php if ( $this -> item -> params -> get ( 'link_titles' ) && $this -> item -> readmore_link != '' ) : ?> <a href="<?php echo $this -> item -> readmore_link ; ?>" class="contentpagetitle<?php echo $this -> item -> params -> get ( 'pageclass_sfx' ); ?>"> <?php echo $this -> escape ( $this -> item -> title ); ?> </a> <?php else : ?> <?php echo $this -> escape ( $this -> item -> title ); ?> <?php endif; ?> </h2> <?php endif; ?> <?php if (! $this -> item -> params -> get ( 'show_intro' )) : echo $this -> item -> event -> afterDisplayTitle ; endif; ?> <?php if ( ( $this -> item -> params -> get ( 'show_create_date' )) || (( $this -> item -> params -> get ( 'show_author' )) && ( $this -> item -> author != "" )) || (( $this -> item -> params -> get ( 'show_section' ) && $this -> item -> sectionid ) || ( $this -> item -> params -> get ( 'show_category' ) && $this -> item -> catid )) || ( $this -> item -> params -> get ( 'show_pdf_icon' ) || $this -> item -> params -> get ( 'show_print_icon' ) || $this -> item -> params -> get ( 'show_email_icon' )) || ( $this -> item -> params -> get ( 'show_url' ) && $this -> item -> urls ) ) : ?> <div class="article-tools"> <div class="article-meta"> <?php if ( $this -> item -> params -> get ( 'show_create_date' )) : ?> <span class="createdate"> <?php echo JHTML :: _ ( 'date' , $this -> item -> created , JText :: _ ( 'DATE_FORMAT_LC2' )); ?> </span> <?php endif; ?> <?php if (( $this -> item -> params -> get ( 'show_author' )) && ( $this -> item -> author != "" )) : ?> <span class="createby"> <?php JText :: printf (( $this -> item -> created_by_alias ? $this -> item -> created_by_alias : $this -> item -> author ) ); ?> </span> <?php endif; ?> <?php if (( $this -> item -> params -> get ( 'show_section' ) && $this -> item -> sectionid ) || ( $this -> item -> params -> get ( 'show_category' ) && $this -> item -> catid )) : ?> <?php if ( $this -> item -> params -> get ( 'show_section' ) && $this -> item -> sectionid && isset( $this -> item -> section )) : ?> <span class="article-section"> <?php if ( $this -> item -> params -> get ( 'link_section' )) : ?> <?php echo '<a href="' . JRoute :: _ ( ContentHelperRoute :: getSectionRoute ( $this -> item -> sectionid )). '">' ; ?> <?php endif; ?> <?php echo $this -> item -> section ; ?> <?php if ( $this -> item -> params -> get ( 'link_section' )) : ?> <?php echo '</a>' ; ?> <?php endif; ?> <?php if ( $this -> item -> params -> get ( 'show_category' )) : ?> <?php echo ' - ' ; ?> <?php endif; ?> </span> <?php endif; ?> <?php if ( $this -> item -> params -> get ( 'show_category' ) && $this -> item -> catid ) : ?> <span class="article-section"> <?php if ( $this -> item -> params -> get ( 'link_category' )) : ?> <?php echo '<a href="' . JRoute :: _ ( ContentHelperRoute :: getCategoryRoute ( $this -> item -> catslug , $this -> item -> sectionid )). '">' ; ?> <?php endif; ?> <?php echo $this -> item -> category ; ?> <?php if ( $this -> item -> params -> get ( 'link_section' )) : ?> <?php echo '</a>' ; ?> <?php endif; ?> </span> <?php endif; ?> <?php endif; ?> </div> <?php if ( $this -> item -> params -> get ( 'show_pdf_icon' ) || $this -> item -> params -> get ( 'show_print_icon' ) || $this -> item -> params -> get ( 'show_email_icon' )) : ?> <div class="buttonheading"> <?php if ( $this -> item -> params -> get ( 'show_email_icon' )) : ?> <span> <?php echo JHTML :: _ ( 'icon.email' , $this -> item , $this -> item -> params , $this -> access ); ?> </span> <?php endif; ?> <?php if ( $this -> item -> params -> get ( 'show_print_icon' )) : ?> <span> <?php echo JHTML :: _ ( 'icon.print_popup' , $this -> item , $this -> item -> params , $this -> access ); ?> </span> <?php endif; ?> <?php if ( $this -> item -> params -> get ( 'show_pdf_icon' )) : ?> <span> <?php echo JHTML :: _ ( 'icon.pdf' , $this -> item , $this -> item -> params , $this -> access ); ?> </span> <?php endif; ?> </div> <?php endif; ?> <?php if ( $this -> item -> params -> get ( 'show_url' ) && $this -> item -> urls ) : ?> <span class="article-url"> <a href="http://<?php echo $this -> item -> urls ; ?>" target="_blank"> <?php echo $this -> item -> urls ; ?></a> </span> <?php endif; ?> </div> <?php endif; ?> <?php echo $this -> item -> event -> beforeDisplayContent ; ?> <div class="article-content"> <?php if (isset ( $this -> item -> toc )) : ?> <?php echo $this -> item -> toc ; ?> <?php endif; ?> <?php echo $this -> item -> text ; ?> </div> <?php if ( intval ( $this -> item -> modified ) != 0 && $this -> item -> params -> get ( 'show_modify_date' )) : ?> <span class="modifydate"> <?php echo JText :: _ ( 'Last Updated' ); ?> ( <?php echo JHTML :: _ ( 'date' , $this -> item -> modified , JText :: _ ( 'DATE_FORMAT_LC2' )); ?> ) </span> <?php endif; ?> <?php if ( $this -> item -> params -> get ( 'show_readmore' ) && $this -> item -> readmore ) : ?> <a href="<?php echo $this -> item -> readmore_link ; ?>" title="<?php echo $this -> item -> title ; ?>" class="readon<?php echo $this -> item -> params -> get ( 'pageclass_sfx' ); ?>"> <?php if ( $this -> item -> readmore_register ) : ?> <?php echo JText :: _ ( 'Register to read more...' ); ?> <?php else : ?> <?php echo JText :: _ ( 'Read more...' ); ?> <?php endif; ?> </a> <?php endif; ?> </div> <span class="article_separator"> </span> <?php echo $this -> item -> event -> afterDisplayContent ; ?> + Multi-Zitat Zitieren