Tag et Ordre

More
13 years 19 hours ago #20642 by kim
Tag et Ordre was created by kim
Hello,

I added in tag page, a col with a field.
I would like to force the order by a field.

Is it possible?

I looked in the view, and in the html form code, but nothing work.
I think i don't look in the good place.

Kim.

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

More
13 years 9 hours ago #20649 by ggppdk
Replied by ggppdk on topic Tag et Ordre
We don't have option, if you really need it, you must hack the core file, read here:

www.flexicontent.org/forum/index ... pic#p20425

Also the above forum Thread says how to add more columns with a template override,

If the extra columns need to contain custom fields, then you can alter the template override file (default.php):

-- 1. At file top just after:
defined( '_JEXEC' ) or die( 'Restricted access' );
add:
Code:
//*************** BOF *************************// require_once(JPATH_SITE.DS."components/com_flexicontent/classes/flexicontent.helper.php"); require_once(JPATH_SITE.DS."components/com_flexicontent/models/items.php"); //*************** EOF *************************//

-- 2. Add e.g. add 2 table column headers (voting, hits) after:
<th id="fc_desc"><?php echo JText::_( 'FLEXI_DESCRIPTION' ); ?></th>
add:
Code:
<th id="fc_voting"><?php echo JText::_( 'Voting' ); ?></th> <th id="fc_hits"><?php echo JText::_( 'Hits' ); ?></th>

-- 3. Finally add the columns just before
Code:
</tr> <?php endforeach; ?> </tbody> </table>
add:
Code:
<?php //*************** BOF *************************// JRequest::setVar('id', $item->id); $itemmodel = new FlexicontentModelItems(); $fcitem = $itemmodel->getItem(); $item_link = JRoute::_(FlexicontentHelperRoute::getItemRoute($fcitem->slug, $fcitem->categoryslug)); FlexicontentFields::getFields(array($fcitem)); $voting = FlexicontentFields::getFieldDisplay($fcitem, 'voting'); $hits = FlexicontentFields::getFieldDisplay($fcitem, 'hits'); $created_by = FlexicontentFields::getFieldDisplay($fcitem, 'created_by'); $voting_label = $fcitem->onDemandFields['voting']->label; $hits_label = $fcitem->onDemandFields['hits']->label; $created_by_label = $fcitem->onDemandFields['created_by']->label; ?> <?php if (!$fcitem->onDemandFields['voting']->noaccess) : ?> <td><?php echo $voting; ?></td> <?php endif; ?> <?php if (!$fcitem->onDemandFields['hits']->noaccess) : ?> <td><?php echo $hits; ?></td> <?php endif; ?> <?php //*************** EOF *************************// ?>


-- 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.

More
13 years 2 hours ago #20651 by kim
Replied by kim on topic Tag et Ordre
It's not my question, but thanks...
To add a col with field, it's not a problem.

I would like to order the col of my field in order alphabetical.

I send you a link, i think you understand better.

Regards.

Kim.

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

More
13 years 41 minutes ago #20660 by ggppdk
Replied by ggppdk on topic Tag et Ordre
The tags are already ordered alphabetically by title,

You want to order by what?


-- 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.

More
13 years 19 minutes ago #20663 by kim
Replied by kim on topic Tag et Ordre
By my field "rang" the number on the right column.

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

More
12 years 11 months ago #20744 by kim
Replied by kim on topic Tag et Ordre
Hello ggppdk,

I very disappointed, i copied the files who are in the code.google.

I tried different field, but the ordering does'nt work.
I can order by the primary order, but nothing with Order with custom field.

I tried to change
require_once(JPATH_SITE.DS."components/com_flexicontent/models/items.php");
by
require_once(JPATH_SITE.DS."components/com_flexicontent/models/tags.php");

But i had, a bizarrely display...

I must change something in tags/tmpl/default.php
I missed something?

Kim.

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

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