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

More
12 years 1 week ago #23330 by szallontai
slt,

normal dans le bloc image du item php il y as un
Code:
<div class="clear"></div>
d'ou le float à droite de l'image.

retire cette ligne,
et insère la à la fin de ton bloc module comme dans le bloc image initial pour garder le top bloc en haut à droite de celui ci.

ce qui devrait te donner ceci
Code:
<!-- BOF image bl<!-- 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> <div class="clear"></div> <?php endforeach; ?> <?php endif; ?> <!-- EOF module -->ock --> <?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> <div class="clear"></div> <?php endforeach; ?> <?php endif; ?> <!-- EOF module -->
j'espere que j'ai bon :D
bonne continuation

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

More
12 years 1 week ago #23331 by manhole
Merci de ton aide mais sa ne donne pas ce que je souhaite.
Voilà ce que sa donne :
[attachment=0:27wftuu3]<!-- ia0 -->modif2.png<!-- ia0 -->[/attachment:27wftuu3]
Attachments:

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

More
12 years 1 week 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 1 week 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 1 week 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 1 week 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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.363 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