1 peter_lt Jul 02, 2008 05:14
3 john Jul 03, 2008 07:30
The best way I found was to use this...
<a href="<?php echo htmlspecialchars($url); ?>#navbar" title="Jump to page navigation">Navigation</a>
4 peter_lt Jul 03, 2008 07:33
Hi there,
Thanks for the suggestion.
esanchez wrote:
You can put the links to the Top or Bottom inside the index.main.php file before and after the "START OF POSTS" section.
That's what I tried first...
// ----------------------------- END OF "Menu" CONTAINER -----------------------------
?>
<li><a href="#pageFooter" title="Link: Jump to Navigation Bar">Navigation</a></li>
</ul>
bombs me out to a directory listing with an address URL of:
http://localhost/car2blog/skins/c2custom/#pageFooter
Regards,
Steve (Peter S)
[url=http://www.caronia2.info]Caronia Timeline Webmaster[/url]
5 peter_lt Jul 03, 2008 07:39
Hello Folks,
Having given this some thought, I'm guessing that the actual page URL could
be gathered from the paging widget, it's just a question of finding the variable
that's being tested to establish the current page. I'll investigate further...
Regards,
Steve (Peter S)
[url=http://www.caronia2.info]Caronia Timeline Webmaster[/url]
6 esanchez Jul 03, 2008 07:46
Steve,
it will help a bit more if you could paste more of the code so we can see the section you're working with...
so far from what you've posted here, I'm not sure how i can help.
could you also provide the actualy link you want to see on your blog page? did you try hardcoding it?
7 peter_lt Jul 03, 2008 15:40
Hello Edgar,
esanchez wrote:
it will help a bit more if you could paste more of the code so we can see the section you're working with...
I followed the advice that you gave in your first reply, hard-coded just above
the main section just as you suggested...
// ----------------------------- END OF "Menu" CONTAINER -----------------------------
?>
<li><a href="#pageFooter" title="Jump to page navigation">Navigation</a></li>
</ul>
</div>
<!-- =================================== START OF MAIN AREA =================================== -->
with the results as outlined in my reply.
esanchez wrote:
could you also provide the actual link you want to see on your blog page? did you try hardcoding it?
Supposing that I'm on this page...[url=http://www.caronia2.info/car2blog/index.php?blog=2&paged=2]Caronia Blog[/url]
As I've removed the top paging links, I want to place the word Navigation
into the top menu next to the Home | Timeline links with a link to the page
footer. So, the placement of my hard coding on index_main page is nearly
there, all I need to do is establish a result that gives me a url of the current
page. If I were to hardcode this...
"http://www.caronia2.info/car2blog/index.php#pageFooter"
it would only ever jump to the bottom of the opening page.
Steve
8 john Jul 03, 2008 15:58
I do suggest you try the code I posted above...
It gives a url specific jump to page bottom/ jump to page top everytime
9 peter_lt Jul 04, 2008 04:39
Hello John,
When I tried your method, I got an undefined index error, whatever that
is, so I modified the code somewhat, in the index.main file as below...
// ----------------------------- END OF "Menu" CONTAINER -----------------------------
$nuri = $_SERVER["REQUEST_URI"];
echo '<li> <a class="navlt" href="'.htmlspecialchars($nuri).'#pageFooter" title="Jump to page navigation">Navigation</a></li>
';
?>
</ul>
</div>
<!-- =================================== START OF MAIN AREA =================================== -->
and it now works as intended. The upgrade from 1.10.x to 2.4 is still a work
in progress, but I'm fairly happy with the results so far.
Thanks for your help guys.
Regards,
Steve (Peter S.)
[url=http://www.caronia2.info/car2blog/]Caronia Timeline Webmaster[/url]
have you tried hardcoding the link?
adding the links is possible by editing your skin. You can put the links to the Top or Bottom inside the index.main.php file before and after the "START OF POSTS" section.
Give it a try.