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 »
  • Bakery 1.60: Product Brief Description: Line Break[solved]
  • Print
Pages: [1]   Go Down

Author Topic: Bakery 1.60: Product Brief Description: Line Break[solved]  (Read 6384 times)

Offline gearup

  • Posts: 82
Bakery 1.60: Product Brief Description: Line Break[solved]
« on: October 08, 2012, 08:57:02 PM »
Hi,

I am trying to finsd a way of inserting a line break into this field but whatever I have tried so far seems to have been ignored.

For example, if I enter in this field,

Pack Size: Capsules x 20
You Save: 20.55€

on the webpage this is displayed as,

          <product name>
Pack Size: Capsules x 20 You Save:
                 20.55€
               <stock ...>

instead of,

     <product name>
Pack Size: Capsules x 20
    You Save: 20.55€
        <stock ...>

Does anyone know how to control the text in this field to get a line feed function when the text is displayed?

Regards,
« Last Edit: October 09, 2012, 06:17:02 AM by gearup »
Logged
Tomorrow is a day we can look forward to but will never see.

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Bakery 1.60: Product Brief Description: Line Break
« Reply #1 on: October 08, 2012, 10:58:28 PM »
A line-break is ignored in HTML. To work, it should be translated to a <br/>.
PHP has a special function for that, but it will mean you need to modify your bakery filoes to get that working.

You could make a workaround by using droplets.

Create a  droplet, call it "br".
For the droplet content use:
   return '<br />';

In the bakery fields you now can use [[br]] to generate a linebreak.

I could think of other solutions (like translating something like || to a <br/> ), but this would be the most simple solution.
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

jacobi22

  • Guest
Re: Bakery 1.60: Product Brief Description: Line Break
« Reply #2 on: October 09, 2012, 12:20:38 AM »
sorry, i'm german ;-)

is brief description the short description?

if so, have you tried to use a wysiwyg-Editor for this?
with wysiwyg its no problem to style your short description (and line breaks too)

here is a german HOW-TO, but its easy to understand

https://forum.WebsiteBaker.org/index.php/topic,22322.0.html
Logged

Offline gearup

  • Posts: 82
Re: Bakery 1.60: Product Brief Description: Line Break[solved]
« Reply #3 on: October 09, 2012, 06:16:12 AM »
Hi,

Thanks Ruud for your suggestion, it would have been interesting to try as I have not used droplets yet. I tried to use one before but did not understand how to get it to work, I put this learning in the tray for later.

Jacobi22, your linked solution works fine and is implemented, see image, thanks.

Using a WYSIWYG editor for this field seems a good choice, maybe it could be added to Bakery as standard?

Regards,
Logged
Tomorrow is a day we can look forward to but will never see.

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Bakery 1.60: Product Brief Description: Line Break[solved]
 

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