How to Include Smarty docs in Quanta
| From: | Pablo Veliz | Date: | Fri, 21 Dec 2001 21:31:18 +0000 |
| Subject: | How to Include Smarty docs in Quanta | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2367@lists.php.net to get a copy of this message | ||
I use Quanta+ for developing php sites using smarty, so I find very practical to have the smarty
documentation in quanta, well here is what I have done...
1. I'm using QuantaPlus 2.0.1 + Smarty 1.5.2 + Mandrake 8.0
2. I have installed quanta in /usr/share/apps/quanta, let call this dir QUANTADIR
# export QUANTADIR=/usr/share/apps/quanta
3. I have downloaded Smarty-1.5.2-doc.tar.gz and decompressed in QUANTADIR/doc
renaming the dir to "smarty"
# cd $QUANTADIR/doc
# tar zxvf /tmp/Smarty-1.5.2-doc.tar.gz
# mv doc smarty
4. Then I created (by hand) the smarty.docrc file
# cat > smarty.docrc
you don't have to do this, just copy and paste the following lines
------------------------------- cut here ---------------------------------
# KDE Config File
[Tree]
Doc dir=smarty
#top level elements
Top Element=Smarty
Smarty=Table of Contents,Overview,Installation,#Setting Up,#Smarty API,#Smarty Templates,Debugging
Console,Troubleshooting,Tips & Tricks,
Table of Contents=index.html
Overview=c20.htm
Installation=c74.htm
Setting Up=Constants,Configuration Variables,
Constants=c91.htm
Configuration Variables=x103.htm
Smarty API=API Functions,Template Resources,Template Prefilters,Template PostFilters,Template Cache
Handling Functions,
API Functions=c265.htm
Template Resources=x605.htm
Template Prefilters=x632.htm
Template PostFilters=x643.htm
Template Cache Handling Functions=x654.htm
Smarty Templates=Syntax,Config,Built-in Functions,Custom Functions,Variable Modifiers,
Syntax=c663.htm
Config=x735.htm
Built-in Functions=x746.htm
Custom Functions=x1215.htm
Variable Modifiers=x2071.htm
Debugging Console=c2396.htm
Troubleshooting=c2403.htm
Tips & Tricks=c2418.htm
------------------------------- cut here ---------------------------------
5. I hope this doesn't get wrapped in your email client, if so I cand send this gzip-uuencoded,
letme know
6. Start Quanta! and voila! you have the context help there automagically!!
- let's open a template (TIP: I rename my templates to filename.tpl.html)
- go to something and put the cursor there, something like {if .....
- press Ctrl+H and bingo! you have a jumped to the smarty docs explaining the if clause
- isn't it great!!
7. Maybe the autodoc could generate the smarty.docrc so we can have it in every release ? I could
help!