Remove anchor / link from surrounding image

More
12 years 9 months ago #22318 by inspireddevelopment
Hey guys.

i was wondering if theres a straight forward way to echo an image in the item template without an anchor around it? I'm hopeing to do this so that i can create a set of thumbnails that can be used as gallery navigation; to do this i need them to be clean images with no surrounding tags.

I saw this bit of code in the category_items template and tried to get it to work in the item view (i'm probably compeltely misunderstanding it but it literally says what i wanted to accomplish 'extractimagesrc').
Code:
$src = flexicontent_html::extractimagesrc($this->fields['image_field']->display); echo $src;

Is this a function i can use to do what i need to? I'm clearly using it wrong if it is..

I'm aware that i can disable the popup in the backend field options but i'd just need to rebuild the links for the final lightbox when you click on the main gallery image and overall i'm hoping for better control over the image output format would allow for much quicker customization of templates/gallery layouts.

Thanks for your time - Ant

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #22322 by ggppdk
I guess you speak of the image field plugin, so i edited the title of this thread.

I looked at the code and i can see in a glance that if you disable
-- legend
-- link to url
-- and popup

then you will have a plain image as output

Following that you can make the changes you need in the FLEXIcontent template file "category_items.php"

PS: I ll be away from forum for a couple of days to try to finish up RC3 (final version) or at least make a nightly build with almost all bugs fixed and a couple of new features i have finished and never tested , and also finish up v2.0 stuff. I might respond to some bug reports.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #22332 by inspireddevelopment
Hey, thanks for the reply, i'm not looking for a way to display the image in the category view, its in the item view i need to pull thru the field, its the standard image fields, not the minigallery, and i want to retain the popup functionality for all image fields, but i want to duplicate their content to make thumbnail navigation that isnt surrounded by a link. basically my markup needs to look something like this -
Code:
<div id="big_picture"> <ul id="slideshow"> <li>[url=big_image_link.php" rel="lightbox]<img src="medium_pic_1" />[/url]</li> <li>[url=big_image_link.php" rel="lightbox]<img src="medium_pic_2" />[/url]</li> <li>[url=big_image_link.php" rel="lightbox]<img src="medium_pic_3" />[/url]</li> </ul> </div> <div id="thumbnail_nav"> <ul id="buttons"> <li><span><img src="thumbnail_1" /></span></li> <li><span><img src="thumbnail_2" /></span></li> <li><span><img src="thumbnail_3" /></span></li> </ul> </div>

So i would create the slideshow UL with the standard image fields creating sliding medium size images that are clickable to create a lightbox.

I'm having problems generating the buttons UL list... so i was hoping to use some sort of fitler to echo the field without an anchor surrounding it..

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #22334 by ggppdk
You will have then to duplicate the image field.

Just copy it (it is joomla plugin) and carefully change all filenames and class names to match the name of the new field.

Then edit your new field to customize it as needed.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.367 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline