ordre d'affichage item-categorie chiffres apres les lettres

More
13 years 7 months ago #25957 by tonnick
Bonjour,

Dans l'affichage des items de ma categorie, les items commencant par des chiffres s'affichent en premier puis les textes en ordre alphabetique..

Hors, je souhaiterai qu'ils s'affichent en dernier.

c'est à dire :
Item 1
Item 2
Item 2
1 Item
2 Item
etc
Y a t il des options a modifier ? un code a modifier pour cela ?

merci !

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

More
13 years 7 months ago #25975 by ggppdk
Ordering is done by SQL Query with is then limited to e.g. 10 to get 10 items per category page.

So what you ask is not trivial

1. Maybe it is possible to do something via hacking he SQL query of category view to create a TEXT manipulated column of category title and then order by it

2. Another alternative is to hack FLEXIcontent code extensively to retrieve ALL category items, do custom ordering in PHP , and then implement some custom category pagination

Number 2, i strongly discourage to DO,

About number 1, you could ask a freelancer MySQL developer

Best 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
13 years 7 months ago #25977 by tonnick
ok I'll try first option. On which file did you put the queries in order to try to modify it ?

thx

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

More
13 years 7 months ago #25978 by ggppdk
Please note that we discourage hacking flexicontent core code, as you will have difficulties upgrading, since you will have to reapply your customizations

The file to change is the frontend category model (Joomla architecture)

components/com_flexicontent/models/category.php


-- 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
13 years 7 months ago #25979 by tonnick
queries are on category.php ?

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

More
13 years 7 months ago #25980 by ggppdk
yes


-- 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
13 years 7 months ago #25981 by tonnick
ok great I'll try to do something ! thx

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

More
13 years 7 months ago #26151 by tonnick
ok maybe let's imagine something different.

Would it be possible to order by alias instead of title ? So I could user different Alias from title to put at the end the titles beginning by numbers.

code would be easier to change and udpate as well.

what do you think about it ?

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

More
13 years 7 months ago #26153 by ggppdk
I don't recommend hacking code but if it is important to you could do add the code inside the [ADD]...[/ADD]:

in components/com_flexicontent/models/category.php
Code:
function _buildItemOrderBy() { ... switch ($order) { case 'date' : $filter_order = 'i.created'; $filter_order_dir = 'ASC'; break; [ADD] case 'alias' : $filter_order = 'i.alias'; $filter_order_dir = 'ASC'; break;[/ADD]

in administrator/components/com_flexicontent/models/category.xml
Code:
<param name="orderby" type="list" default="" label="FLEXI_PRIMARY_ORDER" description="FLEXI_PRIMARY_ORDER_DESC"> <option value="">FLEXI_ORDER_DEFAUKT</option> [ADD] <option value="alias">Alias</option>[/ADD]

Did not test should work (of course remove [ADD] [/ADD])
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
13 years 7 months ago #26157 by tonnick
Yes I understand that I'll have to take care for any update to re custom the component, but as my template is already a custom one... a little bit more... :)

thx for your help !

flexicontent is really a great tool

f.

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