Help - Search - Members - Calendar
Full Version: Editing the extended entries link...
Movable Type Community Forum > Additional Resources > Tips and Tricks
bmk
This is what is used to mark the page in the place you want it to skip down to:
CODE
<a name="more"></a>


You give the place in the (individual) page a NAME like that.

And then you write the link to the page like this:
CODE
<a href="<$MTEntryLink$>#more">MORE...</a>


The link is the same.. so for example, say it's http://www.mngeo.com/geo/about.php

You would use this:
http://www.mngeo.com/geo/about.php#more

And it will go to the place that is named more on that page.  (I don't have a #more on that page, I am just showing you how the URL goes.)

Does that help?  :)

Brenna
persnit
What I want to do is when I create an extended entry and someone clicks on the "More..." link, I want that to take them directly to the extended part of the entry, not the top of the entire entry.

I am looking at the code:
CODE
<MTEntryIfExtended>
    <span class="extended"><a href="<$MTEntryLink$>#<$MTEntryID pad="1"$>">MORE...</a></span><br />
    </MTEntryIfExtended>


I know I need to target the link but exactly how would I change this?  Do I put the #targetname after the MTENTRYID code or replace it?

Hope this makes sense, I am not all here this morning.  :D

Thanks,

Jill
persnit
Yep, that is exactly what I needed to know and it worked like a charm.  Plus I didn't even notice that the "a name" coding was already in the individual entry pages.  :D

Thanks bunches!!

Jill
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.