By jdln on
How can I print a link to my front page in a block tpl template file?
Ive tried the following:
<a href="<?php print check_url($front_page) ?>"
And it sort of works, it creates an href where the link destination is empty. This is working on my current browser but will it work on all? Is it better to use absolute not relative links?
Thanks
Comments
<?php print l(t('Home'),
print l(t('Home'), '<front>');This will generate the whole link (anchor tag and all) and will even work if you change your front page to a different page at some time.
Contact me to contract me for D7 -> D10/11 migrations.
Dubble poste.
Dubble poste.
Contact me to contract me for D7 -> D10/11 migrations.
Works great. Thanks
Works great. Thanks
How can I just print the url?
How can I just print the url? I want to put an image inside my link.
Thanks
<?phpprint l('<img
Contact me to contract me for D7 -> D10/11 migrations.
Thanks
Thanks
Answer to have Image instead of Text as a link
Ive been using the
Ive been using the following:
It works fine on most pages, but the images dont show up on admin pages and some user pages (that you have to be logged in to see). From looking at the source code of the page it seems like their idential, so im really confused by this.
Thanks
Fixed with: print l('<img
Fixed with: