I look at Media 1 year ago and now, but nothing has changed even (including version 2) with this to simple things.
Look at this:
Post on drupalgardens:
http://luk911.drupalgardens.com/content/hello-world
and the same post on wordpress:
http://luk911.wordpress.com/2011/11/07/hello-world/
You can build a spaceship with Drupal but we can't do simple things.
CMS or CMF is primarily a management articles. Insert a media in to content and beautiful design media content in artcle - is the main problem.
How about a teaser? If the Media + Wysiwyg - is not a field - we can't manage display in teaser ore in Views and we have:
http://luk911.drupalgardens.com/ - strange teaser in Drupal
and look good on wordpress:

Comments
Yes, you can build spaceships
Yes, you can build spaceships with Drupal... so, use it to build spaceships and not bikes... You should not use Drupal for every site. Although I am a Drupal developer for many years, and I find Drupal the best option in many cases, I strongly encourage using other CMS-es or tools if they fit better with your requirements. As I mentioned, if you go probably into a spaceship factory they will have some troubles in building you a bike. And, in the end, you will have a powerful bike probably, but with a lot of things that you will never use. With a bit of configuration, all the issues that you mentioned in your comment can be implemented in Drupal, but out of the box probably Wordpress is faster in your examples.
So, I somehow agree with your post, but always have in mind that Drupal deals better with complex applications and not just simple, every-day blogs, wikis, forums, etc...
Vasi.
and you've seen a lot of
and you've seen a lot of sites without the article? any website of any complexity has articles and the normal clearance of the article should be available. I love Drupal and do not discuss its benefits. I just do not understand why such a complex technical module can not do simple things, and encourage developers to think about it.
Works out-of-the-box for me
Actually, the media module actually handles both of those conditions out of the box. From my own testing, it appears that Drupal Gardens is most likely using an old version of the module; media has properly handled floats entered in the WYSIWYG browser for quite some time now. Additionally, the teasers have displayed embedded media for at least 5 years in Drupal. What is the allowed teaser length allowed for your body field? I'm not going to spend any more time troubleshooting Drupal gardens; perhaps you can post a ticket on their support forum: http://www.drupalgardens.com/forum/support .
Aaron Winborn
Drupal Multimedia (my book, available now!)
AaronWinborn.com
Advomatic
ok not out of the box - can
ok not out of the box - can you show me some recipes for how to achieve this: Wysiwyg + Media float image (no manual editing of code every time ) in the text area, how link inserted image to original image with colorbox? how use inserted image in teaser, ore in Views ?
in latest dev float fix and
in latest dev float fix and can be use (help module http://drupal.org/project/float_filter) but now i must have two buttons one for insert and one from Wysiwyg image settings - it's difficult for enduser. Can i use Custom Formatters for it ? and where i can see some examples for it?
How to do in Drupal 7 without programming
How to do in Drupal 7 + wysiwyg and CKEditor without programming standard article with float inline 3-5 images. (Example
http://luk911.wordpress.com/2011/11/07/hello-world/ ). Images links are going to open colorbox with all article's images.
Teaser should be like
http://www.siteprebuilder.com/category/topic/development with the first image (float inline) from the article. Teaser image link is open the article.
Editor interface and aproach should be friendly to article writers with basic computer skills.
Requirements are nothing special for web articles on web sites.
I have module for parsing
I have module for parsing first image from body and use in views for teaser, but float is a problem so far ;(
Would you share the module
Would you share the module for parsing first image please?
module cod:1) file
module cod:
1) file views_img_media.module
/**
* @file
* This is the file description for Views img from Media module.
*
* In this more verbose, multi-line description, you can specify what this
* file does exactly. Make sure to wrap your documentation in column 78 so
* that the file can be displayed nicely in default-sized consoles.
*/
/**
* Implements hook_field_formatter_info().
*/
function views_img_media_field_formatter_info() {
return array(
'text_media' => array(
'label' => t('Text Media'),
'field types' => array('text', 'text_long', 'text_with_summary'),
'settings' => array('file_view_mode' => 'default'),
),
);
}
/**
* Implements hook_field_formatter_settings_form().
*/
function views_img_media_field_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state) {
$display = $instance['display'][$view_mode];
$settings = $display['settings'];
$element = array();
if ($display['type'] == 'text_media') {
$entity_info = entity_get_info('file');
$options = array('default' => t('Default'));
foreach ($entity_info['view modes'] as $file_view_mode => $file_view_mode_info) {
$options[$file_view_mode] = $file_view_mode_info['label'];
}
$element['file_view_mode'] = array(
'#title' => t('File view mode'),
'#type' => 'select',
'#default_value' => $settings['file_view_mode'],
'#options' => $options,
);
}
return $element;
}
/**
* Implements hook_field_formatter_settings_summary().
*/
function views_img_media_field_formatter_settings_summary($field, $instance, $view_mode) {
$display = $instance['display'][$view_mode];
$settings = $display['settings'];
$summary = '';
if ($display['type'] == 'text_media') {
$entity_info = entity_get_info('file');
$file_view_mode_label = isset($entity_info['view modes'][$settings['file_view_mode']]) ? $entity_info['view modes'][$settings['file_view_mode']]['label'] : t('Default');
$summary = t('File view mode: @view_mode', array('@view_mode' => $file_view_mode_label));
}
return $summary;
}
/**
* Implements hook_field_formatter_view().
*/
function views_img_media_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
$element = array();
$settings = $display['settings'];
switch ($display['type']) {
case 'text_media':
foreach ($items as $delta => $item) {
preg_match("/\[\[.*?]]/s", $item['value'], $matches);
if (!empty($matches)) {
$img = reset(reset(json_decode(reset($matches))));
$file = file_load($img->fid);
$element[$delta] = media_get_file_without_label($file, $settings['file_view_mode'], array());
}
}
break;
}
return $element;
}
2) file views_img_media.info
name = Views img from Media
description = "The description of this module"
; Core version (required)
core = 7.x
; Package name (see http://drupal.org/node/542202 for a list of names)
package = Views
; PHP version requirement (optional)
; php = 5.2
; Loadable code files
; files[] = views_img_media.module
; files[] = views_img_media.admin.inc
; files[] = views_img_media.class.inc
; Module dependencies
dependencies[] = media
; Configuration page
; configure = admin/config/views_img_media
; For further information about configuration options, see
; - http://drupal.org/node/542202
3) enable the pathologic filter (http://drupal.org/project/pathologic) for full_html/filter_html to force the image src to be absolute path
in views -> add body field -> a new formatter called 'text image' add to text type field, in views field setting, choose this formatter, and choose the image style you want
If you now better solution - tell me
Thanks for share. Your
Thanks for share. Your solution requires pathologic filter, but I need multi language support :(
Image Delta Formatter http://drupal.org/project/image_delta_formatter doesn't work for me.
pathologic only for absolut
pathologic only for absolut image url
my solution work for any image inserted in text
Would you be able to give
Would you be able to give link to the module files archive please?
I installed media module. I have copy pasted your text to files, but browser shows the code on top of page.
ferst line in
ferst line in views_img_media.module must be:
<?php
http://maxunion.ru/views_img_
http://maxunion.ru/views_img_media.zip
Thanks. Благодарю. It doesn't
Thanks. Благодарю.
It doesn't work for me.
Theme is pixture_reloaded. Installed modules:
Package Name Type Version
Chaos tool suite Chaos tools (ctools) Module 7.x-1.0
Core Block (block) Module 7.14
Core Color (color) Module 7.14
Core Comment (comment) Module 7.14
Core Contextual links (contextual) Module 7.14
Core Dashboard (dashboard) Module 7.14
Core Database logging (dblog) Module 7.14
Core Field (field) Module 7.14
Core Field SQL storage (field_sql_storage) Module 7.14
Core Field UI (field_ui) Module 7.14
Core File (file) Module 7.14
Core Filter (filter) Module 7.14
Core Help (help) Module 7.14
Core Image (image) Module 7.14
Core List (list) Module 7.14
Core Menu (menu) Module 7.14
Core Node (node) Module 7.14
Core Number (number) Module 7.14
Core Options (options) Module 7.14
Core Overlay (overlay) Module 7.14
Core Path (path) Module 7.14
Core RDF (rdf) Module 7.14
Core Search (search) Module 7.14
Core Shortcut (shortcut) Module 7.14
Core System (system) Module 7.14
Core Taxonomy (taxonomy) Module 7.14
Core Text (text) Module 7.14
Core Toolbar (toolbar) Module 7.14
Core Update manager (update) Module 7.14
Core User (user) Module 7.14
Media File entity (file_entity) Module 7.x-1.1
Media IMCE (imce) Module 7.x-1.5
Media IMCE Crop (imce_crop) Module 7.x-1.0
Media IMCE Mkdir (imce_mkdir) Module 7.x-1.0
Media Media (media) Module 7.x-1.1
Other Backup and Migrate (backup_migrate) Module 7.x-2.3
Other Colorbox (colorbox) Module 7.x-1.3
Other Image Delta Formatter Module 7.x-1.x-dev
(image_delta_formatter)
Spam control CAPTCHA (captcha) Module 7.x-1.0-beta2
User interface Wysiwyg (wysiwyg) Module 7.x-2.1
Views Views (views) Module 7.x-3.3
Views Views img from Media (views_img_media) Module
Views Views UI (views_ui) Module 7.x-3.3
Core Bartik (bartik) Theme 7.14
Core Seven (seven) Theme 7.14
Other AT Admin (adaptivetheme_admin) Theme 7.x-2.2
Other AT Core (adaptivetheme) Theme 7.x-2.2
Other AT Subtheme (adaptivetheme_subtheme) Theme 7.x-2.2
Other Pixture Reloaded (pixture_reloaded) Theme 7.x-2.2