|
Post by missnoetic on Jun 9, 2007 21:10:58 GMT -5
Hi everyone, I hope this hasn't been asked! But I am trying to create a cut in my blog entries. I know on livejournal...it's called the LJ cut...but I did notice that we do have the option to do the extended (more) text...which is perfect, but what is the code I input...that links the person to not only the page with the extended entry but right at the beginning of that....(not where the comment box is). I hope I'm making sense, and I hope someone can help! I would really appreciate it! Thanks in advance.
|
|
|
Post by Carlos Phelps on Jun 11, 2007 10:08:14 GMT -5
What you are looking to do would require an anchor tag.
In your templates find the places you want the link to end up and add the following tag
next in your templates find the places the link is created, should look like this
then change it to
Notice that #more was added to {{pagelink}}
Save your templates and rebuild.
Hope this helps, Carlos
|
|
|
Post by Carlos Phelps on Jun 17, 2007 19:57:23 GMT -5
Here is a step by step for you. - Login to Greymatter
- Select Edit Templates
- Select Edit Main Index-Related Templates
- Go down to Index Entry Template: Extended Entries
- Paste the following into the text area
<div class="entry"> <h2>{{entrysubject}}</h2> {{entrymainbody}} <p class="post-by">Posted by {{authorsmartlink}} at {{hourhour}}:{{minuteminute}} {{ampm}} {{commentslink}} [<a href="{{pagelink}}#more" title="">more</a>]</p> </div><!-- end of entry --> - Save Template Changes
- Select Edit Templates
- Select Edit Entry Page-Related Templates
- In each template on this page located the tag {{entrymorebody}}
- Replace this line with
<a name="more"></a> {{entrymorebody}}
- Save Template Changes
- Select Return to Main Menu
- Select Rebuild Files
- Select Rebuild Everything
Note: Change the class "entry" and "post-by" to match your site. You should be done. Enjoy, Carlos
|
|
|
Post by missnoetic on Jul 30, 2007 2:07:50 GMT -5
Thanks so much guys! Carlos, I have tried what you told me to do...I will update with how it works out. Thanks again! ;D
|
|
|
Post by Carlos Phelps on Jul 30, 2007 9:27:36 GMT -5
You are welcome.
I am glad to hear it works the way you wanted.
Cheers, Carlos
|
|