5

I have created a slider using bxSlider and it works perfectly, but in case to show all text that comes from Announcements List, I want to display only 100 characters and show read more link which it should redirect you to current item in Announcement list. Here is my slider: I.E

bx slider

And here is my Announcements list: enter image description here

I also tried to make this working Read more link in webpart but I could not achieve my goal.

I was wondering if someone could help me.

3
  • This is not really a SharePoint related question. Commented Jan 4, 2016 at 12:26
  • unfurtunately, it is; ... Commented Jan 4, 2016 at 16:15
  • Show your bxSlider code Commented Jan 4, 2016 at 18:07

1 Answer 1

2

@Atish solved my problem and his code was like this:

     <div>
     <a class="moveIt" href="/sites/contoso/Lists/Announcements/DispForm.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "ID") %>">Read more</a>
     </div>

And it is working perfectly

thanks @Atish

1
  • so this worked dynamically? did you put in a JSLink? can you provide more info... Commented Jan 17, 2017 at 21:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.