Hi there,
I have tried, but there seemes to be no way to change the pnrender delimters from to {$example} - I want to do this because it is "bad form' (IMHO) to put HTML comments in urls.
TIA
-Lobos
--
-Lobos
Professional PHP Framework Services: Concept, Development and Deployment
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Change Smarty Delimiters
-
- Rank: Expert
- Registered: Dec 02, 2002
- Last visit: Apr 30, 2010
- Posts: 1474
-
**unknown user**
- Rank: Helper
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 676
If it's for yourself (not distributed) and you're OK with hacking the core, it's in /includes/pnRender.class.php
Code
// first, get a native Smarty object
$this->Smarty();
// begin holder tag (be nice to others)
$this->left_delimiter = '<!--[';
// end holder tag
$this->right_delimiter = ']-->';
Of course, if you mess with those, you'll break all the other module templates :) Or better yet, issue the above commands for your module only.
I don't know what you mean about putting them in URLs, how they appear in the template is quite irrelevant. I suppose you mean editing in something like Dreamweaver, you don't like how they appear as comments.
Safest bet, leave 'em alone, but that's your biz. -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
Just to clarify Martin's post a bit you can set your own delimiters for your own modules using pnRender. Like Martin has said the template code is never exposed to the browser so it's not really an issue aside from within an editor. Anyway the code to do this in your module would be
Code
$pnRender =& new pnRender('mymod');
// begin holder tag (be nice to others)
$pnRender->left_delimiter = '{';
// end holder tag
$pnRender->right_delimiter = '}';
-Mark
--
Visit My homepage and Zikula themes.
- Moderated by:
- Support
