ordre d'affichage item-categorie chiffres apres les lettres

More
12 years 5 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
12 years 5 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
12 years 5 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...

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

More
12 years 5 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.

More
11 years 7 months ago #35222 by tonnick
Hello !

Sorry to came back with this post, but I migrated with latest flexicontent version (FLEXIcontent version 2.0.1 (r1659)) but since then, I cannot make same effect. I guess that modification has been changed :/

would you help me in this new version ? thx !

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

More
11 years 7 months ago #35233 by ggppdk
Hello,

it should work,

what about the hack does not work?

1. the option is not respected in frontend ordering
2. the option is not show in category edit form
3. the option does not show to frontend user to select it ?you want this to


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

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