RSS
Home
Welcome, Guest
Please Login or Register.    Lost Password?

Image Sector
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Image Sector
#1014
Image Sector 2 Years, 2 Months ago Karma: 0
What are the usage of "Image Sector" in MyPanel>property modified>images?

I don't understand...
alberth
Senior Boarder
Posts: 45
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1026
Re:Image Sector 2 Years, 2 Months ago Karma: 59
you can use for show in details sector for this image

image_sector_1

in language add

IMAGE_SECTOR_1=Bedroom
IMAGE_SECTOR_2=Bathroom
.....
administrator
Admin
Posts: 544
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1076
Re:Image Sector 2 Years, 2 Months ago Karma: 0
Done, but nothing change...
stil remains image_sector_1 image_sector_2 and so on.

Where in front end it will be displayed "image_sector_1..2.."?
I can't see nothing about this in list properties nor in details property.

Sorry
alberth
Senior Boarder
Posts: 45
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1081
Re:Image Sector 2 Years, 2 Months ago Karma: 59
in templates/detail.php

line 514


foreach($this->ImagesProduct as $image){

after add

if($image->sector){echo JText::_('image_sector_'.$image->sector); }

//and for image description

if($image->text){echo $image->text); }
administrator
Admin
Posts: 544
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1193
Re:Image Sector 2 Years, 2 Months ago Karma: 0
Hi have added in lnaguage file
IMAGE_SECTOR_1=Bedroom an so on,
but
in Views\Panel\Tmpl\default_images.php still remains the select menu with
"image_sector"
"image_sector_1"
...........


And after adding in templates/detail.php

foreach($this->ImagesProduct as $image){

after add

if($image->sector){echo JText::_('image_sector_'.$image->sector); }

//and for image description

if($image->text){echo $image->text); }

I obtain only a blank page with no explicit errors.
alberth
Senior Boarder
Posts: 45
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1209
Re:Image Sector 2 Years, 2 Months ago Karma: 0
SOLVED. Tanks admin!

in Views\Panel\Tmpl\default_images.php

line 136 modified from this:
$sectors[] = JHTML::_('select.option', $x, 'image_sector_'.$x );

to this:
$sectors[] = JHTML::_('select.option', $x, JText::_('image_sector_'.$x) );

Now the IMAGE_SECTOR_1=Bedroom IMAGE_SECTOR_2=Bathroom....in language file take effect.
=================
In templates/detail.php
I add
if($image->sector){echo JText::_('image_sector_'.$image->sector); }
in line 490 after
$ThumbsInAccordionShowing++;

Original block code is:
<?php

$rout_image = 'images/properties/images/'.$Product->id.'/';
$rout_thumb = 'images/properties/images/thumbs/'.$Product->id.'/';
foreach($this->ImagesProduct as $image){
if(JFile::exists($image->path)){
$ThumbsInAccordionShowing++;

?>

MODIFIED is
<?php

$rout_image = 'images/properties/images/'.$Product->id.'/';
$rout_thumb = 'images/properties/images/thumbs/'.$Product->id.'/';
foreach($this->ImagesProduct as $image){
if(JFile::exists($image->path)){
$ThumbsInAccordionShowing++;

if($image->sector){echo JText::_('image_sector_'.$image->sector); }
if($image->text){echo $image->text); }
?>
alberth
Senior Boarder
Posts: 45
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1241
Re:Image Sector 2 Years, 2 Months ago Karma: 0
It works, but what is it good?
Then it is not shown anywhere
charlie2806
My English is poor
Junior Boarder
Posts: 23
graphgraph
User Offline Click here to see the profile of this user
Gender: Male karel.eger@gmail.com Location: Czech republic
The administrator has disabled public write access.
 
#2797
Re:Image Sector 1 Year, 11 Months ago Karma: 0
Hello,
I want to remove image sector list from the Image details page but when after removing the image selector drop-down I am not able to save the description though I want to save the description without Image sector. Please help
samiksha3108@gmail.com
Junior Boarder
Posts: 23
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1