Page 1 of 1

[SOLVED] Adding widgets from other sites - some don't work.

Posted: Mon May 24, 2010 9:25 am
by Sarmorrow
So, I've got the menus fixed - Huge thanks to Dr Css for that. I've changed the title of the side menu - dead inpressed I managed to find that. I've changed the colour on the search thing so it can be seen....

I'm adding content to what I think looks like a good site now. It's a big improvement on what I had before anyway. I even have some basic e-commerce on there. It might not seem much to some of you but I'm quite pleased with what I've managed to do!

So, I'm a writer and I want to sell books -  not to you lot, unless you feel like it. I want to add an Amazon widget to the side bar in some pages and it's a little bit of script that should show my books. And it doesn't.

Is there some sort of block on certain bits of code being put in? I had similar problems putting my Twitter badge on the front page and ended up with a simpler button instead of the profile badge I wanted. Not a huge problem for that one but I want my amazon thing!

The page in question is this one: http://sarahbarnard.co.uk/simplecms/ind ... tal-Series and if I can work out how to put it in there I think I can work out other places too.

The simplest Amazon link is a basic single product link and is this:

If I can get that to work then I'll be happy!
Thanks
Sarah

Re: Adding widgets from other sites - some don't work.

Posted: Mon May 24, 2010 9:38 am
by Rolf
Hi Sarah,

You can put your code into a Global Content Block and call it in the content page.

Admin >> Content >> Global Content Blocks

Put in the page {global_content name='your-own-gcb-name'}

Regards,

Rolf  :)

Re: Adding widgets from other sites - some don't work.

Posted: Mon May 24, 2010 9:45 am
by Sarmorrow
That would work if I wanted the same links on each page right?
But I want different things on different pages!
I know, I'm awkward.

Re: Adding widgets from other sites - some don't work.

Posted: Mon May 24, 2010 10:06 am
by Rolf
Sarmorrow wrote: That would work if I wanted the same links on each page right?
But I want different things on different pages!
I know, I'm awkward.
If you have multiple iframes, you can put them into one GCB
Or you can create for each iframe a seperate GCB, which you can put in each page you want...

You might want to look at the {embed} tag (Extentions >> Tags)
or in the Forge at http://dev.cmsmadesimple.org/projects/piiframe
This will be more flexible...

Rolf  :)

Re: Adding widgets from other sites - some don't work.

Posted: Mon May 24, 2010 10:20 am
by Rolf
In case of the GCB you have to check Disallow WYSIWYG editors on global content blocks in Site Admin >> Global Settings. You don't want the WYSIWYG editor there of course.

®

Re: Adding widgets from other sites - some don't work.

Posted: Mon May 24, 2010 8:31 pm
by Sarmorrow
Oddly, before I broke it completely, turning off WYSIWYG did the trick as long as that was the last thing I changed on a page.

Re: Adding widgets from other sites - some don't work.

Posted: Mon May 24, 2010 8:54 pm
by Rolf
in a page you have to use the checkbox in the options tab

Re: Adding widgets from other sites - some don't work.

Posted: Mon May 24, 2010 9:09 pm
by Sarmorrow
Thanks Rolf, I'll have a look at that.

Re: Adding widgets from other sites - some don't work.

Posted: Wed May 26, 2010 4:28 pm
by Rolf
Hello Sarmorrow

You website looks nice!
If this thread is solved, please put [Solved] in the title of the first post.
You can use the Modify button for this...

Have fun, Rolf  :)


ps. on the page http://sarahbarnard.co.uk//index.php?pa ... tal-Series you have a link to http://sarahbarnard.co.uk/nano.htm.
This page isn't there anymore...

Tip: Pretty Url
http://forum.cmsmadesimple.org/index.ph ... 912.0.html

Re: Adding widgets from other sites - some don't work.

Posted: Wed May 26, 2010 4:32 pm
by Sarmorrow
Sorry, forgot about the Solved bit.

I'm going through and fixing broken links in bits I pasted over from the old site so there will be things like that until I find them all - thanks for the heads up.