Search found 17 matches

by Cel
Sun Feb 03, 2008 4:40 pm
Forum: General discussions
Topic: Permalink in variable
Replies: 6
Views: 3255

Hi,

[quote]Are you really sure you need to do that with smarty markup WITHIN an entry, instead of editing the entries.tpl template and using custom entryproperties to indicate if you need the output?[/quote]

This is the alternative method I was looking for. From the documentation of custom ...
by Cel
Sun Feb 03, 2008 3:35 pm
Forum: General discussions
Topic: Permalink in variable
Replies: 6
Views: 3255

Hi,

What I mean is that I need the variable for code that I want to put in the entry body text. (Which then would be parsed by smarty markup plugin).

Regards,
Cel
by Cel
Sat Feb 02, 2008 7:23 pm
Forum: General discussions
Topic: Permalink in variable
Replies: 6
Views: 3255

Hi Garvin,

I was hoping it would be something simple like this. However, this variable seems to be not available in the entry itself (i.e. the body text).

The documentation says it is just available in entries.tpl. I would like to decide on a case by case basis whether to include the social ...
by Cel
Fri Feb 01, 2008 10:58 pm
Forum: General discussions
Topic: Permalink in variable
Replies: 6
Views: 3255

Permalink in variable

Hi,

I need to construct the permalink of an entry with smarty or php. I would like to use it to dynamically generate buttons for social bookmarking of an entry. As far as I can tell there is not a smarty variable holding the permalink. What would be the simplest way to get it ?

Regards,
Cel
by Cel
Thu Jan 31, 2008 3:56 pm
Forum: Bugs
Topic: Smarty Markup in Entries
Replies: 18
Views: 12467

Hi Garvin,

With the changes from the patch everything works as expected. I have now enabled smarty markup for both static pages and entries.

Regards,
Cel
by Cel
Wed Jan 30, 2008 6:45 pm
Forum: Bugs
Topic: Smarty Markup in Entries
Replies: 18
Views: 12467

Hi Garvin,

I will test this tommorow and let you know.

Regards,
Cel
by Cel
Wed Jan 30, 2008 5:53 pm
Forum: Bugs
Topic: Smarty Markup in Entries
Replies: 18
Views: 12467

Yes I have checked with the new order. Smarty markup is now on top of the list. Still I can not enable smarty markup for both static pages and entries.
by Cel
Wed Jan 30, 2008 5:43 pm
Forum: Bugs
Topic: Smarty Markup in Entries
Replies: 18
Views: 12467

Hi Garvin,

That fixed the problem ! Although, the configuration of the Smarty Markup Plugin is now somewhat confusing, everything works as I want it to. I hope I do not run into similar problems when I enable smarty Markup for html nugget in the future :-)

Is there maybe a document that explains ...
by Cel
Wed Jan 30, 2008 4:21 pm
Forum: Bugs
Topic: Smarty Markup in Entries
Replies: 18
Views: 12467

Hi Garvin,

I did some further investigation. I have now disabled smarty markup for static pages and enabled it for entries. Static pages are now displayed correctly (with smarty markup !), but for normal entries I get an error message like:

Fatal error: Smarty error: [in smartymarkupplugin ...
by Cel
Tue Jan 29, 2008 11:17 pm
Forum: Bugs
Topic: Smarty Markup in Entries
Replies: 18
Views: 12467

That seems to be true. If I disable parsing of static pages and just enable parsing of entries the static page displays correctly.

However, I then get the same error with normal entries. It looks like normal entries are also parsed multiple times.
by Cel
Tue Jan 29, 2008 10:50 pm
Forum: Bugs
Topic: Smarty Markup in Entries
Replies: 18
Views: 12467

Maybe it is parsing twice ?

Once as a static page and then the result as an entry ?
by Cel
Tue Jan 29, 2008 10:37 pm
Forum: Bugs
Topic: Smarty Markup in Entries
Replies: 18
Views: 12467

Hi Garvin,

One more comment: I also noticed that entries.tpl generates a php file in templates_c when I just reload the static page.

Regards,
Cel
by Cel
Tue Jan 29, 2008 10:27 pm
Forum: Bugs
Topic: Smarty Markup in Entries
Replies: 18
Views: 12467

Hi,

Cleaning templates_c makes no difference. I get the same result.

However, I noticed that even when it produces the error message, the php file that the plugin generates in templates_c looks perfectly OK.

Here is the top part of it:

*********************************************
<?php ...
by Cel
Tue Jan 29, 2008 9:41 pm
Forum: Bugs
Topic: Smarty Markup in Entries
Replies: 18
Views: 12467

Hi Garvin,

You are right, I get this error on a static page if I turn on smarty markup for entry body text. It may be difficult to reproduce since it appeared to be working fine at first (maybe 2 hours). That's why I suspected that caching might have to de something with it.

Using {ldelim} {rdelim ...
by Cel
Tue Jan 29, 2008 8:43 pm
Forum: Bugs
Topic: Smarty Markup in Entries
Replies: 18
Views: 12467

Hi Garvin,

The error message that I get when turning smarty markup on for entries looks like this:

Fatal error: Smarty error: [in smartymarkupplugin:1232260604 line 4]: syntax error: unrecognized tag: window.open('displayresult.php'); return false; (Smarty_Compiler.class.php, line 446) in ...