WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Arrange products in Bakery by dragging.
  • Print
Pages: [1]   Go Down

Author Topic: Arrange products in Bakery by dragging.  (Read 4792 times)

Offline Frankkuin

  • Posts: 49
Arrange products in Bakery by dragging.
« 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

  • Guest
Re: Arrange products in Bakery by dragging.
« 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: [Select]
// 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

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: Arrange products in Bakery by dragging.
« Reply #2 on: February 03, 2012, 05:47:21 PM »
Hello,

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

Regards,
Stefek
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline sky writer

  • Posts: 926
Re: Arrange products in Bakery by dragging.
« Reply #3 on: February 03, 2012, 09:17:09 PM »
English Translation:
https://forum.WebsiteBaker.org/index.php/topic,21023.msg143863.html#msg143863
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: Arrange products in Bakery by dragging.
« 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
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Arrange products in Bakery by dragging.
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2