title field...

Phoca Gallery - image gallery extension
HosHi
Phoca Member
Phoca Member
Posts: 21
Joined: 06 Jun 2008, 23:07
Location: Dessau/Germany
Contact:

title field...

Post by HosHi »

can I change the field "title" as the change which, if it exists, description of this picture as a title?

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

Re: title field...

Post by Jan »

Hi, no there is no such option, this must be customized in the code :(
If you find Phoca extensions useful, please support the project
HosHi
Phoca Member
Phoca Member
Posts: 21
Joined: 06 Jun 2008, 23:07
Location: Dessau/Germany
Contact:

Re: title field...

Post by HosHi »

I have it solved in part. How can I get away <p> and </p>? He even gets so
from the DB. Maybe a little tip ...? Thank you in advance.

Image

code from default.php components/com_phocagallery/views/category/tmpl/ in line 102:

Code: Select all

//									echo ' title="'. $value->description .'"'; (dummy)
//									echo ' title="zum Vergr&ouml;&szlig;ern anklicken"'; (dummy)
									echo ' title="'. $this->category->title.' (Bild '. $value->ordering.') - '.PhocaGalleryText::wordDelete($value->description, $this->tmpl['charlengthimgdesc'], '...').'"';
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: title field...

Post by Jan »

Hi, if this is a descritpiton, then this needs to be removed in editor (switching to html part)

Jan
If you find Phoca extensions useful, please support the project
HosHi
Phoca Member
Phoca Member
Posts: 21
Joined: 06 Jun 2008, 23:07
Location: Dessau/Germany
Contact:

Re: title field...

Post by HosHi »

I have it. Thanks for the idea of offense. :| :twisted:
Image

original line 102:

Code: Select all

echo ' title="'. $value->title.'"';
new line 102:

Code: Select all

echo ' title="Galerie: '. $this->category->title.'&#10;&#13;&#10;&#13;Bild: '. $value->ordering.'&#10;&#13;&#10;&#13;Beschreibung:&#10;&#13;'.PhocaGalleryText::wordDelete($value->description, $this->tmpl['charlengthimgdesc'], '...').'"';
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: title field...

Post by Jan »

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