Joomla CCK Seblod: Adding a Media field with 'alt' and 'title' attribute - image

I am working with Joomla 2.5.16 and use the CCK extension SEBLOD (3.1.5). I have created a content type with an admin form and added the fields to the content. My form includes four images, which are of the build-in type Media.
When I create a new article of my content type, then I select the four images from the media manager and they appear at the correct position of the seb_one template. However I also get the following error:
Notice: Undefined property: stdClass::$image_title in
/var/www/../plugins/cck_field_typo/image/image.php on line 70
Notice: Undefined property: stdClass::$image_alt in
/var/www/../plugins/cck_field_typo/image/image.php on line 71
In the referenced file there is the following code:
$img_title = $field->image_title;
$img_description = $field->image_alt;
When I dump the $field variable I can see that there are no fields named ["image_title"] and ["image_alt"]. I have commented out the respective lines for now in the plugin, but I would prefer to find a solution where I can let the user choose an image title and alt description.
If I understand this correctly by default there is no way to enter these fields through the media manager. When I insert an image in a regular article, then I have to the the alt attribute through the WYSIWYG editor. Similarly I am guessing, that there has to be some way to configure SEBLOD such that I can ask the user for an image title and alt description.
Here is how I have configured the Field in Seblod:
Under typography I have selected Image
Here is how the field looks like when I create a new article of my content type:
If I click on select there is no field to set the title or alt description:
On the other hand, when I edit a default article type and I click on "Add Image" then the same modal window for choosing an image opens, but it has fields to enter the title and alt description:
My question is, what options exist to connect the title and alt attributes for the image using SEBLOD. Is this a configuration problem or a bug in SEBLOD?

The latest version of SEBLOD fixes the error message that you get, however, the JFormMedia field in SEBLOD does not currently manage the title and description attached to images. Instead, for that you can use the SEBLOD Image Upload field which allows you to attach a title and a description to an image.

Related

Orchard CMS - Blog Post Featured Image

I've read the various questions regarding this but couldn't not make any any progress. I'm new to Orchard so maybe I'm doing something incorrectly.
The goal is to show a "featured" image for each post in the Blog Home Page (Summary).
The first thing I did was to add a new content type for Image Gallery, following the directions at the link: http://docs.orchardproject.net/Documentation/Creating-an-image-gallery
Then I edited the Blog Post Content Definition, adding the new content type Media Library Picker Field that I created in step 1.
Now on each post there is the ability to Add a new Image.
Now I want that selected image to show up on the Blog Summary view & in the individual Blog Post view.
I followed the direction at the link below, by adding the new element - to the placement info file in my theme.
Image not appearing from a Content Part with a Media Picker Field
Still no luck...what I am missing here???
Thanks for the input
Just add a MediaLibraryPickerField directly to the BlogPost Content Type. That's it.
You don't need anything else (no "Image Gallery Content Type" - that would indeed be another Content Type).
The Display Name for the field can be "Featured Image".
The MediaLibraryPickerField can be configured to not allow multiple content items (allow only one).
placement.info will allow you to decide where you want the field to show, and you already know.
Shape Alternates will allow you to modify the "template", for both Summary and Detail views, if needed.

Joomla Remove GET PRO version for $37

I have problem with joomla . In article page there is an image named GET PRO version for $37 . How to remove this.
In components\com_content\views\article\tmpl\default.php , a variable name $this->item->text;. When Remove this variable the picture and content also removed. How to remove this image only.
Login to /administrator.
Select Content->Article Manager. You will see a list of articles similar to this:
Find the article you want, click on it's name in the list, this will open up the editor, and look similar to this:
Click on the offending image, and press delete
Click on one of the "Save" buttons to save your changes, they're in the toolbar in the top right:
use preg_match code
preg_match('/(<img[^>]+>)/i',$this->item->text, $matches);
After use this code easily remove the image tag form article

image display in drupal

i would like to create an image gallery on my homepage in drupal. Each image will have been uploaded by the user, and, as i understand it, will be saved in some image directory folder in drupal. My question concerns a recent tip i picked up in response to the general debate whether or not it is good to store images as blob in mysql. The tip was to store the filenames of the images in mysql so you can essentially still sort the files. I was wondering whether this would be possible even if the files url is in drupal so to speak. It should be possible shouldn't it? I new to programming you see and want to the images on my homepage to be periodically refreshed according to a define sorting function. I would greatly appreciate any response to this question. Cheers.
You can using content types and views module for create gallery in Drupal 7.
First create new content type with gallery name(admin/structure/types/add).
Then add a image field to gallery content type and save it.
If you want have thumbnail of image you should create a image style. for example create a image style with thumbnail_custom name and add suitable effect(admin/config/media/image-styles/add). You will use of this image style in views in the next step.
Then create a new view with gallery-view name. uncheck create a page, check create a block, enter block title and item per page you want(admin/structure/views/add).
In Filter criteria from block details add content type gallery.
In Fields add Content image that appears in node:gallery and select and select thumbnail_custom for image style option.
Save view.
This view block appears in Blocks section and you select region for it.
If you want this block appears only in the front page, in configuration of this block in the section pages of visibility settings check "Only the listed pages" option and then enter "<front>" phrase in textarea.

How to add descriptions under uploaded images

I have created an image field in a content-type called "Products", but there is no description box option as it is shown in a file field. Is there any ways to add product descriptions under every product photos?
I know this isn't the optimal solution, but you could use field_collection to achive this.
Install the module and then add a new field of type field_collection to your content-type, then under admin/structure/field-collections you can add both an image and a textarea field. Now you should have the ability to add an image and a corresponding description to your node.
Try the Image Field Caption module for Drupal 7.
It adds an extra text area to image fields. It is similar to the alt/title text fields already available with an image field, except it is a text area that accepts long string or html content.
Download the module
Enable the module
Add a content type with an image field, or use an existing content type with an image field
Add or edit a node with an image field
Enter text or html into the image field caption text area
Save the node and view it to see the caption displayed below the image field
To override the way the caption is displayed, take a copy of the image_field_caption.tpl.php file and place it in your theme's directory, for example:
sites/all/themes/MY_THEME/image_field_caption.tpl.php
Now modify the html to meet your needs.
This has been identified as an issue - the integration of imagefield into core from D6 to D7 saw the unfortunate loss of the option for a description field in addition to alt and title.
Try this patch:
http://drupal.org/node/1067620#comment-5958190

Drupal gallery with thumbnail made of first picture

I have drupal6,cck,views,imagecache.
category_type gallery contain a CCK node reference to a category_type images
and In this Images there is a cck file (image) field.
I know how to create a view which will display a list of galleries.
BUT question is .. HOW can I display a list of galleries with a THUMBNAIL that is made of first image available inside that gallery.
And I don't want to add a extra field for gallery (in category_type) like "preview pic"
Just want then to be displayed by reference.
Example:
If I create a gallery with one picture inside... I want this picture to be my gallery thumbnail.
If I create a gallery without image, there will be no thumbnail ... or default "notavailable" picture.
IF I create a galleyr with many images / remove them /etc.. wanna make sure that first available picture in gallery is gonna be it's thumbnail.
please help ;)
You might be able to do this in a view, but if you want even your basic gallery node to show an image from one of the child nodes you could do something like this in a file called node-gallery.tpl.php where gallery is the content type machine name:
// load the node reference
if ($child = node_load($node->field_nr_child[0]['nid'])):
// ... and just print the image from that child node
print $child->field_image[0]['view'];
endif;
You could also randomize which child you show or show only the most recent child with some foreach fun. You might want to override where the content is displayed so you have more control over formatting but this should get you started.
You can also check out this great screencast I just found looking for something else. I think it does exactly what you want without the custom code: http://www.lullabot.com/articles/photo-galleries-views-attach
In CCK image field you must set Default Image ("notavailable" picture).
After this you can:
1. theme node as Jeremy Heslop sayd - node theming;
2. if you make views of Gallery by row style="Fields', then click link on Theme:Information, select appropriate theming file, add it to theme folder, and theme one field (for example, Title) changing it to thumbnailed and linked image (taked from referenced "Images");
3. In Views add Relationships, that will connect "Gallery" with "Images", and show 1 image in field.

Resources