| View previous topic :: View next topic |
| Author |
Message |
webharvest
Joined: 01 Aug 2007 Posts: 40
|
Posted: Wed Aug 15, 2007 12:20 am Post subject: relative links instead of absolute |
|
|
I've made a template that uses some images and etc and I would like to make the links relative rather than absolute. I put the images in my image folder in my joomla site. Is there a way to call a relative link to those images or should I put the images under the Thyme folder?
Thanks |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5268
|
Posted: Wed Aug 15, 2007 1:09 am Post subject: |
|
|
| Yes, you may use relative URLs to images in Thyme's themes. |
|
| Back to top |
|
 |
webharvest
Joined: 01 Aug 2007 Posts: 40
|
Posted: Wed Aug 15, 2007 1:26 am Post subject: |
|
|
Is there a command to return the base site similar to the _CAL_BASE_PATH_. command.
I got the normal ../../ way to work but I was thinking that if I want to share or reuse the theme than it would be better to somehow link it with a command to return the base site so if someone puts it two folders deep it wouldn't matter.
Just a thought. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5268
|
Posted: Wed Aug 15, 2007 1:29 am Post subject: |
|
|
| In CSS? No. I'm not sure if that's what you were asking though. Let me know if it isn't. |
|
| Back to top |
|
 |
webharvest
Joined: 01 Aug 2007 Posts: 40
|
Posted: Wed Aug 15, 2007 1:35 am Post subject: |
|
|
| its actually in the php code. I have a link to my weekly calendar view with an image. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5268
|
Posted: Wed Aug 15, 2007 4:13 am Post subject: |
|
|
| _CAL_BASE_URL_ will get you the URL for Thyme. |
|
| Back to top |
|
 |
webharvest
Joined: 01 Aug 2007 Posts: 40
|
Posted: Wed Aug 15, 2007 1:04 pm Post subject: |
|
|
Forgive me for being stupid but I can't seem to get it to work.
I put in src= '_CAL_BASE_URL_."../images/M_images/week.gif" '
I've tried a bunch of different syntax but can't get it to work.
Sorry for bugging you with something that should be so simple.
Thanks |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5268
|
Posted: Wed Aug 15, 2007 1:09 pm Post subject: |
|
|
| No worries. But you're going to have to give me more to go on. Can you give me the URL to where this is being used please? |
|
| Back to top |
|
 |
|