Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

resource naming tricky problem

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
blutech
Smarty n00b


Joined: 16 Aug 2004
Posts: 4
Location: england

PostPosted: Tue Aug 17, 2004 12:32 pm    Post subject: resource naming tricky problem 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:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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