multiple image variable

Hello, I created an image gallery with D7 and I want to customize the display of my Node. I have a multiple image variable "$content['field_img_gallery']" I wish to present a list but I don't know how to break my variable. With D6 we had to like that but it does not work with D7.

<?php foreach ((array)$field_img_gallery as $item) { ?>
  <div class="field-item"><?php print $item['view'] ?></div>
<?php } ?>

Sorry for my bad english i'm french.

Missing ellipses when content is trimmed

I have product catalaog which is made by taxonomy. And in node teaser I had to trimm body text. But when trimmed ellipses is missing, so text just stubidly ends.

Any solutions for this?

node-view-VIEWNAME.tpl.php returns unwanted default div tags and classes. How do I get rid of them?

I created a new content type with 2 custom fields - field_quote and field_author. I then created a view with "row-style:node" to display this content type in a block. I created a custom node--view--myview.tpl.php with this code:

<div id="node-<?php print $node->nid; ?>" >
<div class="content">

<blockquote class="large-bold"><p><?php print render($content['field_quote']); ?></p></blockquote>

<blockquote class="med-ital"><p><?php print render($content['field_author']); ?></p></blockquote>

</div>
</div>

When I save everything, clear caches, look at the page my 2 fields are displayed but not formatted properly. When I view source I see this code:

<div id="node-6" > 
<div class="content"> 

<blockquote class="large-bold"><p><div class="field field-name-field-quote field-type-text field-label-hidden"><div class="field-items"><div class="field-item even">quote here</div></div></div></p></blockquote>

<blockquote class="med-ital"><p><div class="field field-name-field-author field-type-text field-label-hidden"><div class="field-items"><div class="field-item even">author here</div></div></div></p></blockquote>

</div>
</div>

what I want is just this code:

<div id="node-6" > 
<div class="content">

<blockquote class="large-bold"><p>Quote here</p></blockquote>

<blockquote class="med-ital"><p>author here</p></blockquote>

</div>
</div>

Turn off drupal default styles

Im just diving into drupal 7 and im shocked by the huge amount of css imports by default. Whats the point of a theming engine if there is an army of default css files applied by default by the core? Is there a way to simply turn these off without complicated theming functions? You shouldn't have to add expensive php functions to REMOVE something.

code block isn't processed...

Hello!

I'm hoping someone can help me with this, as I still figure out what the problem might be....

I've attempted installed a module, and where the changes are supposed to appear on my page, I just get a bunch of code in square brackets like the following:

[[{"type":"media","view_mode":"media_large","fid":"15","attributes":{"class":"media-image","typeof":"foaf:Image"}}]]

How do I adjust maximum file size for uploads?

I've gone into the "structure", then "content types", then "manage fields", then "edit fields" to adjust the "Maximum upload size" for an upload. Though I have tried entering 50 MB, 1024 MB etc as options and saved the changes, I continue to be limited to the 8 MB upload size that drupal 7 defaults to. Am I doing this correctly? It may be a bug??? What do I need to do differently to make this work/verify if it is indeed a bug?

Rick

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x