comments position

More
12 years 7 months ago #37387 by days of summer
Replied by days of summer on topic comments position
i mean in the default template
the item.php code is
Code:
<?php // Modular item layout // If customizing via CSS rules or JS scripts is not enough, then please copy the following file here to customize the HTML too include(JPATH_SITE.DS.'components'.DS.'com_flexicontent'.DS.'tmpl_common'.DS.'item_layouts'.DS.'modular.php'); ?>


what is the code should i add here to have a new field position ?

in the faq you say

4. Edit item.php to get fields of mytable position and add a LOOP to display the fields,
NOTE: you can copy-paste an existing position and alter it.


what i want is that code to show the new field position

please copy it for me here
thanks

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

More
12 years 7 months ago #37388 by micker
Replied by micker on topic comments position
please read more tutorial and faq ..
www.flexicontent.org/documentati ... late-.html
www.flexicontent.org/documentati ... cture.html
1 add your-position on item.xml
Code:
<fieldgroups> <group>your_position</group>
2 add the code position in item/php
you can see code
Code:
<!-- BOF your_position --> <div id="your_position"> <?php if (isset($this->item->positions['your_position'])) : ?> <?php foreach ($this->item->positions['your_position'] as $champ) : ?> <div class="champ_<?php echo $champ->name; ?>"> <?php if ($champ->label) : ?> <div class="etiquette"><?php echo $champ->label; ?></div> <?php endif; ?> <div class="valeur"><?php echo $champ->display; ?></div> </div> <?php endforeach; ?> <?php endif; ?> </div> <!-- EOF your_position -->
why you didn't use default template like blog ?
duplicate it and studie and modify
regards

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 7 months ago #37390 by ggppdk
Replied by ggppdk on topic comments position
Hello,

i think this is what you need to do:


1. you create a custom template and copy the code as the message says.
(Just, note when you create a custom template it is your responsibility to shape HTML / CSS)

2. inside there , locate and MOVE the comments code:
<?php if ($this->params->get('comments') ...
...
<?php endif; ?>

-- You do not need and must not create a new template position for moving the comments

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.

More
12 years 7 months ago #37403 by days of summer
Replied by days of summer on topic comments position
thank you very much ggppdk and micker for helping me :)

it is solved :)

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