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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
Sarmorrow
Forum Members
Forum Members
Posts: 26
Joined: Sun May 23, 2010 2:04 pm

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

Post 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
Last edited by Sarmorrow on Wed May 26, 2010 4:33 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post 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  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Sarmorrow
Forum Members
Forum Members
Posts: 26
Joined: Sun May 23, 2010 2:04 pm

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

Post 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.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post 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  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

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

®
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Sarmorrow
Forum Members
Forum Members
Posts: 26
Joined: Sun May 23, 2010 2:04 pm

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

Post 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.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post by Rolf »

in a page you have to use the checkbox in the options tab
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Sarmorrow
Forum Members
Forum Members
Posts: 26
Joined: Sun May 23, 2010 2:04 pm

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

Post by Sarmorrow »

Thanks Rolf, I'll have a look at that.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Sarmorrow
Forum Members
Forum Members
Posts: 26
Joined: Sun May 23, 2010 2:04 pm

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

Post 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.
Post Reply

Return to “CMSMS Core”