Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Little help with sorting in 'contentarray' particle #1754

Closed
ghost opened this issue Dec 15, 2016 · 2 comments
Closed

Little help with sorting in 'contentarray' particle #1754

ghost opened this issue Dec 15, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 15, 2016

Hi,

I have quite unusual issue. I wanted to use a particle called contentarray. It is really great, but it has some inaccuracies. I want to display the feature articles, but they come mostly from several categories (let's say A, B and C). What can I do if I want to have articles from category A always on top?
When I add new article to B or C and I mark it as a feature, then Joomla automatically push everything from top to bottom. Why I want to do it? The main reason is that the articles from the category B and C are added frequently, so if someone comes to my website very rarely, he might never notice that article from A category was ever published at all!
Of course, I can just add another contentarray particle, but it will be the third on the home page, whilst my website has a lot of articles and I want to ensure my database the best optimization.
If I can't do it that way, does anyone recommend any other solution?
Where can I find the files response for this module?
For now, I only found those:

administrator/components/com_gantry5/templates/forms/fields/joomla/categories.html.twig
libraries/gantry5/classes/Gantry/Joomla/Content/Content.php
libraries/gantry5/classes/Gantry/Joomla/Content/ContentFinder.php
libraries/gantry5/classes/Gantry/Joomla/Category/Category.php
libraries/gantry5/classes/Gantry/Joomla/Category/CategoryFinder.php
libraries/gantry5/classes/Gantry/Framework/Platform.php

Are there any more? (Especially, I'm looking for .twig and .yaml files)

Thank you in advance very much!

@mahagr
Copy link
Member

mahagr commented Dec 19, 2016

There's also this: http://docs.gantry.org/gantry5/advanced/content-in-particles

Advanced sorting doesn't work right now; you can only sort by a single field.

@mahagr
Copy link
Member

mahagr commented Jan 24, 2017

Closing due to inactivity.

@mahagr mahagr closed this as completed Jan 24, 2017
@mahagr mahagr added this to the 5.4.6 milestone Jan 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant