Welcome, Guest
Username Password: Remember me

Link title of website to home page
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Link title of website to home page

Link title of website to home page 12 years, 8 months ago #5201

  • cchevy
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Would like to link the title of the mobile website on the top (frontpage and articles view) to the homepage. 

I know it's in here /templates/mobile_pda/html/com_content/article and /frontpage, but I don't know where/what to insert. I think this would contribute for an easier navigation.

Any help is much appreciated. 

Re: Link title of website to home page 12 years, 8 months ago #5219

  • Barnabas
  • OFFLINE
  • Moderator
  • Posts: 329
  • Karma: 6
Hi,
I have experimented with this and have some suggestions.

If you use module mod_mj_header (from the backend Extensions > Module Manager )
you can set the text to be
<a href="http://www.sitename.com/">{{sitename}}</a>
(This may not be efficient)
you will need 3 copies of the module and publish in
mj_imode_header
mj_pda_header
mj_wap_header

The iphone is a special case and is complicated.
The sitename is inserted in either
packages/templates15/mobile_iphone/index.php (in the tar package)
or
packages/templates16/mobile_iphone/index.php
 
div class="toolbar">
<h1><?php /** @var JSite $app */ $app =& JFactory::getApplication(); echo $app->getCfg('sitename'); ?></h1>
 

and you would have to hard code the sitename into the code and remember to maintain it.
 
div class="toolbar">
<h1><a href="http://www.sitename.com">SuperSite</a></h1>
 

Anyone else feel free to contribute to the thread.
  • Page:
  • 1
Time to create page: 0.17 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.