Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
9 - 1 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Changing navigation links on front page
by ghia on 2010/11/8 1:00:23

Probably you need to have general preference 'check for template changes' on, while modifying.
Re: Changing navigation links on front page
by enquirer54 on 2010/11/7 13:55:48

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]
Re: Changing navigation links on front page
by Tarik on 2010/11/2 13:15:08

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
Re: Changing navigation links on front page
by kris_fr on 2010/11/2 10:05:35

hi,

i think, link in themename/xotpl/globalnav.html or xo_globalnav.html
and text in themename/languages/yourlanguage/main.php
Re: Changing navigation links on front page
by underdog on 2010/11/2 8:15:55

le="color: #000000"><?php # 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.

Who's Online

200 user(s) are online (169 user(s) are browsing Support Forums)


Members: 0


Guests: 200


more...

Donat-O-Meter

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

Latest GitHub Commits