List Info

Thread: http://pastie.caboo.se/14660/text




http://pastie.caboo.se/14660/text
user name
2006-09-24 15:02:10
Hi,

the above patch fixes a glitch in the display when
{{article.body}} or
{{article.excerpt}} is used and no excerpt was entered.
Before the
patch the template rendered the string "false"
instead of an empty one.

http://pastie.caboo
.se/14660/text

Andi


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Mephisto Blog" group.
To post to this group, send email to MephistoBloggooglegroups.com
To unsubscribe from this group, send email to
MephistoBlog-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/MephistoBlog
-~----------~----~----~----~------~----~------~--~---

http://pastie.caboo.se/14660/text
user name
2006-09-24 15:09:11
On 9/24/06, monodeckgooglemail.com <monodeckgooglemail.com> wrote:
>
> Hi,
>
> the above patch fixes a glitch in the display when
{{article.body}} or
> {{article.excerpt}} is used and no excerpt was entered.
Before the
> patch the template rendered the string
"false" instead of an empty one.
>
> http://pastie.caboo
.se/14660/text
>
> Andi

That was changed so you could do {% if article.excerpt %}. 
Obviously
it had some bad side effects like this.

No more trivial patches until you can prove with tests that
it works 

-- 
Rick Olson
http://weblog.techno-
weenie.net
http://mephistoblog.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Mephisto Blog" group.
To post to this group, send email to MephistoBloggooglegroups.com
To unsubscribe from this group, send email to
MephistoBlog-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/MephistoBlog
-~----------~----~----~----~------~----~------~--~---

http://pastie.caboo.se/14660/text
user name
2006-09-24 15:47:51

Rick Olson wrote:
> That was changed so you could do {% if article.excerpt
%}.  Obviously
> it had some bad side effects like this.

Yes. I tried this first, but it does only work for the
single.liquid
layout. Not so for the main page where Mephisto seems to set
the mode
for the Article.to_liquid call explicitly. Any hints
appreciated
(except waiting for .7 ;))

Thanks
Andi


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Mephisto Blog" group.
To post to this group, send email to MephistoBloggooglegroups.com
To unsubscribe from this group, send email to
MephistoBlog-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/MephistoBlog
-~----------~----~----~----~------~----~------~--~---

http://pastie.caboo.se/14660/text
user name
2006-09-24 16:57:16
The main page bug can be fixed in home.liquid.

- Rod


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Mephisto Blog" group.
To post to this group, send email to MephistoBloggooglegroups.com
To unsubscribe from this group, send email to
MephistoBlog-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/MephistoBlog
-~----------~----~----~----~------~----~------~--~---

http://pastie.caboo.se/14660/text
user name
2006-09-24 17:34:49
Works perfectly. Thanks for the pointer.

Andi


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Mephisto Blog" group.
To post to this group, send email to MephistoBloggooglegroups.com
To unsubscribe from this group, send email to
MephistoBlog-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/MephistoBlog
-~----------~----~----~----~------~----~------~--~---

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )