[Réglé]Ajout position dans mon template default

More
12 years 8 months ago #23337 by micker
as tu un lien pour voir en direct ? faire au pif pas facile
apres c'est surement un soucis de css utilise firebug pour trouver
a+

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
12 years 8 months ago #23349 by manhole
Merci pour Firebug mais je n'y comprend pas grand chose.
J'ai jeté un oeil mais c'est galère.
Faudra que j'y jette un oeil puisque je ne connaissait pas avant mais là je bloque.
Voila le lien direct de la page concerné pour le problème : pausegeek.fr/index.php/component ... lking-dead
Tu doit être plus compétent que moi à utiliser firebug :D

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

More
12 years 8 months ago #23359 by szallontai
:)

tu as une fermeture de balise div en trop à la fin du bloc image (qui ferme le top block.

il faut la retirer et la mettre à la fin du bloc module.
Code:
<div class="topblock"> <!-- BOF image block --> <div class="image field_field16"> <a class="mb" id="mb125_16_0" href="/images/stories/flexicontent/l_thewalkingdeads012012.png"> <img alt="The Walking Dead" src="/images/stories/flexicontent/m_thewalkingdeads012012.png"> <div class="multiBoxDesc mb125_16_0"></div> <!-- EOF image block --> <!-- BOF module --> <div class="module"> <div class="module"><p><img src="/images/stories/systeme/news.png" alt=""></p> <p><img src="/images/stories/systeme/news.png" alt=""></p></div> </div> </div> <!-- EOF module --> <!-- BOF top block -->
;)
Attachments:

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

More
12 years 8 months ago #23361 by ggppdk
Just create a "Load module" field that loads your module.

Create a copy of the --default-- template, you will use this one with only one change (see below)

Insert both your image field and the load module field in the image Template position

Then edit item.php and add floated left div around the image position like this:
Code:
<!-- BOF image block --> ... <!-- EOF image block -->

becomes:
Code:
<div style="float:left;"> <!-- BOF image block --> ... <!-- EOF image block --> </div>

This is more like custom template work, but nevertheless intresting for adding e.g. multiple fields at the image position.

If it works, i am thinking of adding this to template

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
12 years 8 months ago #23376 by manhole
Merci de votre aide mais maintenant j'ai les infos qui se sont glissé sous mes images.

Voila mon code pour que vous puissiez voir où se situe mon erreur :
Code:
<?php /** * @version 1.5 stable $Id: item.php 558 2011-03-30 12:18:10Z emmanuel.danan@gmail.com $ * @package Joomla * @subpackage FLEXIcontent * @copyright (C) 2009 Emmanuel Danan - www.vistamedia.fr * @license GNU/GPL v2 * * FLEXIcontent is a derivative work of the excellent QuickFAQ component * @copyright (C) 2008 Christoph Lukes * see www.schlu.net for more information * * FLEXIcontent is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ defined( '_JEXEC' ) or die( 'Restricted access' ); // first define the template name $tmpl = $this->tmpl; ?> <div id="flexicontent" class="flexicontent item<?php echo $this->item->id; ?> type<?php echo $this->item->type_id; ?>"> <!-- BOF buttons --> <p class="buttons"> <?php echo flexicontent_html::pdfbutton( $this->item, $this->params ); ?> <?php echo flexicontent_html::mailbutton( 'items', $this->params, null , $this->item->slug ); ?> <?php echo flexicontent_html::printbutton( $this->print_link, $this->params ); ?> <?php echo flexicontent_html::editbutton( $this->item, $this->params ); ?> </p> <!-- EOF buttons --> <!-- BOF page title --> <?php if ($this->params->get( 'show_page_title', 1 ) && $this->params->get('page_title') != $this->item->title) : ?> <h1 class="componentheading"> <?php echo $this->params->get('page_title'); ?> </h1> <?php endif; ?> <!-- EOF page title --> <!-- BOF item title --> <?php if ($this->params->get('show_title', 1)) : ?> <h2 class="contentheading flexicontent"> <?php echo $this->escape($this->item->title); ?> </h2> <?php endif; ?> <!-- EOF item title --> <!-- BOF subtitle1 block --> <?php if (isset($this->item->positions['subtitle1'])) : ?> <div class="lineinfo subtitle1"> <?php foreach ($this->item->positions['subtitle1'] as $field) : ?> <span class="element"> <?php if ($field->label) : ?> <span class="label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></span> <?php endif; ?> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> </span> <?php endforeach; ?> </div> <?php endif; ?> <!-- EOF subtitle1 block --> <!-- BOF subtitle2 block --> <?php if (isset($this->item->positions['subtitle2'])) : ?> <div class="lineinfo subtitle2"> <?php foreach ($this->item->positions['subtitle2'] as $field) : ?> <span class="element"> <?php if ($field->label) : ?> <span class="label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></span> <?php endif; ?> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> </span> <?php endforeach; ?> </div> <?php endif; ?> <!-- EOF subtitle2 block --> <!-- BOF subtitle3 block --> <?php if (isset($this->item->positions['subtitle3'])) : ?> <div class="lineinfo subtitle3"> <?php foreach ($this->item->positions['subtitle3'] as $field) : ?> <span class="element"> <?php if ($field->label) : ?> <span class="label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></span> <?php endif; ?> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> </span> <?php endforeach; ?> </div> <?php endif; ?> <!-- EOF subtitle3 block --> <?php if ((isset($this->item->positions['image'])) || (isset($this->item->positions['top']))) : ?> <div class="topblock"> <!-- BOF image block --> <?php if (isset($this->item->positions['image'])) : ?> <?php foreach ($this->item->positions['image'] as $field) : ?> <div class="image field_<?php echo $field->name; ?>"> <?php echo $field->display; ?> </div> <?php endforeach; ?> <?php endif; ?> <!-- EOF image block --> <!-- BOF module --> <div class="module"> <?php foreach ($this->item->positions['module'] as $field) : ?> <?php if ($field->label) : ?> <div class="module"><?php echo $field->label; ?></div> <?php endif; ?> <div class="module"><?php echo $field->display; ?></div> <?php endforeach; ?> <div class="clear"></div> </div> <!-- EOF module --> <!-- BOF top block --> <?php if (isset($this->item->positions['top'])) : ?> <!-- BOF top block --> <div class="infoblock <?php echo $this->params->get('top_cols', 'two'); ?>cols"> <ul> <?php foreach ($this->item->positions['top'] as $field) : ?> <li> <div> <?php if ($field->label) : ?> <div class="label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></div> <?php endif; ?> <div class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></div> </div> </li> <?php endforeach; ?> </ul> </div> <!-- EOF top block --> <?php endif; ?> </div> <?php endif; ?> <div class="clear"></div> <?php if (isset($this->item->toc)) : ?> <!-- BOF TOC --> <?php echo $this->item->toc; ?> <!-- EOF TOC --> <?php endif; ?> <?php if (isset($this->item->positions['description'])) : ?> <!-- BOF description --> <div class="description"> <?php foreach ($this->item->positions['description'] as $field) : ?> <?php if ($field->label) : ?> <div class="desc-title"><?php echo $field->label; ?></div> <?php endif; ?> <div class="desc-content"><?php echo $field->display; ?></div> <?php endforeach; ?> </div> <!-- EOF description --> <?php endif; ?> <div class="clear"></div> <?php if (isset($this->item->positions['bottom'])) : ?> <!-- BOF bottom block --> <div class="infoblock <?php echo $this->params->get('bottom_cols', 'two'); ?>cols"> <ul> <?php foreach ($this->item->positions['bottom'] as $field) : ?> <li> <div> <?php if ($field->label) : ?> <div class="label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></div> <?php endif; ?> <div class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></div> </div> </li> <?php endforeach; ?> </ul> </div> <!-- EOF bottom block --> <!-- BOF media block --> <div class="infoblock <?php echo $this->params->get('bottom_cols', 'two'); ?>cols"> <ul> <?php foreach ($this->item->positions['media'] as $field) : ?> <li> <div> <?php if ($field->label) : ?> <div class="label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></div> <?php endif; ?> <div class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></div> </div> </li> <?php endforeach; ?> </ul> </div> <!-- EOF media block --> <?php endif; ?> <?php if ($this->params->get('comments') && !JRequest::getVar('print')) : ?> <!-- BOF comments --> <div class="comments"> <?php if ($this->params->get('comments') == 1) : if (file_exists(JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS.'jcomments.php')) : require_once(JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS.'jcomments.php'); echo JComments::showComments($this->item->id, 'com_flexicontent', $this->escape($this->item->title)); endif; endif; if ($this->params->get('comments') == 2) : if (file_exists(JPATH_SITE.DS.'plugins'.DS.'content'.DS.'jom_comment_bot.php')) : require_once(JPATH_SITE.DS.'plugins'.DS.'content'.DS.'jom_comment_bot.php'); echo jomcomment($this->item->id, 'com_flexicontent'); endif; endif; ?> </div> <!-- EOF comments --> <?php endif; ?> </div>
EDIT : En fait sa n'a pas l'air de marcher. Je n'y comprend plus rien. Un coup sa marche un coup sa ne marche plus. Qu'est ce que sa donne sur vos ordinateurs ?

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

More
12 years 8 months ago #23380 by szallontai
la solution de ggppdk reste la meilleure,

as tu réalisé sa proposition ?

Pour ton "Pb" ce n'est que du positionnement css si tu ne présente pas le positionnement des différents éléments que tu souhaite avoir sur la page ça sera difficile de t'aider et avancer.

Quel est cet élément "les infos" dont tu parle?

Le mieux est que tu réalise un tracé de mise en page sur papier pour que tu te rende compte des différent élément (block) et de leur position relative entre eux. Apres tu code et positionne selon la trame avec les multiples possibilité du CSS.
bon courage.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.386 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline