style d'affichage de la page "mes articles"

More
3 years 7 months ago - 3 years 7 months ago #51576 by lclaude
Bonjour à tous,
J'ai une page qui affiche la liste de "mes articles", les articles dont je suis l'auteur. J'utilise la fonction de menu prévue pour cela.
Dans les paramètres du lien de menu, je peux choisir mon template. Très bien. J'ai donc fais le choix de prendre un template basé sur le template "default".
Dans les paramètre vue catégorie de ce template je rajoute les champs : Image (champ personnalisé), Titre et Description.
Parfait jusque là, en frontend j'ai bien mes articles qui s'affichent avec mes trois champs.

Mais,
comment choisir la taille d'affichage de mon image ? Je ne comprend pas où ça se passe.
Mon objectif est d'arriver au même affichage que pour la page "Mes favoris".
Merci de votre aide.

Laurent
Last edit: 3 years 7 months ago by lclaude.

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

More
3 years 7 months ago #51595 by ggppdk
Hello

try setting (in the menu item) a duplicate FLEXIcontent template "default"
e.g. default-myitems

and then edit the "category layout" of "default-myitems" template to add fields that you need


-- 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 review. Thanks!

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

More
3 years 7 months ago #51600 by lclaude
Bonjour,
Merci pour ta réponse,
c'est ce que j'ai déjà fait, pas de pb pour ça.

Mon besoin est de gérer la taille de mon image, mais je ne trouve pas où.
Le résultat escompté est d'avoir la même apparence que pour la page "mes favoris".

Hello,

Thanks for your answer,
That is what I've done. No pb for that.

My need is to manage the size of my image, but I don't find where I can have settings for that.
The result I want to have is the same apparence than the page "my favorits".

Laurent

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

More
3 years 7 months ago #51602 by ggppdk
Hello

when you drag and drop a field into position there is no option to select alternative display for the field,

e.g.
display_small
display_medium
display_large

in version v2.3.0 or v2.4.0, you will not only drop field into position but also select
- alternative display method
- styling class too

(v2.2.2 add single image display with item count for image field: display_single_total)

for now you can
1. set image field to show e.g. medium thumbnail for categoty view
2. use CSS to adjust size of thumbnail
3. use CSS to hide all thumbnails after first one:

e.g. for 3
.menuitem680 field_myimagefieldname > a {
display:none;
}
.menuitem680 field_myimagefieldname > a:first-child {
display:inline-block;
}

e.g. for 2
.menuitem680 field_myimagefieldname > a img {
width: 120px;
}


or even better is to do before item loop:

FLEXIcontentfields::getFieldDisplay($this->items, 'myimagefieldname1', null, 'display_small_src', 'category');

then inside the item loop

$thumnail_url = $item->fields->display_small_src;

and use the above to create an <img> tag and link to the item


-- 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 review. Thanks!

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

More
3 years 7 months ago #51638 by lclaude
Hello,
I think I have my answer. I'll test that.

Many thanks !

Laurent

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

More
3 years 7 months ago #51669 by lclaude
works great !
Here is my custom CSS :
.menuitem574 .fc_field_image {
	width: 120px;
	padding: 0px !important;
	border: 0px !important;
	border-radius: 0px !important;
}

Many thanks ;)

Laurent

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

More
3 years 7 months ago #51682 by micker
thanks for return

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.

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.