JessicaRodgers Posted February 21, 2011 Share Posted February 21, 2011 I'd like to add 2 cms pages and home page links to my Block permanent links module. Can This be done? and how do I go about adding the code?I don't want to rely on a Navbar module like I've used in the past since their are going to be Three extra links. I will be removing the Sitemap link and Bookmark link. Link to comment Share on other sites More sharing options...
shokinro Posted February 21, 2011 Share Posted February 21, 2011 Yes, you can do this. You will need to modify the theme file of blockpermanent.tpl it locates at YourSiteRoot/modules/blockpermanentlinks/blockpermanentlinks.tpl 1 Link to comment Share on other sites More sharing options...
JessicaRodgers Posted February 21, 2011 Author Share Posted February 21, 2011 Yes, you can do this. You will need to modify the theme file of blockpermanent.tpl it locates at YourSiteRoot/modules/blockpermanentlinks/blockpermanentlinks.tpl Is there a certain way that the code needs to be written out. I'm assuming I cannot use Link to comment Share on other sites More sharing options...
shokinro Posted February 21, 2011 Share Posted February 21, 2011 I suggest you use the same way of original code.but you can change style if you know how to do that. Here is example of your case use CMS page <div class="contact"> <a href="{$base_dir_ssl}cms.php?id_cms=1"><img src="{$img_dir}icon/CMSIMAGE.gif" alt="{l s='CMS TITLE' mod='blockpermanentlinks'}" title="{l s='CMS TITLE' mod='blockpermanentlinks'}" /></a> <a href="{$base_dir_ssl}cms.php?id_cms=1">{l s='CMS TITLE' mod='blockpermanentlinks'}</a> </div> Where you have to modify following thingsid_cms, change it ( here 1) to your real oneCMS TITLE : change to you exactly title of your cms pageCMSIMAGE.gif: create your own image for each of CMS page 1 Link to comment Share on other sites More sharing options...
JessicaRodgers Posted February 22, 2011 Author Share Posted February 22, 2011 So I got my link working but I don't want to have an image with the link. What part of the string do I remove to remove the image? {l s='Contact Us' mod='blockpermanentlinks'} Link to comment Share on other sites More sharing options...
shokinro Posted February 22, 2011 Share Posted February 22, 2011 remove following part will remove the icon image Link to comment Share on other sites More sharing options...
shokinro Posted February 22, 2011 Share Posted February 22, 2011 I saw that some of you said to use the original code… is it really necessary? or can we adapt it? Of course if you know about CSS and want to create your style, you can do that. Link to comment Share on other sites More sharing options...
sofdini Posted February 24, 2011 Share Posted February 24, 2011 I saw that some of you said to use the original code… is it really necessary? or can we adapt it? Of course if you know about CSS and want to create your style, you can do that. Can you give me example? Because i want do this too but I have too little experience. Link to comment Share on other sites More sharing options...
forum386 Posted March 22, 2011 Share Posted March 22, 2011 Can you give me example? Because i want do this too but I have too little experience. You have to create a css themes and just include your css themes to your cms template.To learn more about css visit w3school.com.. Link to comment Share on other sites More sharing options...
depi Posted May 18, 2011 Share Posted May 18, 2011 <div class="contact"> <a href="{$base_dir_ssl}cms.php?id_cms=1"><img src="{$img_dir}icon/CMSIMAGE.gif" alt="{l s='CMS TITLE' mod='blockpermanentlinks'}" title="{l s='CMS TITLE' mod='blockpermanentlinks'}" /></a> <a href="{$base_dir_ssl}cms.php?id_cms=1">{l s='CMS TITLE' mod='blockpermanentlinks'}</a> </div> Where you have to modify following thingsid_cms, change it ( here 1) to your real oneCMS TITLE : change to you exactly title of your cms pageCMSIMAGE.gif: create your own image for each of CMS page It's OK for me, but when I change language on the Menù the CMS TITLE is not translated. Why? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now