CSS du template catégory

More
14 years 1 month ago #4376 by micker
Replied by micker on topic CSS du template catégory
hello fais un imprim écran de l'administation de ton template et post la pour voir ..
:lol:

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
14 years 1 month ago #4442 by oxy021
Replied by oxy021 on topic CSS du template catégory
Oups, j'ai refais des screen shot visible cette fois...
Attachments:

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

More
14 years 1 month ago #4446 by micker
Replied by micker on topic CSS du template catégory
hello la falloir toucher le code
0 dans le dossier de ton template components/com_flexicontent/templates/(que tu as du dupliquer et renomer depuis l'admin)
1 tu prends le fichier category.xml
2 tu rajoute une position
Code:
<fieldgroups> <group>tanouvellepoistion</group>
3 tu vas modifié le fichier category_items.php
et à l'endroit ou tu veus tes valeurs tu mets
Code:
<!-- BOF tanouvellepoistion block --> <?php if (isset($items[$i]->positions['tanouvellepoistion'])) : ?> <div class="tanouvellepoistion"> <?php foreach ($items[$i]->positions['tanouvellepoistion'] 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 tanouvellepoistion block -->
4 depuis ton admin de template tu glisse tes champs dans cette nouvelles position
5 dans components/com_flexicontent/templates/css
tu modifie ton categori.css en ajoutant des ligne de css en fonction de ta div
Code:
<div class="tanouvellepoistion">
Code:
#tanouvellepoistion{ float: right; display: block; margin-top:10px; margin-right: 0; text-align: right; font-weight: bold; font-size: 110%; margin-bottom:10px; }
etc !
vili 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
14 years 1 month ago #4451 by oxy021
Replied by oxy021 on topic CSS du template catégory
Là je crois que j'arrive à mes limites pour l'instant car le code, j'ai du mal.
Dans le PHP, pour tester j'ai ajouter le ton code entre deux existantes above-desciption....
Par contre, pour le CSS, je nage plus.
la deuxième partie de code avec la mise en forme, je l'ai mis dans le :
/**
* blog block
*/

par contre, le <div class="tanouvellepoistion">, je ne sais pas ou le mettre et avec quelle syntaxe.

Eh oui, je viens de loin mais j'apprends...
En tout cas merci pour ta patience et ton temps.

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

More
14 years 1 month ago #4473 by micker
Replied by micker on topic CSS du template catégory
hello alors la vas falloir si mettre serieux :lol:
1 as tu placer correctement ta position dans le fichier php ?
2 tanouvelleposition c'est un nom generique tu mets le nom que tu veus
3 dans le css tu mets simplement
Code:
#tanouvellepoistion{ les codes css pour avoir un bon affichage }
je t'invite à apprendre les bases du css et du php sur le site du zero les tuto sont tres bien fait !
et nh'esite pas à mettre tes codes pour qu'on y voit plus clair !
courage

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
14 years 1 month ago #4523 by oxy021
Replied by oxy021 on topic CSS du template catégory
Bonjour,
J'étais pas loins, par déduction, à la lecture du code existant, j'avais fait comme tu me l'a dit mais çà ne s'affiche pas.
Dans les XML, c'est ok, je vois le zone dans le template, j'y mets des champs. Ce template est bien assigné à ma catogorie.
Dans le PHP, pour faire le test, j'ai mis la nouvelle zone "under-title-line1" entre deux zone existantes :
Code:
<!-- BOF above-description-line1 block --> <?php if (isset($items[$i]->positions['above-description-line1'])) : ?> <div class="lineinfo line1"> <?php foreach ($items[$i]->positions['above-description-line1'] 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 above-description-line1 block --> <!-- BOF under-title-line1 block --> <?php if (isset($items[$i]->positions['under-title-line1'])) : ?> <div class="under-title-line1"> <?php foreach ($items[$i]->positions['under-title-line1'] 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 under-title-line1 block --> <!-- BOF above-description-nolabel-line1 block --> <?php if (isset($items[$i]->positions['above-description-line1-nolabel'])) : ?> <div class="lineinfo line1"> <?php foreach ($items[$i]->positions['above-description-line1-nolabel'] as $field) : ?> <span class="element"> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> </span> <?php endforeach; ?> </div> <?php endif; ?> <!-- EOF above-description-nolabel-line1 block -->

Et dans les CSS, j'ai ajouter à la fin :
Code:
#under-title-line1{ display: block; float: left; font-weight: bold; font-family: Arial, Helvetica, sans-serif; font-size: 12px; }

Mais je ne vois toujours rien....

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

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