1
enquirer54
Changing navigation links on front page
  • 2010/11/2 8:07

  • enquirer54

  • Just popping in

  • Posts: 7

  • Since: 2010/10/30


I'm currently using the Kris theme (I'm new to Xoops). It has various navigation links on the home page. Can you tell me how to change these to refer to say, the main page for a classifieds module, news module etc. Currently it looks like this: # Accueil # <{if !$xoops_isuser}> Module 1a # Module 2a # <{else}> Navigation # Module 1 # Module 2 # Module 3 # <{if $xoops_isadmin}> Module 6 # <{/if}> <{/if}> Contact Where can I find a list of all the smarty? tags - I assume that is what is contained within the {}. Many thx.

2
underdog
Re: Changing navigation links on front page
  • 2010/11/2 8:15

  • underdog

  • Just popping in

  • Posts: 44

  • Since: 2007/6/21


# Accueil
# <{if !$xoops_isuser}> Module 1a
# Module 2a
# <{else}> Navigation
# Module 1
# Module 2
# Module 3
# <{if $xoops_isadmin}> Module 6
# <{/if}> <{/if}> Contact

What you could do is change the text #Accueil to a real link
using <a href ... etc.
The top navigation is not generated from the database, so you have to change those texts manually.

Figure out the url of a main page of a module (like classifieds) where you would like your user to land after he clicks the link and then put that url in the <a href... link. Hope it helps.

Quote:
Where can I find a list of all the smarty? tags - I assume that is what is contained within the {}
Yes, those are the smarty tags, but they vary per page.
Usually the contents of those tags get assigned in the actual PHP code. It's better to look there, IMHO.

3
kris_fr
Re: Changing navigation links on front page
  • 2010/11/2 10:05

  • kris_fr

  • Theme Designer

  • Posts: 1009

  • Since: 2005/12/31


hi,

i think, link in themename/xotpl/globalnav.html or xo_globalnav.html
and text in themename/languages/yourlanguage/main.php

4
Tarik
Re: Changing navigation links on front page
  • 2010/11/2 13:15

  • Tarik

  • Not too shy to talk

  • Posts: 170

  • Since: 2010/2/3 1


Here is a list of smarty variables that can be used in the theme.html
http://xoops-tips.com/modules/news/article.php?storyid=12
Some people like what you do,
-- some people hate what you do,
---- but most people simply don’t give a damn.

5
enquirer54
Re: Changing navigation links on front page
  • 2010/11/7 13:55

  • enquirer54

  • Just popping in

  • Posts: 7

  • Since: 2010/10/30


So I checked the html file connected with this and it looks like this:
<html>
<head>
<title>Untitled document</title>
</head>
<body>
<ul id="xo-globalnav" class="x2-nl x2-navigation">
<!-- menu en mode anonyme -->
<li><a href="<{xoAppUrl /}>" accesskey="a" title="Accueil">Home</a></li>
<{if !$xoops_isuser}>
<li><a href="<{xoAppUrl modules/myCredits/}>" title="Modules 1a">Module 1a</a></li>
<li><a href="<{xoAppUrl modules/google/}>" title="Modules 2a">Module 2a</a></li>
<{else}>
<!-- menu en mode enregistré -->
<li class="x2-label">Navigation</li>
<li><a href="<{xoAppUrl modules/news/}>" title="Modules 1">Module 1</a></li>
<li><a href="<{xoAppUrl modules/newbb/}>" title="Modules 2">Module 2</a></li>
<li><a href="<{xoAppUrl modules/xcgal/}>" title="Modules 3">Module 3</a></li>
<{if $xoops_isadmin}>
<!-- lien supplémentaire si je suis administrateur -->
<li><a href="<{xoAppUrl modules/xoopsinfo/}>" title="Modules 6">Module 6</a></li>
<{/if}>
<{/if}>
<li><a href="<{xoAppUrl modules/contact/}>" accesskey="c" title="Contact">Contact</a></li>
</ul>
</body>
</html>

If I change any of these titles e.g.

<li><a href="<{xoAppUrl /}>" accesskey="a" title="Accueil">Accueil</a></li>

to

<li><a href="<{xoAppUrl /}>" accesskey="a" title="Home">Home</a></li>

it makes no difference - what have I missed? [cleared cache etc]

6
ghia
Re: Changing navigation links on front page
  • 2010/11/8 1:00

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Probably you need to have general preference 'check for template changes' on, while modifying.

Login

Who's Online

231 user(s) are online (147 user(s) are browsing Support Forums)


Members: 0


Guests: 231


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits