1. an image webpart linked to an image
2. a contetn editor webpart with some links to blogging policy
3. Blog posts webpart
Now I tried adding the CEWP webpart in this blog site below posts webpart. It doesnt adda ny read more link and basically I see no change in the site. But when I tried it in a new blog site it worked fine. Why not here..Can somebody help me out. in this blog site i have 33 posts already published and I have limited the number of items to display as 1-10 in a single page. Is this causing a problem. Also what is WebPartWPQ1? how do i check for this or what shud i make changes in the code. Is it not working becuase I am using it in an already existing blog site?
Sandhya
]]>I want to use the read more functionality on a announcement list. How can i make this possible?
I’m not really a progammer… :)
Is it possible to use this script on a announcement list? That would be great!
]]>Thank you. Yes I increased the height to reveal more rows OK. But when I click Read More I see the Body text below these rows, so you lose sight of the Title and the first few rows.
J
If you use something other than the default CSS, you may need to change this line:
.collapseText {height:26px;overflow:hidden}
Play with the height number until it looks right.
]]>Try this (changing the h = variable will change the threshold for the read more link):
if(typeof jQuery=='undefined'){
var jQPath = 'https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'
document.write('');
}
.collapseText {height:26px;overflow:hidden}
function collapseText(){
var h = 100,
html = "Read more...",
divs = $("div.ms-PostBody"),
i = divs.length, d;
while (i--) {
d = divs[i];
if (d.offsetHeight > h) {
$(d).addClass("collapseText").after(html);
}
}
$("a.expand").click(function(event){
$(event.target).parent().hide().prev().removeClass("collapseText");
$("html,body").scrollTop(event.pageY);
return false;
});
}
$(function() {
collapseText();
});
]]>