CMS MADE SIMPLE FORGE

AdvancedContent

 

[#8965] When you use a function in a UDT you can' t edit page with Advanced Content Type

avatar
Created By: delaunay (pierrepercee)
Date Submitted: Thu Feb 21 06:35:20 -0500 2013

Assigned To:
Version: AdvancedContent 0.9.4.3
CMSMS Version: 1,11,4
Severity: Critical
Resolution: Invalid
State: Closed
Summary:
When you use a function in a UDT you can' t edit page with Advanced Content Type
Detailed Description:
If you declare a simple function (function test() {echo "World";} for example)
in UDT and use this UDT in your template you can't set Advanced Content type to
your page. In a page with Advanced content type already set if you add a UDT
with a function then you can't edit this page. It breaks the css links and it
returns a "404 error'.


History

Comments
avatar
Date: 2013-02-21 13:17
Posted By: Georg Busch (nan)

This is not a bug in AC but a normal behaviour of CMSms 1.11.
User defined tags are not processed anymore in backend.
Sorry, can't do anything.

You should create a regular Smarty plugin instead of the UDT.
This will work.
      
avatar
Date: 2013-02-23 04:51
Posted By: delaunay (pierrepercee)

It's very strange because the same UDT : function test{echo "world";}  works
well on front-side but you can't edit the page when content type is advanced
content. But when the type is "content" it works well and you can edit the page
(in fact when you try to "apply" it doesn't work and when you "send" it gives
errors).
When you say : "User defined tags are not processed anymore in backend.", for
normal content type they seems to be normally processed.
More than that if you have an UDT with just "echo "World";  and no declared
function it works well whatever the content type of the page is.
Declaring a function seems to be also problematic with the news module. As the {
} are using to declare a function in PHP I think there's something wrong in the
CMSMS core when parsing UDT.
      
Updates

Updated: 2013-02-21 13:17
resolution_id: => 9
state: Open => Closed