I trying prepare link directory based on Drupal and what I'm gonna do is make snapshots of website. I want to disable link a href and present just image. I tried setting up Views but if I turn on Link to node this option doesn't work. Anybody know how to do ? It's important because I don't need links of front page.

Comments

alfaguru’s picture

You could override the theme function but that's not an ideal solution as you'd have to copy a lot of code just to take out the link generation step.

I'd like to have a better answer but without any sponsorship of this module I can't afford to work on it. Patches welcome!

cygii’s picture

I just copied part of code in content type tpl.php and pasted cck variables inside. It works :) But it's not an ideal solution.

dennis605’s picture

Hi cygii,

coul you please explain me in more details, how you did this?

thanx, dennis605

cygii’s picture

First, you need create node template like node-[content_type].tpl.php then in section where you want display snaphot paste code:

<div id="example">
<img width="example_size" height="example_size" title="<?php print $title; ?>" alt="example_keywords(good for SEO:)<?php print $title; ?>" src="http://images.websnapr.com/?size=S&amp;key=(enter your dev_key)&amp;url=<?php print $node->field_www[0]['url']; ?>"></img>
</div>

If you want show thumb in teaser add before

<?php if ($teaser): ?>
<img.............above code>
<?php else: ?>
here is content...

Field "field_www" is my own CCK field. You can have whatever you want. Anyway it's works:) Sample: http://www.spisturystyczny.pl
I hope that help you :)

dennis605’s picture

thanx a lot,

i'll try this, and come back later.

later:

that works phantastic, thanx a lot again.

dennis605

charos’s picture

Any updated code for this? Currently I get "update your code" image.