0
Hi, great component but have one problem that I am not sure how to solve.
I have a menu linked directly to the all album picture view page, how can I put them in order by year and month created. I am thinking it is to do with this line but do not want to mess anything up as I am still new to code.
ORDER BY f.order_num,f.id,year,month ';
Many thanks
I have a menu linked directly to the all album picture view page, how can I put them in order by year and month created. I am thinking it is to do with this line but do not want to mess anything up as I am still new to code.
ORDER BY f.order_num,f.id,year,month ';
Many thanks
Responses (8)
-
Accepted Answer
-
Accepted Answer
0Sorry for the bad explanation, probably easier to just give you the link. At the moment the albums are showing in order of upload, is it possible to change the order to that of the album date created with latest album in first position…..many thanks
http://markhandley.rocks/index.php?option=com_muscol&view=artists&layout=detailed&Itemid=319 -
Accepted Answer
-
Accepted Answer
0Can I please get a little help sorting this out as I am still very new to code, I am building the site for a friend and we are trying to get it finished by the weekend.
If you are too busy to help could you please at least show us how to get the latest album uploaded into first position and oldest uploaded into last position. At least that way we can re-upload in correct order.
Many thanks
Just in case you can help... line 118
function getRelated(){
if (empty( $this->_related )) {
//busquem primer els related creuats
$query = ' SELECT id '.
' FROM #__muscol_artists '.
' WHERE related LIKE "%,'.$this->_data->id.',%"'.
' OR related LIKE "'.$this->_data->id.',%"'.
' OR related LIKE "%,'.$this->_data->id.'"'.
' OR related LIKE "'.$this->_data->id.'"'
;
$this->_db->setQuery( $query );
$cross_related = $this->_db->loadResultArray();
$related = explode(",",$this->_data->related);
if($related[0] == "") $related = array();
for($i = 0; $i < count($cross_related); $i++){
$related[] = $cross_related[$i];
}
$related = array_unique($related);
//print_r($related);die();
$array_related = array();
foreach($related as $index => $valor){
$query = ' SELECT id,artist_name '.
' FROM #__muscol_artists '.
' WHERE id = '.$valor.
' LIMIT 1 ';
$this->_db->setQuery( $query );
$array_related[] = $this->_db->loadObject();
}
$this->_related = $array_related;
$this->_related_ids = $related;
}
return $this->_related; -
Accepted Answer
-
Accepted Answer
0Ok i found it and changed it to 'ORDER BY al.year DESC' this has done what was required, but is this the correct way?
Many thanks-
Germinal Campsmore than a month agoyes :)
-
-
Accepted Answer
0mark handley, which plugin you are using to view youtube videos in articles?-
mark handleymore than a month agoHi, I use the Joomlathat module to view my whole channel and JCE editor media plugin for videos in articles.
-
Your Reply

Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »