Text in slimbox

Phoca Gallery - image gallery extension
vickyml
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 24 Jan 2013, 21:33

Text in slimbox

Post by vickyml »

I'm using slimbox for displaying images in my gallery.
The problem is that , title and description appear in the same line, and there is no line breaks.
For example now appear by this way:
Arbol de la Metamorfósis - 27 x 10 x 10 cm24 x 12 x 14 cm22 x 10 x 23 cm31 x 15 x 20 cm Base 208 cm

And i wish it was:
Arbol de la Metamorfosis
27 x 10 x 10 cm
24 x 12 x 14cm
22 x 10 x 23cm
31 x 15 x 20cm
Base 208 cm


why is that?
Thank you
Vicky Moreno
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Text in slimbox

Post by Jan »

Hi, in javascript window the html formating was striped so such needs to be customized (see the used detail window javascript and customize it to display title or description in html format :idea: )

Some of them should display the html :idea:

Jan
If you find Phoca extensions useful, please support the project
vickyml
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 24 Jan 2013, 21:33

Re: Text in slimbox

Post by vickyml »

Sorry, but i don´t understand you. How i customize the html format. In detail window javascript there is no option, only select if you want to show title and the way to show description. If select standar , the description appear, if select lightbox , title and description hide it.
i don´t know how to solve this.
Thanks for your help.
Vicky
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Text in slimbox

Post by Jan »

Hi, customized means, that you will modify the javascript code directly, not to set some option somehwere in the settings :idea:

Jan
If you find Phoca extensions useful, please support the project
vickyml
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 24 Jan 2013, 21:33

Re: Text in slimbox

Post by vickyml »

Hi Jan,
Sorry for the delay,
I´m afraid i don´t know too much about javascript. The file i have change is components/com_phocagallery/assets/js/slimbox/slimbox.js ?
Here i only see this part

Code: Select all

A=new Element("div",{id:"lbCaption"})
That i understand is to create the div that show title and description and later

Code: Select all

A.set("html",g[G][1]||"");
That i´m not sure whats the meaning, but include title and description all together, and i want to do linebreaks.
And if is posible separate title ans description.
Can you guide me with this? :idea:
Thank you

Vicky
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Text in slimbox

Post by Jan »

Hi, unfortunatelly I am not javascript expert too, so cannot give any advice regarding javascript :-(

Jan
If you find Phoca extensions useful, please support the project
Post Reply