Can You Set "More Article Box" to Relative Value?

Posted in: Newspaper
Post count: 6

Playing around with the “more article box” and it seems to set its position based on reaching a certain length on the screen. This means that it appears (relatively) earlier on longer articles than it does on shorter articles, making it very inconsistent to the user.

Is there a way you can set the box to appear once a certain percentage of the page has been scrolled, rather than a fixed attribute?

Please let me know. I love the feature, but this minor inconsistency is very frustrating.

Post count: 6600

Hi,

You can do it from here: http://screencast.com/t/maBAb2zF You will have to change it to determine the page length then add an expression which gets the value you insert in the panel and sets it to be the percentage of the page to be scrolled until the box appears.
If you don’t have any JavaScript knowledge and you don’t know how to do it we recommend you can get a freelancer from sites like: http://studio.envato.com/ if you don’t know how to do it yourself.

Thanks

Post count: 6

Lucian,

Thank you for taking the time to respond.

I believe I have working code, but I’m not exactly sure the precise spot to implement it, or how to allow the value to be adjusted through the admin panel.

Here’s the code (courtesy of user brasofilo on StackOverflow).

If you could lend me a few more minutes of your time to show me how to make use of this solution, I would greatly appreciate it.

Thank you in advance,
Jamie

Post count: 6600

Hi,

Based on your code you could try something like this in td_site.js file: http://screencast.com/t/mYGNhtWN0
Note that this was just a test and you need to be adjusted.
This is the code for it: http://pastebin.com/HTx5LGS8
You should work on that or get someone to help you also the code you’ve sent me needs to be customized for the theme.

Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.