• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [solved] Favicon at all pages using ie9 /...
PostPosted: Tue Jul 24, 2012 3:13 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Fri Apr 20, 2007 7:26 pm
Posts: 235
Location: Ruhrstadt
Hi folks.
In my 1.8.2 installation page favicon is shown on all pages of the site - even in ie9.
In the brand new 1.10.3. installation favicon is shown on home page only (using ie9).
I use this userdefined tag:
Code:
if(isset($params['static']))
   echo '<link rel="shortcut icon" href="'.$params['static'].'" type="image/x-icon" />'."\n";

if(isset($params['animated']))
   echo '<link rel="icon" href="'.$params['animated'].'" type="image/gif" />'."\n";


... and this line in the template:
Code:
{favicon static="images/favicon.ico"}


When i use the absolut path - in template - to the favicon like this...
Code:
{favicon static="http://myserver/images/favicon.ico"}

... the favcion is shown using ie9 on subpages, too. Is there a way to replace the absolute path? Tried...
Code:
{favicon static="[root_url]/images/favicon.ico"}

...already but this doesn't work.

Thanks for help

map_1961


Last edited by map_1961 on Wed Jul 25, 2012 7:17 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Favicon at all pages using ie9 /doesn't like relative pa
PostPosted: Tue Jul 24, 2012 5:25 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Aug 12, 2008 9:30 pm
Posts: 1984
Location: Feldkirchen in Kärnten, Austria
If you change the UDT to :
Code:
if(isset($params['static']))
   echo '<link rel="shortcut icon" href="' . cmsms()->config['root_url'] . '/' . $params['static'].'" type="image/x-icon" />'."\n";

if(isset($params['animated']))
   echo '<link rel="icon" href="' . cmsms()->config['root_url'] . '/' .$params['animated'].'" type="image/gif" />'."\n";


Root url from config will be included.

Or assign {root_url} tag to variable like:
Code:
{root_url assign='my_root'}
{favicon static="`$my_root`/images/favicon.ico"}

_________________
CMSMS Blog - I do this!
Forge profile
Github profile
Twitter
=============================================
Support CMSMS


Top
 Profile  
 
 Post subject: Re: Favicon at all pages using ie9 /doesn't like relative pa
PostPosted: Wed Jul 25, 2012 7:17 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Fri Apr 20, 2007 7:26 pm
Posts: 235
Location: Ruhrstadt
Hey - thank you - great job.

Thanks a lot.

map_1961


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


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 post attachments in this forum

Search for:
Jump to:  
cron
A2 Hosting