close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Adding CSS - Almost working. Please help!!

Thread began 10/18/2010 11:30 pm by info72555 | Last modified 10/19/2010 4:48 pm by Dani Chankhour | 963 views | 5 replies |

info72555

Adding CSS - Almost working. Please help!!

I am not a programmer, do not own HTML Editor or iRite and thought purchasing this solution would be a great add-on. I have little hair as it is but I am losing more as I try to figure out how to add CSS styles to pages. Some people have it figured out and that makes me wonder if I am not as smart as I thought. Here's my dilemma:

I have updated the "cms_styles" CSS, "insert" and "update" files as suggested. I was thrilled to see the styles show up in the drop down menu and even happier when I was able to apply them to the text. I almost started to cry when I hit Update and all the styles were gone, except for "Red Title" that's set up in the fckconfig file. Why do all the styles disappear in the preview when I save the changes? They don't show up in the PHP file that includes the Developer Notes either. I thought it may have something to do with the "update" page but I have not idea... :-(

I hope I am not the only person who is banging his head against the screen trying to figure this out. Please help!!!!

Thank you in advance :-)

Sign in to reply to this post

Dani Chankhour

You will need to include the cms_style.css file to the page in order for the styles to show.

Sign in to reply to this post

info72555

What am I missing?

Your documentation suggests the CSS is already linked to the "contents_insert_ContentValue1.js" and "contents_update_ContentValue1.js". Are these the pages you are referring to?

The lines that already exist in your files (insert & update):
FCKConfig.EditorAreaCSS = '../../css/cms_styles.css';

The styles I tried to add show fine in the editor and actually format the text as desired in the preview window. However, when I click Update, all these styles disappear in the following screen. Do the paths specified for the CSS have anything to do with it? I think the concept for the solution pack is great but I need to be able to offer CSS before a client is interested.

Would you please be specific in your response as to what needs to be done? Is there another link that needs to be created that is not mentioned in your documentation? I believe I checked every post making reference to CMS & CSS and I cannot figure it out :o(

Thanks

Sign in to reply to this post

Dani Chankhour

You will need to link to the cms_style.css file. For example, open the index.php in the admin folder and this line of code:

<link rel="stylesheet" type="text/css" href="../css/cms_styles.css"/>

under this line of code:

<!-- InstanceBeginEditable name="head" -->

so you have:

<!-- InstanceBeginEditable name="head" -->
<link rel="stylesheet" type="text/css" href="../css/cms_styles.css"/>


This will include the cms_style.css file on your index page because the cms_style.css is where you have your class definitions. And if you click on the home page of CMS, you should see the styles shown. similarly if you want those styles to show on other pages you will need to add this line of code:

<link rel="stylesheet" type="text/css" href="../css/cms_styles.css"/>

to those pages as well.

Sign in to reply to this post

info72555

One last question - I hope!! ;o)

All the tags are showing properly on the pages within the editor but where do I make the reference to the style sheet on the CMS PHP output pages?

I tried to attach the style sheet via Dreamweaver but that did not show up in the CMS page when I looked at the page source. Do I need to add it to the Source in FCK editor? If I do - what would be the line I need to add? Or does the CSS get referenced in the "addtosite.php"?? How?? I am pulling my hair out one at a time!! ;o)

I don't know anything about PHP and was not able to figure out the answer via the forum - I almost feel I am the dumbest member on here!! LOL


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test Page</title>
</head>

<body>
<?php
include('/home/dreams/public_www/CMS/Content/WA_CMS/addtosite.php');
echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Home', 'Content', false);
?>
</body>
</html>

Sign in to reply to this post

Dani Chankhour

The reference to the style sheet needs to be added to the page where you have the cms code. If you want to see the styles to in the cms admin pages, then you will need to add the reference to those pages as well.

Once you add the reference to the style sheet to the page, and if you are still having an issue, please post with a link to the page or attache the page as an attachment.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...