Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 11:52:14 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155556 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Arrange products in Bakery by dragging.  (Read 220 times)
Frankkuin

Offline Offline

Posts: 8


« on: February 03, 2012, 04:46:35 PM »

Is there a possibility to arrrange the products on a Bakery page by dragging a product tot the top (as in the page window). Or is there a possibility to arrange the products automaticly by newest added products on top.
Logged
jacobi22
Betatester
*
Offline Offline

Posts: 1376


WWW
« Reply #1 on: February 03, 2012, 05:40:01 PM »

Quote
Or is there a possibility to arrange the products automaticly by newest added products on top.

Look at this Code in view-summary.php

Code:
// Query items (for this page)
$query_items = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_bakery_items WHERE section_id = '$section_id' AND active = '1' AND title != '' ORDER BY position ASC".$limit_sql);
$num_items = $query_items->numRows();

and change the Order from ORDER BY position ASC
to
ORDER BY item_id DESC
Logged

LG Uwe

Wer sagt, Reichtum ist alles, hat nie ein Kind lächeln gesehen.
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #2 on: February 03, 2012, 05:47:21 PM »

Hello,

this patch may help you, but the thread is in german only:
http://www.websitebaker2.org/forum/index.php?topic=20267.0

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
sky writer

Offline Offline

Posts: 285



« Reply #3 on: February 03, 2012, 09:17:09 PM »

English Translation:
http://www.websitebaker2.org/forum/index.php/topic,21023.msg143863.html#msg143863
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #4 on: February 04, 2012, 12:00:50 AM »

Right, James. I already forgot about your translation.
I put the link on the top of the original thread now.
Thank you again.

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!