Hot answers tagged

3

If by "Goal difference" you mean {goals_scored} - {goals_against}, you gonna have to write a custom query. With the Channel Module, the closer you can get is to sort both fields in different directions: {exp:channel:entries channel="ranking" orderby="points|goals_scored|goals_against" sort="desc|desc|asc"} {team} | {points} | {goals_scored} | {...


2

I see this is missing in the Low Search Store docs, but try this: orderby="store:price".


2

I've done similar before and ajax is your best bet rather then refresh or link to another page. Your home page = <h1>Home page<h1> <!-- Other channel calls --> {exp:channel:entries channel="your_channel"} {title} {/exp:channel:entries} <div id="news"> <select id="switch"> <!-- Use actual category ID values --> &...


1

Instead of sorting based on the contents of the TD, it would probably be better to set a data attribute to that TD and sort by that value. So instead of... <td>2 Authors<br>Joe Bloggs<br>Bloggsy Malone</td> You would want <td data-primary_author="Joe Bloggs">2 Authors<br>Joe Bloggs<br>Bloggsy Malone</td> ...


1

Stemwinder has fix the bug with URLs in 2.8.1 https://github.com/stemwinder/draggable


1

Another option if available in your build would be to use Stash. You could simply build a list containing the following for each ranking points team goals_scored goals_against goals_difference (which you could calculate using something like mx calculator You could then use multiple orders and sorts (amongst which the goals difference) when using {exp:stash:...


1

Not by any EE settings, however you could do this by injecting some javascript to click the Title column on page load. Install the CP CSS & JS add-on and add the snippet below: // Check to see if element exists first, then click if ($('th[data-table_column="title"]').length > 0) { $('th[data-table_column="title"]').click(); }


Only top voted, non community-wiki answers of a minimum length are eligible