Home · Links · Contact Us
Home arrow Forums
Home
Features
FAQ
Screen Shots
Modules
Themes
Demos
Documentation
Forums
Contact Us
Download
Purchase
Quotes

" ... I want to tell you that your thyme product is functional and valuable beyond words. I cannot imagine why any portal would be without it. It is the cornerstone of our new project ..."

" ... Thanks for such a complete project, its making my job much easier. ..."

" ... I have now deployed 4 different calendars and our users love them ... "

" ... Easy to install and use and a great look/design. ..."

" ... This has to be the easiest to use program I think I've had to deal with at all this year. ..."


  FAQFAQ    SearchSearch  RegisterRegister   Log inLog in 
relative links instead of absolute

 
Post new topic   Reply to topic     Forum Index -> Themes
View previous topic :: View next topic  
Author Message
webharvest



Joined: 01 Aug 2007
Posts: 40

PostPosted: Wed Aug 15, 2007 12:20 am    Post subject: relative links instead of absolute Reply with quote

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
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5268

PostPosted: Wed Aug 15, 2007 1:09 am    Post subject: Reply with quote

Yes, you may use relative URLs to images in Thyme's themes.
Back to top
View user's profile Send private message Visit poster's website
webharvest



Joined: 01 Aug 2007
Posts: 40

PostPosted: Wed Aug 15, 2007 1:26 am    Post subject: Reply with quote

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
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5268

PostPosted: Wed Aug 15, 2007 1:29 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
webharvest



Joined: 01 Aug 2007
Posts: 40

PostPosted: Wed Aug 15, 2007 1:35 am    Post subject: Reply with quote

its actually in the php code. I have a link to my weekly calendar view with an image.
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5268

PostPosted: Wed Aug 15, 2007 4:13 am    Post subject: Reply with quote

_CAL_BASE_URL_ will get you the URL for Thyme.
Back to top
View user's profile Send private message Visit poster's website
webharvest



Joined: 01 Aug 2007
Posts: 40

PostPosted: Wed Aug 15, 2007 1:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5268

PostPosted: Wed Aug 15, 2007 1:09 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Themes All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
© 2005 eXtrovert software unless otherwise noted. All rights reserved.
Portions © 2004 Ben Brown. All rights reserved.
Trademarks are property of their respective owners.