Deze tag kan worden gebruikt om de waarde terug te geven van een attribuut van een bepaalde pagina.
Voeg in de template een tag in op deze manier: {page_attr key="extra1"}.
{page_attr key="extra1"}
Deze tag kan gebruikt worden om een waarde in te vullen om een miniatuur of een afbeelding op een pagina te plaatsen.
Voeg de tag toe in een sjabloon, zoals: {page_image}.
{page_image}
Deze tag kan worden gebruikt om een uitvoer te geven van elke smarty variabele in een wat meer leesbaar formaat. Dit is handig voor fouten zoeken en aanpassen van templates zodat je weet welke formaten en types data beschikbaar zijn.
Voeg de tag in de template in als: {dump item='the_smarty_variable_to_dump'}.
{dump item='the_smarty_variable_to_dump'}
Deze plugin geeft template designers toestemming gebruikers een afbeelding te laten selecteren wanneer ze de inhoud van een pagina aan het bewerken zijn. Het gedraagt zich net als de content plugin voor meerdere content blokken.
Voeg de tag in je pagina template op deze manier: {content_image block='afbeelding1'}.
{content_image block='afbeelding1'}
Voorbeeld:
Voorbeeld: gebruik de afbeeldingen uit: uploads/images map.
{content_image block='afbeelding1' dir='images'}
Deze plugin verwerkt de data in het "pagedata" blok van de inhoud pagina's door middel van smarty. Hierdoor kun je specifieke pagina data specificeren in een smarty zonder dat de template voor elke pagina aangepast moet worden.
{process_pagedata}
Op dit moment geen enkele.
Geeft de huidige datum en tijd weer. Wanneer er geen formaat is gegeven zal deze een standaard formaat hebben als 'Jan 01, 2004'.
Voeg simpelweg de tag in jouw template/pagina als: {current_date format="%A %d-%b-%y %T %Z"}
{current_date format="%A %d-%b-%y %T %Z"}
Geeft een link naar de w3c HTML validator terug.
Voeg simpelweg de tag in jouw template/pagina als: {valid_xhtml}
{valid_xhtml}
Geeft een link naar de w3c CSS validator.
Plaats simpelweg de tag in jouw template/pagina zoals: {valid_css}
{valid_css}
Druk de titel van de pagina af.
Plaats simpelweg de tag in jouw template/pagina zoals: {title}
{title}
(optioneel) assign (string) - Wijst het resultaat toe aan een smarty variabele met die naam.
Haalt stylesheet informatie van het systeem. Standaard haalt het alle stylesheets op die aan de huidige template zijn verbonden.
Plaats simpelweg de tag in jouw template/pagina head sectie zoals: {stylesheet}
{stylesheet}
Uses Javascript to enable content in an area to be expandable and collapsable on a mouse click.
Just insert the tag into your template/page like: {startExpandCollapse id="name" title="Click Here"} This is all the content the user will see when they click the title "Click Here" above. It will display all the content that is between the {startExpandCollapse} and {stopExpandCollapse} when clicked. {stopExpandCollapse} Note: If you intend to use this multiple times on a single page each startExpandCollapse tag must have a unique id.
{startExpandCollapse id="name" title="Click Here"} This is all the content the user will see when they click the title "Click Here" above. It will display all the content that is between the {startExpandCollapse} and {stopExpandCollapse} when clicked. {stopExpandCollapse}
The look of the title can be changed via css. The title is wrapped in a div with the id you specify.
startExpandCollapse takes the following parameters id - A unique id for the expand/collapse section. title - The text that will be displayed to expand/collapse the content. stopExpandCollapse takes no parameters
Enables content to be expandable and collapsable. Like the following:
Just insert the tag into your template/page like: {startExpandCollapse id="name" title="Click Here"}. Also, you must use the {stopExpandCollapse} at the end of the collapseable content. Here is an example: {startExpandCollapse id="name" title="Click Here"} This is all the content the user will see when they click the title "Click Here" above. It will display all the content that is between the {startExpandCollapse} and {stopExpandCollapse} when clicked. {stopExpandCollapse} Note: If you intend to use this multiple times on a single page each startExpandCollapse tag must have a unique id.
{startExpandCollapse id="name" title="Click Here"}
This plugin is deprecated. Users should now see the {site_mapper} plugin.
{site_mapper}
Prints out a sitemap.
Just insert the tag into your template/page like: {sitemap}
{sitemap}
Google adsense is a popular advertising program for websites. This tag will take the basic parameters that would be provided by the adsense program and puts them in a easy to use tag that makes your templates look much cleaner. See here for more details on adsense.
First, sign up for a google adsense account and get the parameters for your ad. Then just use the tag in your page/template like so: {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"}
All parameters are optional, though skipping one might not necessarily made the ad work right. Options are:
Shows the name of the site. This is defined during install and can be modified in the Global Settings section of the admin panel.
Just insert the tag into your template/page like: {sitename}
{sitename}
(optional) assign (string) - Assign the results to a smarty variable with that name.
This is actually just a wrapper tag for the Search module to make the tag syntax easier. Instead of having to use {cms_module module='Search'} you can now just use {search} to insert the module in a template.
{cms_module module='Search'}
{search}
Just put {search} in a template where you want the search input box to appear. For help about the Search module, please refer to the Search module help.
Prints the root url location for the site.
Just insert the tag into your template/page like: {root_url}
{root_url}
None at this time.
Repeats a specified sequence of characters, a specified number of times
Insert a tag similar to the following into your template/page, like this: {repeat string='repeat this ' times='3'}
{repeat string='repeat this ' times='3'}
Outputs a list of recently updated pages.
Just insert the tag into your template/page like: {recently_updated}
{recently_updated}
(optional) number='10' - Number of updated pages to show.
Example: {recently_updated number='15'}
(optional) leadin='Last changed' - Text to show left of the modified date.
Example: {recently_updated leadin='Last Changed'}
(optional) showtitle='true' - Shows the titleattribute if it exists as well (true|false).
Example: {recently_updated showtitle='true'}
(optional) css_class='some_name' - Warp a div tag with this class around the list.
Example: {recently_updated css_class='some_name'}
(optional) dateformat='d.m.y h:m' - default is d.m.y h:m , use the format you whish (php -date- format)
Example: {recently_updated dateformat='D M j G:i:s T Y'}
or combined:
{recently_updated number='15' showtitle='false' leadin='Last Change: ' css_class='my_changes' dateformat='D M j G:i:s T Y'}
This is actually just a wrapper tag for the Printing module to make the tag syntax easier. Instead of having to use {cms_module module='Printing'} you can now just use {print} to insert the module on pages and templates.
{cms_module module='Printing'}
{print}
Just put {print} on a page or in a template. For help about the Printing module, what parameters it takes etc., please refer to the Printing module help.
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.
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}
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.
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! */ }
Zie de global_content voor een beschrijving.
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.
{embed header=true}
{embed url="http://www.google.com"}
Add the following to your style sheet:
#myframe { height: 600px; }
If this option is used, it must be used identically in both calls, i.e: {embed header=true name=foo} and {embed name=foo url=http://www.google.com} calls.
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 to='http://www.cmsmadesimple.org'}
{redirect_url to='http://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'}
Een sjabloon (template) bepaalt hoe uw site er uitziet.
Maak het sjabloon hier aan en voeg tevens uw CSS aan het stylesheet-gedeelte toe, zodat u het uiterlijk van uw site zelf kunt bepalen.
Via deze pagina kunt u sjablonen aanpassen, verwijderen en nieuwe aanmaken.
Om een nieuw sjabloon aan te maken klikt u op Nieuw sjabloon .
Om hetzelfde sjabloon voor alle pagina's te gebruiken, kies Alle.
Om een sjabloon te kopiëren klik op het kopieerikoon en geef een naam op voor het nieuwe sjabloon.
Verzonden nadat een gebruiker in het beheer paneel is ingelogd.
Verzonden nadat een gebruiker in het beheer paneel is uitgelogd.
Verzonden voordat een nieuwe gebruiker wordt aangemaakt.
Verzonden nadat een nieuwe gebruiker is aangemaakt.
Verzonden voordat bewerkingen aan een gebruiker worden opgeslagen.
Verzonden nadat bewerkingen aan een gebruiker zijn opgeslagen.
Verzonden voordat een gebruiker uit het systeem wordt verwijderd.
Verzonden nadat een gebruiker uit het systeem is verwijderd.
Verzonden voordat een nieuwe groep wordt aangemaakt.
Verzonden nadat een nieuwe groep is aangemaakt.
Verzonden voordat een groepstoewijzing is opgeslagen.
Verzonden nadat een groepstoewijzing is opgeslagen.
Verzonden voordat bewerkingen aan een groep worden opgeslagen.
Verzonden nadat bewerkingen aan een groep zijn opgeslagen.
Verzonden voordat een groep uit het systeem wordt verwijderd.
Verzonden nadat een groep uit het systeem is verwijderd.
Verzonden voordat een nieuw stylesheet wordt aangemaakt.
Verzonden nadat een nieuw stylesheet is aangemaakt.
Verzonden voordat bewerkingen aan een stylesheet worden opgeslagen.
Verzonden nadat bewerkingen aan een stylesheet zijn opgeslagen.
Verzonden voordat een stylesheet uit het systeem wordt verwijderd.
Verzonden nadat een stylesheet uit het systeem is verwijderd.
Verzonden voordat een nieuw sjabloon wordt aangemaakt.
Verzonden nadat een nieuw sjabloon is aangemaakt.
Verzonden voordat bewerkingen aan een sjabloon worden opgeslagen.
Verzonden nadat bewerkingen aan een sjabloon zijn opgeslagen.
Verzonden voordat een sjabloon uit het systeem wordt verwijderd.
Verzonden nadat een sjabloon uit het systeem is verwijderd.
Verzonden voordat een sjabloon wordt verzonden naar smarty voor verwerking.
Verzonden nadat een sjabloon is verwerkt door smarty.
Verzonden voordat een nieuw HTML blok wordt aangemaakt.
Verzonden nadat een nieuw HTML blok is aangemaakt.
Verzonden voordat bewerkingen aan een HTML blok worden opgeslagen.
Verzonden nadat bewerkingen aan een HTML blok zijn opgeslagen.
Verzonden voordat een HTML blok uit het systeem wordt verwijderd.
Verzonden nadat een HTML blok uit het systeem is verwijderd.
Verzonden voordat een HTML blok wordt verzonden naar smarty voor verwerking.
Verzonden nadat een HTML blok is verwerkt door smarty.
Verzonden voordat bewerkingen aan de inhoud worden opgeslagen.
Verzonden nadat bewerkingen aan de inhoud is opgeslagen.
Verzonden voordat inhoud uit het systeem wordt verwijderd.
Verzonden nadat inhoud uit het systeem is verwijderd.
Verzonden voordat een stylesheet wordt verzonden naar de browser.
Verzonden voordat inhoud wordt verzonden naar smarty voor verwerking.
Verzonden nadat inhoud is verwerkt door smarty.
Verzonden voordat gecombineerde html wordt verzonden naar de browser.
Verzonden voordat alle inhoud bedoeld voor smarty, wordt verzonden voor verwerking.
Verzonden nadat alle inhoud bedoeld voor smarty, is verwerkt.