English 中文(简体)
标注当地服务器
原标题:cms question pointing to a local server url
  • 时间:2010-08-18 10:07:18
  •  标签:
  • modx

just successfully imported a db from a real website to my local website. the problem is, the localhost/mysite doesn t display the template. i m thinking it might be a problem of the URL while importing. The settings in the configuration are also correct. Now in my CSS if i want to point it locally, is this correct: or do I have to eliminate the C:/ ? Appreciate for your help

.product  #header {
    background: url( c:/xampp/htdocs/mysite/assets/templates/mysite/css/images/header_.jpg ) no-repeat left;
}

Is this the correct way to write the path locally? Thanks

最佳回答

理想的情况是,任何图像途径都应该是相对的,这样,如果搬迁到现场,仍然正确工作。

你们应该使用像样的东西。

.product  #header {
background: url( /assets/templates/mysite/css/images/header_.jpg ) no-repeat left;}

我不认为,你甚至可以提到你正在做的事情。 或许,如果你有ur(档案:......),但我看不出这样做的理由。

问题回答

暂无回答




相关问题
predefine template for new resource/document

I would like to set the new child documents to default to a set template that is different from the parent. I ve looked through managermanager, but looks like it is unable to do this. mm_inherit can ...

Modx css issue not pulling in styles on the form

I m editing a site using Modx cms. I m trying to add a contact form to the contact page. I already have one in the sidebar specified in a template. The code on the contact page form points to the same ...

PHP MODx mysql Parse error? Where do I change the settings?

Hi I m using MODx on a site, but something has gone wrong with the database. Any idea how I can change the PHP to point to my database? « MODx Parse Error » MODx encountered the following error while ...

Print a table in modx to send info for mail by eForm

My question is, how can I create a table with dynamic fields (I will explain this later), and send them values by mail with eform? In the table, on the left, I want to print all the document children ...

Simple PHP CMS as an alternative to hacking Wordpress

For creating common user modifiable site I ve been forcing Wordpress to do the work of a CMS. It s worked and the back-end is purdy but it s just too hacky for my tastes. So I d like a simple CMS that ...

Modx assign default date to template variable

I have a template variable of input type date but I d like to have a default value of the current date at the time the document was first saved. I ve noticed that using the date formatter widget ...

热门标签