Closed (works as designed)
Project:
Logo Tool
Version:
6.x-2.05
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2011 at 23:18 UTC
Updated:
18 Apr 2012 at 05:57 UTC
The logo typically is a link to the home page of the site. My site, http://svcs.net, uses different logos for different sections of the site. It would be very useful if I could set the link path for the logo to the front page for the particular section.
Comments
Comment #1
pobster commentedThe very page where you enter the settings tells you how to do this. Just ... read it on your own site.
Thanks,
Pobster
Comment #2
pobster commentedComment #3
mauryg commented@pobster
thanks for the quick reply but I'm afraid I may not have explained the problem correctly.
I see on the admin>settings>logotool>settings that I can set the path to the 'default' logo, the path to the logo directory which stores all the logos and the type of display, in my case 'specified logos'. I then set up a series of logos to be displayed on various pages according to the url alias of the page. All that works just fine. You can see it on my site, http://svcs.net, if you click on the various 'special interest groups' in the navigation bar.
What I want to change is the 'home page' path when the user CLICKS on the logo. Normally this is set on the site administration page when you specify the path to the front page, normally 'node'. I want to specify a separate 'home page' for each logo. That way if the user navigates away to a subpage, like a specific node, he can click on the logo and return to the home page FOR THAT SECTION.
If this is done thru the 'templating' function, then I would ask you to point me to a good explanation of how to use this. It seems to me that logically the function I want should be set on the logos page, admin/settings/logotool/logos, where I could set the link for each logo individually, the way I set the path to the logo itself.
Did I miss something very obvious?
Comment #4
pobster commentedAh right, I understand - you know that's really bad IA right? You should always provide a link back to the 'front' of the site. But well, if you want to do this then yes - it's going to be a templating thing. You should be able to work it out from the colour example I gave *somewhere* (in the README or maybe on the settings page? I forget...) basically it's just the same as setting the logos/ paths but you specify variables and values instead, e.g.
Then your page.tpl.php can access the $logotool_link_path variable and this will contain 'i_m_a_section_front_page_1' if you're on node 1. To use it, simply wrap it in url() or l() depending on how your theme works.
Pobster
Comment #5
mauryg commented@pobster
Thank you very much. Now it is quite clear. I usually provide a link to the 'front' of the site somewhere on the page and since the logo is the name of the section, it really makes sense that it links back to the section front page, not the site front page.
Maury
Comment #6
pobster commentedCool, well - good luck! :o)
Thanks,
Pobster
Comment #7
shikhac commentedI need this feature. In admin.setting.logotool I have added node/50|logotool_link_path|
In template.php, I am using $vars['site_logo'] = '
But it doesnot work