Jump to content

Move "homepage" from categories


Guest saturnnights

Recommended Posts

Guest saturnnights

Okay, while everybody's on a roll here and I'm getting lots of help... :D

Right now, the default location of the Homepage link is in Categories. Since that's where I've put my product listing, and since I've moved my site_docs from the bottom to a box at the left, it makes sense that Homepage lives with the other navigation links and not with my products.

I know that this isn't as simple as it sounds because when I look at those box .tpl files, nothing in there indicates an easy copy/paste sort of solution. The Categories indeed has a fairly simple looking link, but the site_docs really blows my mind :)

I see that most people haven't moved Homepage from their Categories box, so maybe I'm just weird? :)

Thanks!

Mark

Link to comment
Share on other sites

Guest saturnnights

It is a simple copy & paste :)

The line in categories.tpl that has the homepage link begins with <li> and ends with </li>

Just cut that whole line out, and paste it directly beneath the <ul> in siteDocs.tpl

Thanks - I got the link out of Categories, but there's an empty bullet in site_docs now (Site Navigation on my site).

Take a peek: www.enamelanimal.net

Here's what I have in sitedoct.tpl

<!-- BEGIN: site_docs -->

<div class="boxTitleLeft">Site Navigation</div>

<div class="boxContentLeft">

<ul>

<li class="bullet"><a href="index.php" class="txtDefault">{LANG_HOME}</a></li>

<!-- BEGIN: a -->

<li class="bullet"><a href="index.php?act=viewDoc&amp;docId={DATA.doc_id}" class="txtDefault">{DATA.doc_name}</a></li>

<!-- END: a -->

</ul>

</div>

<!-- END: site_docs -->

Link to comment
Share on other sites

Guest saturnnights

Now in siteDocs.tpl, take out the {LANG_HOME} and replace it with the word, Homepage

Okay, I just did that and I still have the bullet and no link ;)

Drat...

What else can I try?

Thanks,

Mark

Link to comment
Share on other sites

;) Don't know what to tell you.

When I view your site, and view source, this is the code I see for that box:

	

<div class="boxTitleLeft">Site Navigation</div>

<div class="boxContentLeft">

	<ul>	

	<li class="bullet"><a href="index.php" class="txtDefault"></a></li>

	

		<li class="bullet"><a href="index.php?act=viewDoc&amp;docId=1" class="txtDefault">About Enamel Animal</a></li>

		

		<li class="bullet"><a href="index.php?act=viewDoc&amp;docId=2" class="txtDefault">Contact Us</a></li>

		

		<li class="bullet"><a href="index.php?act=viewDoc&amp;docId=5" class="txtDefault">How-To</a></li>



		

		<li class="bullet"><a href="index.php?act=viewDoc&amp;docId=4" class="txtDefault">Privacy Policy</a></li>

		

		<li class="bullet"><a href="index.php?act=viewDoc&amp;docId=3" class="txtDefault">Terms &amp; Conditions</a></li>

		

	</ul>

</div>

In siteDocs.tpl, the line should look like this:

<!-- BEGIN: site_docs -->

<div class="boxTitleLeft">Site Navigation</div>

<div class="boxContentLeft">

<ul>

<li class="bullet"><a href="index.php" class="txtDefault">Homepage</a></li>

<!-- BEGIN: a -->

<li class="bullet"><a href="index.php?act=viewDoc&amp;docId={DATA.doc_id}" class="txtDefault">{DATA.doc_name}</a></li>

<!-- END: a -->

</ul>

</div>

<!-- END: site_docs -->

If that is the change you've made, please try to upload the file again.

Link to comment
Share on other sites

Guest saturnnights

;) :)*/**/**/**/**/**/**/**/*

Okay, I looked at the code you just posted and compared it line-by-line with mine and I realized that I'd left the {} thingys in there... So I removed them and now it's perfect!! :D

Thanks for your patience - and help!

Mark

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...