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?

Comments

Dublin Drupaller’s picture

(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.

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

Riccardo83’s picture

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’s picture

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.

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

Riccardo83’s picture

I tried

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

Check, it shows the HTML Code:

Disc Type:
Album
buylink:
Only local images are allowed.Only local images are allowed.

Did I do anything wrong?

Dublin Drupaller’s picture

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.

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

Riccardo83’s picture

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

Dublin Drupaller’s picture

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

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

Dublin Drupaller’s picture

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?

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

Riccardo83’s picture

I use TinyMCE....

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

Dublin Drupaller’s picture

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

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

Riccardo83’s picture

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’s picture

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.

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

Riccardo83’s picture

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’s picture

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.

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

Riccardo83’s picture

I know I tried....

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

Dublin Drupaller’s picture

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

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

Riccardo83’s picture

Are the Images working?

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

Riccardo83’s picture

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

Riccardo83’s picture

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

Dublin Drupaller’s picture

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

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

Riccardo83’s picture

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

Riccardo83’s picture

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

Riccardo83’s picture

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