Création de sous-menu lié à chaque article [solved]

More
12 years 3 months ago - 12 years 3 months ago #42342 by eastkilla
Bonjour à tous,

J'ai entrepris de développer un site avec Joomla 3.2 et FlexiContent.

Je souhaite créer des articles ressemblant à cela : www.allocine.fr/film/fichefilm_gen_cfilm=178496.html

Pour chaque article (ici l'article fait référence à Gravity), en plus du menu de navigation normal, j'aimerais intégrer un menu de navigation, renvoyant à différentes parties de l'article. Dans l'exemple du site AlloCiné, nous avons dans ce menu un onglet "home", un onglet séances, un onglet Bandes Annonces, etc.

Est-il possible de réaliser cela avec Joomla et FlexiContent ? Pour chaque article d'avoir ce même menu mais qui renvoie bien entendu aux informations de l'article approprié.

Merci pour votre aide.
Last edit: 12 years 3 months ago by eastkilla.

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

More
12 years 3 months ago #42343 by ggppdk


-- 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
12 years 3 months ago #42344 by eastkilla
Hello ggppdk,

Not really, I want to create articles like in photo :

I'm going to speak french, I think you understand, its easuer for me :)

Par exemple, je souhaite créer des fiches de films.

Pour cela, dans chaque fiche, il y aurait des onglets présentation, photos, bandes annonces, contenu, etc.

Il faudrait que lors de la création de chaque fiche, je remplisse les champs et qu'automatiquement du côté du site, cela se présente sous forme d'onglets.

Il existe la solution des tabs, mais je souhaiterais le faire avec un menu plutôt.

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

More
12 years 3 months ago #42345 by ggppdk
Hello

-- All FLEXIcontent has 2 layouts
a. item layout (for single items)
b. category layout (for item lists)

-- your 'article' content type is using by default the 'default' template which has an item layout with TABs

-- in fact the item layouts of templates:
default, faq, presentation
have 2 TAB sets

...so just go to FLEXIcontent template manager edit the item layout of 'default' template and then drag and drop your fields into the tabs


-- 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
12 years 3 months ago #42346 by eastkilla
Wow you are a pro !!! Thanks a lot !

I have just one problem : I use Jcomments.

And my comments are displayed under every tabs. I would like to dispaly my comments only on specific tab.

Do you think it's possible ?

On the photo, I show you my problem. Comments are displayed under TAB 01 - TAB 02 - TAB 03 ...

I tried with Jcomments and with Komento, same issue.

Thanks !

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

More
12 years 3 months ago #42347 by micker
la il vas te falloire editer ton teplate a la mains
deplacer la boucle <-- bof comment --> dans la boucle de tes tabs (item.php de ton template)

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 3 months ago #42357 by eastkilla
Bonjour micker,

En résumé, il faut savoir coder ? :( N'ayant aucune connaissance à ce niveau, est-ce que tu pourrais m'indiquer quel fichier exactement il faut modifier ?

Merci par avance.

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

More
12 years 3 months ago #42358 by micker
deja tu as pris quel template ?
l'as tu dupliquer ? ;)

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 3 months ago #42365 by eastkilla
J'ai pris le template par defaut, dupliqué.

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

More
12 years 3 months ago #42369 by ggppdk
Hello

duplicate desired FLEXIcontent template 'default' to be 'default_bb' or something,
1. the go and edit file
components/com_flexicontent/templates/default_bb/item.php

2. inside it you see a comment asking you to copy code from a file,
just do that and copy modular.php inside item.php


3.
Find (There are 2 of these because there are 2 tabsets, you would want to edit the second one):
Code:
</div> <!-- tab end --> <?php endif; ?> <?php endfor; ?>
after the above add:
Code:
<?php if ($this->params->get('comments') && !JRequest::getVar('print')) : ?> <!-- tab start --> <div id="<?php echo $tab_id; ?>" class="tabbertab"> <h3 class="tabberheading"><?php echo $tabpos_label; ?></h3><!-- tab title --> <!-- BOF comments --> <div class="comments group"> <?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($item->id, 'com_flexicontent', $this->escape($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($item->id, 'com_flexicontent'); endif; endif; ?> </div> <!-- BOF comments --> </div> <!-- tab end --> <?php endif; ?>


and at bottom remove the comments code so that you do not have this twice:
Code:
<?php if ($this->params->get('comments') && !JRequest::getVar('print')) : ?> <!-- BOF comments --> .... <!-- BOF comments --> <?php endif; ?>


NOTE: you must add at lease 1 field to the tabset so that it get created

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

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

Moderators: vistamediajoomlacornerggppdk
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
Save