Acest tag poate fi folosit pentru a returna valoarea atributelor pentru o pagina anume.
Inserati tagul in template astfel: {page_attr key="extra1"}.
{page_attr key="extra1"}
Acest tag poate fi folosit pentru returnarea imaginii sau a unui camp de miniaturi pentru o pagina anume.
Inserati tagul in template astfel: {page_image}.
{page_image}
Acest tag poate fi folosit pentru a afisa continutul oricarei variabile smarty formatat intr-o forma mai usor de citit. Este util pentru debugging si editare de template-uri, pentru a sti formatul si tipul de date disponibile.
Inserati tagul in template astfel: {dump item='variabila_smarty'}.
{dump item='variabila_smarty'}
Acest plugin permite designerilor de template-uri sa ceara utilizatorilor sa selecteze un fisier imagine cand se editeaza continutul unei pagini. Se comporta la fel ca plugin-ul de continut, pentru blocuri aditionale de continut.
Inserati tagul in template pagina astfel: {content_image block='image1'}.
{content_image block='image1'}
Exemplu:
Exemplu: folosire imagini din uploads/imagini .
{content_image block='image1' dir='imagini'}
Acest plugin va procesa datele din blocul "pagedata" al continutului paginilor prin smarty. Permite sa specificati date specifice unei pagini catre smarty fara a schimba template-ul pentru fiecare pagina.
{process_pagedata}
Nici unul in acest moment
Imprima data si ora curenta. Daca nu este dat un format, se va folosi un format similar cu 'Jan 01, 2004'.
Introduceti eticheta in sablon /pagina astfel: {current_date format="%A %d-%b-%y %T %Z"}
{current_date format="%A %d-%b-%y %T %Z"}
Afiseaza un link la w3c HTML validator.
Introduceti eticheta in sablon /pagina astfel: {valid_xhtml}
{valid_xhtml}
Afiseaza un link catre w3c CSS validator.
Introduceti eticheta in sablon /pagina astfel: {valid_css}
{valid_css}
Afiseaza titlul paginii.
introduceti eticheta in template/pagina astfel: {title}
{title}
(optional) assign (string) - Aloca rezultatul unei variabile smarty cu acel nume.
Obtine informatiile despre stylesheet-uri de la sistem. Implicit, ia toate stylesheet-urile atasate template-ului curent.
Introduceti eticheta in template/pagina in sectiunea head astfel: {stylesheet}
{stylesheet}
Foloseste Javascript pentru a permite continutului dintr-o zona sa fie expandaabil si colapsabil la clic de mouse.
Introduceti eticheta in template/pagina astfel: {startExpandCollapse id="name" title="Clic aici"} Acesta este continutul pe care utilizatorul il va vedea cand da clic pe titlul "Clic aici" de mai sus. Se va afisa tot continutul care este intre {startExpandCollapse} si {stopExpandCollapse} la clic. {stopExpandCollapse} Nota: Daca intentionati sa folositi acest cod de mai multe ori in o singura pagina, fiecare eticheta startExpandCollapse trebuie sa aiba un id unic.
{startExpandCollapse id="name" title="Clic aici"} Acesta este continutul pe care utilizatorul il va vedea cand da clic pe titlul "Clic aici" de mai sus. Se va afisa tot continutul care este intre {startExpandCollapse} si {stopExpandCollapse} la clic. {stopExpandCollapse}
Aspectul poate fi schimbat via css. Titlul este plasat intr-un div cu id-ul specificat de dumneavoastra.
startExpandCollapse primeste urmatorii parametri: id - Un id unic pentru sectiunea de expandare/colapsare. title - Textul care va fi afisat pentru a expanda/colapsa continutul. stopExpandCollapse nu primeste parametri.
Acest plugin este depreciat. Utilizatorii ar trebui sa foloseasca {site_mapper}.
{site_mapper}
Afiseaza un sitemap.
Introduceti eticheta in template/pagina astfel: {sitemap}
{sitemap}
Google adsense este un program de publicitate popular pentru situri. Aceasta eticheta va primi parametrii de baza care se dau in programul adsense si ii pune intr-o eticheta usor de folosit pentru a face template-urile mult mai curate. Vedeti aici mai multe detalii despre adsense.
Mai intai, inscrieti-va pentru un cont google adsense si luati parametrii pentru anunturi. Apoi folositi tagul in template/pagina astfel: {adsense ad_client="pub-random#" ad_width="120" ad_height="600" ad_format="120x600_as"}
{adsense ad_client="pub-random#" ad_width="120" ad_height="600" ad_format="120x600_as"}
Toti parametrii sunt optionali, desi daca sariti din ei e posibil ca anunturile sa nu functioneze corect. Optiunile sunt:
Afiseaza numele sitului. Acesta este definit in timpul instalarii si poate fi modificat in sectiunea de Setari globale a panoului de administrare.
Introduceti eticheta in template/pagina astfel: {sitename}
{sitename}
Aceasta eticheta este un wrapper pentru Modul cautare pentru a simplifica sintaxa. In loc sa folositi {cms_module module='Search'} puteti sa folositi {search} pentru a insera modulul in template.
{cms_module module='Search'}
{search}
Introduceti {search} in template unde doriti sa apara casuta de cautare. Pentru ajutor in privinta modulului de cautare, mergeti la Ajutor modul cautare.'; $lang['admin']['help_function_root_url'] = '
Printeaza locatia radacina a URL-ului sitului.
Introduceti eticheta in template/pagina astfel: {root_url}
{root_url}
Nici unul in acest moment.
Repeta o secventa specificata de caractere, de un numar de ori specificat
Inserati o eticheta ca cea care urmeaza in template/pagina, astfel: {repeat string='repeta acesta ' times='3'}
{repeat string='repeta acesta ' times='3'}
Afiseaza o lista de pagini actualizate recent.
Introduceti eticheta in template/pagina astfel: {recently_updated}
{recently_updated}
(optional) number='10' - Numarul de pagini actualizate care se afiseaza.
Exemplu: {recently_updated number='15'}
(optional) leadin='Ultima modificare' - Text care se afiseaza in stanga datei modificarii.
Exemplu: {recently_updated leadin='Ultima modificare'}
(optional) showtitle='true' - Afiseaza atributul titlu daca exista (true|false).
Exemplu: {recently_updated showtitle='true'}
(optional) css_class='un_nume' - Se pune un div cu aceasta clasa in jurul listei.
Exemplu: {recently_updated css_class='un_name'}
(optional) dateformat='d.m.y h:m' - implicit este d.m.y h:m , folositi formatu pe care il doriti (php -date- format)
Exemplu: {recently_updated dateformat='D M j G:i:s T Y'}
sau combinat:
{recently_updated number='15' showtitle='false' leadin='Ultima modificare: ' css_class='schimbari' dateformat='D M j G:i:s T Y'}
Este o eticheta care impacheteaza Modul printare pentru simplificarea sintaxei. In loc sa trebuiasca sa folositi codul {cms_module module='Printing'} se poate folosi {print} pentru a insera modulul in pagini si template-uri.
{cms_module module='Printing'}
{print}
Introduceti {print} in pagina sau template. Pentru ajutor despre Modulul de printare, ce parametri primeste etc., mergeti la Ajutor modul printare.'; $lang['admin']['help_function_oldprint'] = '
Creates a link to only the content of the page.
Just insert the tag into your template/page like: {oldprint}
{oldprint}
Example:
{oldprint text="Printable Page"}
This is actually just a wrapper tag for the News module to make the tag syntax easier. Instead of having to use {cms_module module='News'} you can now just use {news} to insert the module on pages and templates.
{cms_module module='News'}
{news}
Just put {news} on a page or in a template. For help about the News module, what parameters it takes etc., please refer to the News module help.'; $lang['admin']['help_function_modified_date'] = '
Prints the date and time the page was last modified. If no format is given, it will default to a format similar to 'Jan 01, 2004'.
Just insert the tag into your template/page like: {modified_date format="%A %d-%b-%y %T %Z"}
{modified_date format="%A %d-%b-%y %T %Z"}
Displays the metadata for this page. Both global metdata from the global settings page and metadata for each page will be shown.
Just insert the tag into your template like: {metadata}
{metadata}
Prints the menu text of the page.
Just insert the tag into your template/page like: {menu_text}
{menu_text}
None at this time.
This is actually just a wrapper tag for the Menu Manager module to make the tag syntax easier. Instead of having to use {cms_module module='MenuManager'} you can now just use {menu} to insert the module on pages and templates.
{cms_module module='MenuManager'}
{menu}
Just put {menu} on a page or in a template. For help about the Menu Manager module, what parameters it takes etc., please refer to the Menu Manager module help.'; $lang['admin']['help_function_last_modified_by'] = '
Prints last person that edited this page. If no format is given, it will default to a ID number of user .
Just insert the tag into your template/page like: {last_modified_by format="fullname"}
{last_modified_by format="fullname"}
Creates an image tag to an image stored within your images directory
Just insert the tag into your template/page like: {image src="something.jpg"}
{image src="something.jpg"}
Creates a gallery out of a folder of images (.gif, .jpg or .png). You can click on a thumbnail image to view the bigger image. It can use captions which are based on the image name, minus the file extension. It follows web standards and uses CSS for formatting. There are classes for various elements and for the surrounding 'div'. Check out the CSS below for more information.
Just insert the tag into your template or page like:
{ImageGallery picFolder="uploads/images/yourfolder/"}
Where picFolder is the folder where your images are stored.
It can take quite a few parameters, but the example above is probably good for most people :)
A More Complex Example
'div id' is 'cdcovers', no Caption on big images, thumbs have default caption. 'alt' tags for the big image are set to the name of the image file without the extension and the big image 'title' tag is set to the same but with an extension. The thumbs have the default 'alt' and 'title' tags. The default being the name of the image file without the extension for 'alt' and 'Click for a bigger image...' for the 'title', would be:
{ImageGallery picFolder="uploads/images/cdcovers/" divID="cdcovers" bigPicCaption="none" bigPicAltTag="name" bigPicTitleTag="file"}
It's got lots of options but I wanted to keep it very flexible and you don't have to set them, the defaults are sensible.
/* Image Gallery - Small Thumbnail Images */ .thumb { margin: 1em 1em 1.6em 0; /* Space between images */ padding: 0; float: left; text-decoration: none; line-height: normal; text-align: left; } .thumb img, .thumb a img, .thumb a:link img{ /* Set link formatting*/ width: 100px; /* Image width*/ height: 100px; /* Image height*/ display: inline; padding: 12px; /* Image padding to form photo frame */ /* You can set the above to 0px = no frame - but no hover indication! Adjust other widths ot text!*/ margin: 0; background-color: white; /*Background of photo */ border-top: 1px solid #eee; /* Borders of photo frame */ border-right: 2px solid #ccc; border-bottom: 2px solid #ccc; border-left: 1px solid #eee; text-decoration: none; } .thumb a:visited img { background-color: #eee; /*Background of photo on hover - sort of a light grey */ } .thumb a:hover img { background-color: #dae6e4; /*Background of photo on hover - sort of light blue/green */ } .thumbPicCaption { text-align: center; font-size: smaller; margin: 0 1px 0 0; padding: 0; width: 124px; /* Image width plus 2 x padding for image (photo frame) - to center text on image */ /* display: none; if you do not want to display this text */ } /* Image Gallery - Big Images */ .bigPic { margin: 10px 0 5px 0; padding: 0; line-height: normal; } .bigPicCaption { /*Big Image Name - above image above .bigpicImageFileName (Without extension) */ text-align: center; font-weight: bold; font-variant: small-caps; font-weight: bold; margin: 0 1px 0 0; padding: 0; width: 386px; /* Image width plus 2 x padding for image (photo frame) - to center text on image */ /* display: none; if you do not want to display this text */ } .bigPic img{ /* Big Image settings */ width: 350px; /* Width of Big Image */ height: auto; display: inline; padding: 18px; /* Image padding to form photo frame. */ /* You can set the above to 0px = no frame - but no hover indication! Adjust other widths ot text!*/ margin: 0; background-color: white; /* Background of photo */ border-top: 1px solid #eee; /* Borders of photo frame */ border-right: 2px solid #ccc; border-bottom: 2px solid #ccc; border-left: 1px solid #eee; text-decoration: none; text-align: left; } .bigPicNav { /* Big Image information: 'Image 1 of 4' and gallery navigation */ margin: 0; width: 386px; /* Image width plus 2 x padding for image (photo frame) - to center text on image */ padding: 0; color: #000; font-size: smaller; line-height: normal; text-align: center; /* display: none; if you do not want to display this text. Why? You Lose Navigation! */ }
See the help for global_content for a description.
Display's a number that represents your google pagerank.
Just insert the tag into your template/page like: {googlepr}
{googlepr}
Search's your website using Google's search engine.
Just insert the tag into your template/page like: {google_search} Note: Google needs to have your website indexed for this to work. You can submit your website to google here.
{google_search}
The look of the textbox and button can be changed via css. The textbox is given an id of textSearch and the button is given an id of buttonSearch.
Inserts a global content block into your template or page.
Just insert the tag into your template/page like: {global_content name='myblob'}, where name is the name given to the block when it was created.
{global_content name='myblob'}
Dumps all the known smarty variables into your page
Just insert the tag into your template/page like: {get_template_vars}
{get_template_vars}
None at this time
Enable inclusion (embeding) of any other application into the CMS. The most usual use could be a forum. This implementation is using IFRAMES so older browsers can have problems. Sorry bu this is the only known way that works without modifing the embeded application.
Just insert the tag into your template/page like: {embed url=http://www.google.com/}
{embed url=http://www.google.com/}
Add the following to your style sheet:
#myframe { height: 600px; }
You must include in your page content {embed url=..} and in the "Metadata:" section (advanced tab) you must put {embed header=true}. Also be sure to put this in between the "head" tags of your template: {metadata}
Creates a link to edit the page
Just insert the tag into your template/page like: {edit}
{edit}
Prints the description (title attribute) of the page.
Just insert the tag into your template/page like: {description}
{description}
Prints the date and time the page was created. If no format is given, it will default to a format similar to 'Jan 01, 2004'.
Just insert the tag into your template/page like: {created_date format="%A %d-%b-%y %T %Z"}
{created_date format="%A %d-%b-%y %T %Z"}
This is where the content for your page will be displayed. It's inserted into the template and changed based on the current page being displayed.
Just insert the tag into your template like: {content}.
{content}
{content block="Second Content Block"}
Now, when you edit a page there will a textarea called "Second Content Block".
Example of passing page content to a User Defined Tag as a parameter:
{content assign=pagecontent} {table_of_contents thepagecontent="$pagecontent"}
This tag is used to insert the current version name of CMS into your template or page. It doesn't display any extra besides the version name.
This is just a basic tag plugin. You would insert it into your template or page like so: {cms_versionname}
{cms_versionname}
It takes no parameters.
This tag is used to insert the current version number of CMS into your template or page. It doesn't display any extra besides the version number.
This is just a basic tag plugin. You would insert it into your template or page like so: {cms_version}
{cms_version}
Author: Ted Kulp
Version: 1.1
Modified: Martin B. Vestergaard
Version: 1.41
Modified: Russ Baldwin
Version: 1.42
Modified: Marcus Bointon
Version: 1.43
Modified: Tatu Wikman
Version: 1.44
Modified: Hans Mogren
Version: 1.45
Change History: 1.46 - Fixes a problem with too many queries when using the dir=start option. 1.45 - Added a new option for "dir", "up", for links to the parent page e.g. dir="up" (Hans Mogren). 1.44 - Added new parameters "ext" and "ext_info" to allow external links with class="external" and info text after the link, ugly hack but works thinking about rewriting this(Tatu Wikman) 1.43 - Added new parameters "image" and "imageonly" to allow attachment of images to be used for page links, either instead of or in addition to text links. (Marcus Bointon) 1.42 - Added new parameter "anchorlink" and a new option for "dir" namely, "anchor", for internal page links. e.g. dir="anchor" anchorlink="internal_link". (Russ) 1.41 - added new parameter "href" (LeisureLarry) 1.4 - fixed bug next/prev linking to non-content pages. (Thanks Teemu Koistinen for this fix) 1.3 - added option "more" 1.2 - by Martin B. Vestergaard
Creates a link to another CMSMS content page inside your template or content. Can also be used for external links with the ext parameter.
Just insert the tag into your template/page like: {cms_selflink page="1"} or {cms_selflink page="alias"}
{cms_selflink page="1"}
{cms_selflink page="alias"}
Version: 1.0
Change History: None
This tag is used to insert modules into your templates and pages. If a module is created to be used as a tag plugin (check it's help for details), then you should be able to insert it with this tag.
It's just a basic tag plugin. You would insert it into your template or page like so: {cms_module module="somemodulename"}
{cms_module module="somemodulename"}
There is only one required parameter. All other parameters are passed on to the module.
Author: Marcus Deglos <md@zioncore.com>
Version: 1.7
Change History: 1.1 - Modified to use new content rewrite (wishy) 1.2 - Added parameters: delimiter, initial, and root (arl) 1.3 - Added parameter: classid (tdh / perl4ever) 1.4 - Added parameter currentclassid and fixed some bugs (arl) 1.5 - Modified to use new hierarchy manager 1.6 - Modified to skip any parents that are marked to be "not shown in menu" except for root 1.7 - Added root_url parameter (elijahlofgren)
Prints a breadcrumb trail .
Just insert the tag into your template/page like: {breadcrumbs}
{breadcrumbs}
Change History: Update to version 1.1 from 1.0 2006/07/19 Russ added the means to insert a title, a tabindex and a class for the anchor link. Westis added accesskey and changed parameter names to not include 'anchorlink'.
Makes a proper anchor link.
Just insert the tag into your template/page like: {anchor anchor='here' text='Scroll Down'}
{anchor anchor='here' text='Scroll Down'}
This is actually just a wrapper tag for the Menu Manager module to make the tag syntax easier, and to simplify creating a sitemap.
Just put {site_mapper} on a page or in a template. For help about the Menu Manager module, what parameters it takes etc., please refer to the Menu Manager module help.
By default, if no template option is specified the minimal_menu.tpl file will be used.
Any parameters used in the tag are available in the menumanager template as {$menuparams.paramname}
{$menuparams.paramname}
This plugin allows you to easily redirect to a specified url. It is handy inside of smarty conditional logic (for example, redirect to a splash page if the site is not live yet).
Simply insert this tage into your page or template: {redirect_url urle='www.cmsmadesimple.org'}
{redirect_url urle='www.cmsmadesimple.org'}
This plugin allows you to easily redirect to another page. It is handy inside of smarty conditional logic (for example, redirect to a login page if the user is not logged in.)
Simply insert this tage into your page or template: {redirect_page page='some-page-alias'}
{redirect_page page='some-page-alias'}
Un template este acel lucru care controleaza aspectul continutului.
Creati layoutul aici si adaugati de asemenea CSSul vostru in sectiunea Stylesheet pentru a controla aspectul diferitelor elemente.
Aceasta pagina permite editarea, stergerea si crearea templateurilor.
Pentru crearea unui nou template dati click pe butonul Adauga un nou template.
Daca doriti setarea aceluiasi template pentru toate paginile dati click pe linkul Seteaza pentru intreg continutul.
Daca doriti duplicarea unui template dati click pe icoana Copiere si vi se va solicita introducerea unui nume pentru noul template.
Trimis dupa ce un utilizator se autentifica in panoul de administrare.
Trimis dupa ce un utilizator iese din panoul de administrare.
Trimis inainte de crearea unui nou utilizator.
Trimis dupa ce un utilizator nou este creat.
Trimis inainte ca modificarile aduse unui utilizator sa fie salvate.
Trimis dupa ce modificarile aduse unui utilizator sunt salvate.
Trimis inainte ca un utilizator sa fie sters din sistem.
Trimis dupa ce un utilizator este sters din sistem.
Trimis inainte ca un grup nou sa fie creat.
Trimis dupa ce un grup nou este creat.
Sent before group assignments are saved.
Sent after group assignments are saved.
Sent before edits to a group are saved.
Sent after edits to a group are saved.
Sent before a group is deleted from the system.
Sent after a group is deleted from the system.
Sent before a new stylesheet is created.
Sent after a new stylesheet is created.
Sent before edits to a stylesheet are saved.
Sent after edits to a stylesheet are saved.
Sent before a stylesheet is deleted from the system.
Sent after a stylesheet is deleted from the system.
Sent before a new template is created.
Sent after a new template is created.
Sent before edits to a template are saved.
Sent after edits to a template are saved.
Sent before a template is deleted from the system.
Sent after a template is deleted from the system.
Sent before a template is sent to smarty for processing.
Sent after a template has been processed by smarty.
Sent before a new global content block is created.
Sent after a new global content block is created.
Sent before edits to a global content block are saved.
Sent after edits to a global content block are saved.
Sent before a global content block is deleted from the system.
Sent after a global content block is deleted from the system.
Sent before a global content block is sent to smarty for processing.
Sent after a global content block has been processed by smarty.
Sent before edits to content are saved.
Sent after edits to content are saved.
Sent before content is deleted from the system.
Sent after content is deleted from the system.
Sent before the sytlesheet is sent to the browser.
Sent before content is sent to smarty for processing.
Sent after content has been processed by smarty.
Sent before the combined html is sent to the browser.
Sent before any content destined for smarty is sent to for processing.
Sent after any content destined for smarty has been processed.