Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

resource plugin

 
Post new topic   Reply to topic    Smarty Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
blutech
Smarty n00b


Joined: 16 Aug 2004
Posts: 4
Location: england

PostPosted: Mon Aug 16, 2004 8:13 am    Post subject: resource plugin Reply with quote

Hi There,

This may have already been asked before, but I couldnt find the answer so far..

I have a customer resource type, which accesses data within a tree structure, the data can be accessed directly from the root of the tree, BUT I also allow you to access data via the current selected node.. Which means that the cached filename parsed to Smarty can look the same but would actually be a different file.

For instance.

fetch("path:.[template1.tpl]")

is the equi of

fetch("path:storage.templates.[template1.tpl]");

Three is no way within your "smarty_resource_####_source" file to return back the *actual* file accessed, where in the system could I override the file that is being stored within the cache? Basically I need to pre-parse the path/filename before it is accessed.

Anyone tried to do this before?

Thanks

Nick Halstead
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Plugins All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP