Keyword

Archivo adjunto como imagen de fondo

  • Reinaldo
  • Reinaldo's Avatar Topic Author
  • Offline
  • New Member
More
11 years 8 months ago #101503 by Reinaldo
Archivo adjunto como imagen de fondo was created by Reinaldo
Hola!!

Este es mi primer post en el foro de k2, estoy creando una web, y necesito crear un campo o tab en el k2 para que mi cliente pueda colocar una imagen de fondo al contenido de k2, he logrado mostrar el archivo adjunto como imagen pero no he logrado colocarlo de fondo del contenido, aqui les dejo el trozo de codigo que he editado




<?php if(JRequest::getInt('print')==1): ?>
<!-- Print button at the top of the print page only -->
<a class="itemPrintThisPage" rel="nofollow" href="#" onclick="window.print();return false;">
<span><?php echo JText::_('K2_PRINT_THIS_PAGE'); ?></span>
</a>
<?php endif; ?>

<!-- Start K2 Item Layout -->
<span id="startOfPageId<?php echo JRequest::getInt('id'); ?>"></span>

<div id="k2Container" class="itemView<?php echo ($this->item->featured) ? ' itemIsFeatured' : ''; ?><?php if($this->item->params->get('pageclass_sfx')) echo ' '.$this->item->params->get('pageclass_sfx'); ?>">


<?php if($this->item->params->get('itemAttachments') && count($this->item->attachments)): ?>
<!-- Item attachments -->
<div class="itemAttachmentsBlock">
<span><?php echo JText::_('K2_DOWNLOAD_ATTACHMENTS'); ?></span>
<ul class="itemAttachments">
<?php foreach ($this->item->attachments as $attachment): ?>
<?php /*?> <li>
<a title="<?php echo K2HelperUtilities::cleanHtml($attachment->titleAttribute); ?>" href="<?php echo $attachment->link; ?>"><?php echo $attachment->title; ?></a>
<?php if($this->item->params->get('itemAttachmentsCounter')): ?>
<span>(<?php echo $attachment->hits; ?> <?php echo ($attachment->hits==1) ? JText::_('K2_DOWNLOAD') : JText::_('K2_DOWNLOADS'); ?>)</span>
<?php endif; ?>
</li><?php */?>
<img class="attachment" src="<?php echo $attachment->link; ?>" />

<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<!-- Plugins: BeforeDisplay -->
<?php echo $this->item->event->BeforeDisplay; ?>

<!-- K2 Plugins: K2BeforeDisplay -->
<?php echo $this->item->event->K2BeforeDisplay; ?>



He agregado <img class="attachment" src="<?php echo $attachment->link; ?>" /> para poder jalar la imagen y mostrarla pero por mis pocos conocimientos de programación no hayo como hacerla de fondo....alguien que me pueda ayudar??

gracias! :cheer:

Please Log in or Create an account to join the conversation.

  • olsen
  • olsen's Avatar
  • Offline
  • Elite Member
  • Joomla and K2 Freelancer
More
11 years 8 months ago #101504 by olsen
Replied by olsen on topic Re: Archivo adjunto como imagen de fondo
a que te refieres de fondo???? Como background del articulo??? detras del texto???

Didn't solve your issues?? Why dont you consider hire me? Email me or contact me www.xevedigital.com for details

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum