Banner module

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
hkerver

Banner module

Post by hkerver »

Hi there,

I'm having some problems getting the banner module up and running.
In the admin panel I've added a banner and have placed the image in the following path: ../mydomain/uploads/images/banners/banner.gifAfter submitting the banner shows in the admin panel, but if i open the corresponing page it shows:
Fout!

ERROR: Could not find category (no rows) Fout in database!

What am I doing wrong?
Thanks in advance

Harry
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Banner module

Post by RonnyK »

Harry,

do you call the banners-module with the category in which the banner is stored.

Code: Select all

{cms_module module='Banners' category="Banners"}
If you maintain them in category "Banners" for example.

Ronny
hkerver

Re: Banner module

Post by hkerver »

Hi Ronny

The categorie is "reizen: so I've used he code:  {cms_module module='Banners' category="reizen"}

But I've noticed the following:

In the admin panel I've inserted the following path for the image:
../~signex/uploads/images/banners/banner.gif
after submitting the properties of the image in the admin panel is:
http://195.238.74.93/~signex/uploads/images/banners/banner.gif

But on the webpage te propertie of the image is:
http://195.238.74.93/~signex/~signex/uploads/images/banners/banner.gif

I hope this will give some light

Harry
hkerver

Re: Banner module

Post by hkerver »

I've solved the problem.

In the admin panel I had to use the following path: ../../../~signex/uploads/images/banners/banner.gif
in order to get the image work in the admin panel as well as on the webpage :-(

Thanks anyway

Harry
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Banner module

Post by RonnyK »

Harry,

the line below the banner.gif in the banner-module states that you define the path relatively to the uploads directory, in your case

Code: Select all

images/banners/banner.gif
Ronny
hkerver

Re: Banner module

Post by hkerver »

I've tried that and it didn't work. the only path that works is: ../../../~signex/uploads/images/banners/banner.gif
Max

Re: Banner module

Post by Max »

Re the banner module (nice module)  :) I have a slight problem. I'm using my template which is a liquid layout, made to resize according to screen size within certain parameters. The banner size though is set in pixels, and can't be set with a % size. This might not be a problem, except the banner insists on adding a border, which makes the problem obvious. I've tried altering the outcome in my style sheet with no success i.e. border: 0; width: 100%; etc

How can I solve this?
Locked

Return to “Layout and Design (CSS & HTML)”