This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Image module: problem with theming thumbnails/previews

Hi, can anyone give my any tips and/or suggestions on how I should go on about theming with CSS elements images
generated by the image module? That is for both cases in which the image is a thumbnail and a preview. Even though I'm
mostly interested in the thumbnail at the moment and thats because both thumb and preview formats use the same template
(image.tpl.php) which I've created. I'll need to do something about this as well.

At the moment I've created an image.tpl.php template that I use when the node to be displayed is an image.
I currently am wrapping Only local images are allowed. tag into a style

tag but what I keep on getting in the Only local images are allowed. tag is a class attribute
class= "image thumbnail" for thumbnails and class="preview" for previews.
I cant find this CSS definition in any imported CSS file, included the image.css that comes with the image module.

--------------
| Title
|
| IMG
|
| body
|
--------------

But what I would really like is (hope that will be clear):

--------------
| IMG Title |
| |
| body |
| |
--------------

As in, I dont want the texts to wrap around on new lines after and before the image.
This is mainly because the rendering of the image comes as an img tag directly followed by a paragraph(p) tag where
the body(description) is displayed.

banner module

Does anyone know if and when the banner module is going to make the leap to 4.7? I'm sad that it hasn't been updated bc it's such a nice module. Are there any alernatives to the banner module that work for 4.7?

Localization Module Configuration

Hi all, Hi tried posting this in the general discussion forum, I guess its just not been the right place for a reply and hope to get some response to help me on this forum:

I've tried pluggin in the locale module.
I'm a bit confused as on how to make it work.
I've tried to add on a new language, enabled it and set it as default.
What I get is that 0/176 (0%) has been translated.

How and where would I do the translation?

using views module based on taxonomy terms & taxonomy_menu module

Hey all,

I'm building a web site for a commercial activity that needs to marketize their products on the web. For this I'm running
drupal 4.7 and using the ecommerce product and tangible modules.

I'm also using the taxonomy_menu module. What this does is creates a menu with links for every term
in a specific vocabulary.
Say my vocab is 'Product Categories' and my terms are: 'sport equipment', 'casual clothes', 'shoes', etc. etc..
With the taxonomy_menu module I get links for: 'sport equipment', 'casual clothes', 'shoes', etc. etc.. These will be
found in the main Navigation which I've set up to be on a left block.

When I access one of the links I get displayed all products in that category.

My problem is: when I access one of the menu links for a product category I get displayed ALL products in that category.
Now, I do not want all products to be displayed, thats because:
1) the page could become very big
2) the page could take very long to load (due to product images for example)

What I actually need is a "previous - next" navigation at the end of the page products content. This is mainly because
I want to be able to configure the number of product nodes to be displayed on a page within the 'product catalogue'
(another advantage, of course, is to avoid the performance problems I've mentioned before).

I've tried the views module and seen that I can get with it a navigation which looks something like this:

Business intelligence system

Hi,

Is it possible to make a new content type through cck called for example "Status" where you can enter this months status (for example "market share", and choose which KPI (Key performance indicator) it relates to. Then have views module list up all statuses this month and show an arrow icon whether the trend since last month is up or down, and have the color of the arrow show whether it is under (red) or over (green) the KPI target (target this month retrieved from another table/other nodes/other taxonomy again).

Secondary Menu with Taxonomy_block (pathauto)

Hi,

I'm trying to realize on my website a 2-level navigation with a primary horizontal menu at the top and a secondary vertically to the left of the screen. I don't want the 1st-level entries to appear on the 2nd-level menu. So I found this useful page http://drupal.org/node/49720#comment-94151 and did it like this.

my problem is that i get, after enabling some taxonomy_blocks in the administer -> blocks an sql error:

user error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND n.status = 1 ORDER BY sticky DESC, created DESC LIMIT 0' 
query: SELECT DISTINCT(n.nid), n.title, n.body FROM term_node t INNER JOIN node n ON t.nid = n.nid WHERE t.tid IN () AND n.status = 1 ORDER BY sticky DESC, created DESC LIMIT 0 in /srv/www/htdocs/web58/html/netzwerk-nicaragua/includes/database.mysql.inc on line 66.

The blocks that the website shows has links "more" and this sql-error occurs just with the blocks where the "more"-link is http://url.com/?q=taxonomy/term/
without numbers for the terms. the "more"-link of the first block (without error) has all term numbers http://url.com/?q=taxonomy/term/1+3+4+6+9+7+8+10
so i think it must have something to do with that errror, but i'm not really shure.
Another wierd thing was, that in the "more"-link above with all the term numbers, there is no number 2. and i looked in the url aliases and found there as well no number two, so has my problem something to do with the pathauto?? i deleted all aliases and it is still the same problem.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions