How to Add External Link to Table View (Discography)

Riccardo83 - February 8, 2009 - 16:44

Hey guys, I have this site:

http://www.alizee-fanpage.com/en/discography/english

Its a listing of Albums and Singles of the french Singer Alizee.

I would like to add a external Link ( Or Amazon Code) so people can click on Order in the List next to the Albums and Singles etc...

How do I get this working?

add a new field

Dublin Drupaller - February 8, 2009 - 17:23

(assume you're using cck and views to generate the list of albums/singles)

Under content types...click on EDIT for the content type you are using for adding album/single releases....click on ADD NEW FIELD...call it something like "buylink" and make the field type a LINK field (using the link module add on for CCK)....that way you can insert the link to amazon/itunes etc. for each release.

Alternatively, when adding a new field, you can use a TEXT AREA, so you can add in a few links in the same field, if required....so you can include a link to amazon and itunes and other shops.

When you go back to edit your VIEW, you can insert that new "buylink" field in your table.

Great, thanks mate. With the

Riccardo83 - February 8, 2009 - 17:36

Great, thanks mate. With the TEXT AREA Version you mentioned, can i add Amazon Codes like Widgets and stuff? Or only simple Links? Will it automatically convert in HTML ?

Check out my blog
http://blog.riccardo-ulpts.com

..

Dublin Drupaller - February 8, 2009 - 17:41

when adding your new TEXT AREA field..you have the choice of Plain text (NO HTML) or Filtered text (user selects input format)....so, depending on how you have your input filters setup (I'm guessing only admin can submit a release) you have the option of filtered HTML, full HTML or PHP.

I

Riccardo83 - February 8, 2009 - 17:56

I tried

http://www.alizee-fanpage.com/de/discography/en-concert

Check, it shows the HTML Code:

Disc Type:
Album
buylink:

Did I do anything wrong?

edit

Dublin Drupaller - February 8, 2009 - 17:56

try the following:

1. click on the EDIT tab for that node.
2. scroll down to the textarea for the field with the html
3. below the text area there should be an option for Filtered Text/html/php if you're logged in as admin.
4. select full html and save the node.

It Is set to Full

Riccardo83 - February 8, 2009 - 18:00

It Is set to Full HTML.....

I have no clue what else could be wrong.... Maybe it doesnt Work with Text Area....

Check out my blog
http://blog.riccardo-ulpts.com

input filters

Dublin Drupaller - February 8, 2009 - 18:07

that's strange..it should display as full html.

quick one..

Dublin Drupaller - February 8, 2009 - 18:16

I don't think you're doing anything wrong, Riccardo83....it sounds like a bug with the cck.module.

quick question: are you using any html editor plugin that might be overriding the input filter?

I use TinyMCE.... Check out

Riccardo83 - February 8, 2009 - 18:17

I use TinyMCE....

Check out my blog
http://blog.riccardo-ulpts.com

..

Dublin Drupaller - February 8, 2009 - 18:25

When you look at the page source...your buylink field looks like this:

<a href="http://www.amazon.de/gp/product/B0002XNMAA?ie=UTF8&tag=bigricci&linkCode

Which looks like you pasted the links into your text area with tinymce switched on...i..e. tinymce strips out all the codes and presents it as if it is plain text.

Can you disable or switch off tinymce for that textarea and paste your link code into the text area without tinymce switched on?

Or is there a button on tinymce that allows you to VIEW SOURCE ?

hope that makes sense

dub

Ok, Ill try this. LinkImage

Riccardo83 - February 8, 2009 - 18:35

Ok, Ill try this. LinkImage isnt working either, it wants me to upload an image, But I only want to link it.... arghhhh I try disabling TinyMCE now.

How was it possible to disable TinyMCE for individual Textfields?

Check out my blog
http://blog.riccardo-ulpts.com

..

Dublin Drupaller - February 8, 2009 - 18:40

there should be a button called VIEW SOURCE or something like that. there should also be an option to disable rich text editor for the specific text area, so you don't have to disable tinymce completely.

alternatively..check out your admin -> site configuration -> tinymce settings page...there maybe an option there to disable the editor for specific fields.

Disabling TinyMCE doenst work either

Riccardo83 - February 8, 2009 - 18:40

Damn it, even Disabling TinyMCE at all doesnt work.

So now it doenst work with Text AREA, it doesnt work with Link Module since theres no Image.

And it doesnt work with Link Image Module since I dont want to upload an image....

Check out my blog
http://blog.riccardo-ulpts.com

..

Dublin Drupaller - February 8, 2009 - 18:42

disabling tinymce won't make a difference until you re-edit the node (the node data for that field is stored in the database and that won't have changed) and paste in the HTML link code again.

I know I tried.... Check out

Riccardo83 - February 8, 2009 - 18:47

I know I tried....

Check out my blog
http://blog.riccardo-ulpts.com

working now?

Dublin Drupaller - February 8, 2009 - 18:58

i just checked your page and it looks like it's working now. click on REFRESH or clear out your browser cache.

Are the Images

Riccardo83 - February 8, 2009 - 19:13

Are the Images working?

Check out my blog
http://blog.riccardo-ulpts.com

Link Module Works, but no Image :-(

Riccardo83 - February 8, 2009 - 18:16

I got it working with Link Module Addon, but I also want a picture to be displayed... this doesnt work with Link Module Add on for CCk..

Mhh what am I doing now?

Check out my blog
http://blog.riccardo-ulpts.com

Maybe this Link Image Field

Riccardo83 - February 8, 2009 - 18:25

Maybe this Link Image Field CCK thing works.. I try it now...

http://drupal.org/project/linkimagefield

Check out my blog
http://blog.riccardo-ulpts.com

maybe..

Dublin Drupaller - February 8, 2009 - 18:44

I think that just allows you to paste a link to an image...I don't think it will help in your situation.

Nope It allows an Image and

Riccardo83 - February 8, 2009 - 18:47

Nope It allows an Image and Link, but only uploading an image.. arghhh

Has never anyone tried this before?????

Check out my blog
http://blog.riccardo-ulpts.com

I got it working with TEXT

Riccardo83 - February 8, 2009 - 19:06

I got it working with TEXT AREA!!!!!!

Setting it to PLain Text was a mistake... Had to use Filtered Text then it worked

http://www.alizee-fanpage.com/de/discography/en-concert

It showed text Links, but why arent the images being shown?

Check out my blog
http://blog.riccardo-ulpts.com

It works.... was an issue

Riccardo83 - February 8, 2009 - 22:13

It works.... was an issue with the Amazon Link.... not sure why its not working. Amazon doesnt link .jpg files in img scr....

Check out my blog
http://blog.riccardo-ulpts.com

 
 

Drupal is a registered trademark of Dries Buytaert.