Change excerpt length for post content feature slides
Posted 18 July 2012 - 12:15 PM
p.s. The fact that the feature slider only accepts one post category will become an issue at some point but we can deal with that later.
Posted 18 July 2012 - 05:01 PM
Here's the snippet to add:
As for the category... you can apply one category to a feature set. If you want to have different author pages with different sliders per category, apply the category to a feature set.
Posted 25 July 2012 - 12:40 PM
...to have it only activate on a singular page, which indeed it does. The echo shows that at the front page the $length is 45 (as set in the Pagelines preferences) and at the Feature page it returns 9999 as expected. The excerpt, however, is unaffected. Letting the filter set $length regardless of page type, does affect the frontpage but not the Feature page. It appears that the Feature section disregards the excerpt_length setting altogether.
Posted 25 July 2012 - 02:18 PM
Posted 26 July 2012 - 12:46 PM
Posted 26 July 2012 - 06:17 PM
Posted 26 July 2012 - 08:49 PM
I have a Feature set up out of the box. Works splendidly. The Feature shows an excerpt of the blog post next to the picture. This excerpt length does not change. I am not talking about excerpts on the frontpage or anywhere else, where indeed your code *does* work.
I will check the code tomorrow when I am back in the office, to see where exactly the cropping takes place.
Posted 27 July 2012 - 07:03 AM
Posted 27 July 2012 - 08:09 AM
...but relies on excerpts not being used elsewhere inside Pages which is true in my case. Instead of is_page() it should check for being on a Feature page. Even better, have a setting on the Feature metapage.
Posted 27 July 2012 - 09:11 AM
Posted 27 July 2012 - 10:18 AM
Posted 27 July 2012 - 11:18 AM
Posted 27 July 2012 - 12:26 PM
In my opinion this isn't an issue with PageLines
I completely understand. That is not, however, the impression I get when receiving a reply saying that what I was looking for is in fact doable and at the same time was presented with a solution. The solution didn't work (which is quite okay) and I commented on that, quite civilized I might add. The behaviour I am referring to, is the reply I was then met with...
Is there some reason why the code I provided earlier, which was correct as is, was edited in your application of it? We tested it as provided and it worked. Was there some compelling necessity to make it not work? Look at your edit. You've set the key number to 9999 with the change to 999. That's set up that the length is 9999, but that it has to change that to 999. LESS, not MORE Of course that's not going to work. I understand the desire to be creative, but if you're not expert in it, is it smart to change code?
I then went on to resolve the problem myself and did so. End of story. The Pagelines Frameworks is a brillant product and helped me save time on an internal project. To reiterate:
1) I ask a simple question
2) I get a perfectly good answer
3) I ask why it doesn't work as expected
4) I am pretty much told that it fails because I am stupid
5) I do what I should have done to begin with and browse the Feature Section code myself and upon realising that 2) is not even close, resolve the issue in a somewhat different manner and must then conclude that 4) is an invalid answer (not that it was acceptable in the first place)