This forum is for assistance with theme development.

image url, missing final step

I've built a view of one content type that has an image field. I want to pull the url of that uploaded image (so I can use it as a background image)

I'm trying to get an image URL to print out on my page, without installing the "image_url_formatter " module. I found something that gives the first two steps, but doesn't explain the final part:

[Solved] How do I change Bootstrap column classes based on node or page

Hi all

I'm using Bootstrap 3 as a sub theme, works as expected. The problem I'm having is the column classes and how to change these, based on a node, view, or page basis. I have already changed page.tpl and page-node.tpl.php, which achieves 80% of the results I need.

Is there a way I can target the below based on node view, content type etc. Ideally with some code, it would be nice if I could avoid creating lots of overrides.tpl.php just to change a few classes.

Example:

page.tpl.php

[Solved] Issue trying to set active link on frontpage for one page template

Wondered if anyone can help me on this?

I'm trying to create a one page template that also has internal menu links to another non frontpage pages. All the primary links for anchor links use:

menu one --> <front>#about
menu two --> <front>#contact 

These link shows up as

Dynamic structure pages with Drupal, possible ??

Hello !
I am the webmaster of the site below, this site is made wordpress, but is not totally customizable, so I like to know if Drupal, I can easily make all dynamic blocks, including template structure

As an example, suppose I want to use a home page that will be different from others pages, is it possible & easy with Drupal?

http://commercialrefrigerationsrepair.com/

printing image url, in views

This is probably a simple one, but I've not found the answer anywhere yet:

I see that in Views, when I'm building a template there is a different syntax for printing fields, along the line of print $fields['field_name']->content; (instead of print render($content['field_name']); )

But, this doesn't work for an image url.
In a basic node template, I used:

<?php print file_create_url($content['field_hero_image']['#items'][0]['uri']) 

?>

Where's the .module file???

I'm trying to customize how a specific views block will appear on my home page. I see a couple instructions that start with an edit to the .module file. Nobody ever says where it is. I can't seem to find it, even when looking for hidden files?

Pages

Subscribe with RSS Subscribe to RSS - Theme development