La llamada de este módulo regresa el valor de los atributos de cierta pagina.
Insertar la etiqueta dentro de la plantilla asi: {page_attr key="extra1"}.
{page_attr key="extra1"}
Esta etiqueta (tag) puede ser usada para devolver el valor de la imagen o la vista miniatura de cierta pagina.
Insertar la etiqueta en la plantilla asi:{page_image}.
{page_image}
La llamada de este modulo puede usarse para vertir el contenido de cualquier variable smarty en un formato mas legible. Esto es util para depurar y editar plantillas, para saber el formato y tupos de una variable de datos.
En la plantilla, insertar la etiqueta asi:{dump item='the_smarty_variable_to_dump'}.
{dump item='the_smarty_variable_to_dump'}
This plugin allows template designers to prompt users to select an image file when editing the content of a page. It behaves similarly to the content plugin, for additional content blocks.
Just insert the tag into your page template like: {content_image block='image1'}.
{content_image block='image1'}
Example:
Example: use images from the uploads/image directory.
{content_image block='image1' dir='images'}
This plugin will process the data in the "pagedata" block of content pages through smarty. It allows you to specify page specific data to smarty without changing the template for each page.
{process_pagedata}
None at this time
Imprime la hora y fecha actuales. Si no se especifica un formato, por defecto usará el formato similar a: 'Jan 01, 2004'.
Inserte la etiqueta en su plantilla asi:{current_date format="%A %d-%b-%y %T %Z"}
{current_date format="%A %d-%b-%y %T %Z"}
Returns a link to the w3c HTML validator.
Just insert the tag into your template/page like: {valid_xhtml}
{valid_xhtml}
Returns a link to the w3c CSS validator.
Just insert the tag into your template/page like: {valid_css}
{valid_css}
Prints the title of the page.
Just insert the tag into your template/page like: {title}
{title}
(optional) assign (string) - Assign the results to a smarty variable with that name.
Gets stylesheet information from the system. By default, it grabs all of the stylesheets attached to the current template.
Just insert the tag into your template/page's head section like: {stylesheet}
{stylesheet}
Enables content to be expandable and collapsable. Like the following: Click here for more info - Here is all the info you will ever need...
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
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 bbe modified in the Global Settings section of the admin panel.
Just insert the tag into your template/page like: {sitename}
{sitename}
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.'; $lang['admin']['help_function_root_url'] = '
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.
{recently_updated number='15'}
(optional) leadin='Last changed' - Text to show left of the modified date.
{recently_updated leadin='Last Changed'}
(optional) showtitle='true' - Shows the titleattribute if it exists as well (true|false).
{recently_updated showtitle='true'}
(optional) css_class='some_name' - Warp a div tag with this class around the list.
{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)
{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.'; $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}
{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}
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}
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 smarty plugin is deprecated, and may not be included with further versions of CMS Made Simple. We recommend you use the formbuilder module and it's included contact form.
Display's a contact form. This can be used to allow others to send an email message to the address specified.
Just insert the tag into your template/page like: {contact_form email="yourname@yourdomain.com"} If you would like to send an email to multiple adresses, seperate each address with a comma.
{contact_form email="yourname@yourdomain.com"}
{contact_form email="yourname@yourdomain.com" subject_get_var="subject"}
Then call the page with the form on it like this: /index.php?page=contact&subject=test+subject
And the following will appear in the "Subject" box: "test subject"
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'}
Una Plantilla es lo que controla el aspecto del contenido del sitio.
Crea la plantilla aquí y luego añade tu CSS en la sección Hojas de Estilo para controlar el aspecto de todos sus elementos.
Esta página te permite editar, borrar y crear plantillas.
Para crear una nueva plantilla, haz click en Añadir plantilla.
Si quieres que todas las páginas usen la misma plantilla, haz click en Asignar a Todo.
si quieres duplicar una plantilla, haz click en Copiar y se te pedirá un nombre para la nueva plantilla duplicada.
Se envía al entrar un usuario en administración.
Se envía al salir un usuario de administración.
Se envía antes de crear un nuevo usuario.
Se envía al crear un nuevo usuario.
Se envía antes de modificar un usuario.
Se envía al modificar un usuario.
Se envía antes de eliminar un usuario.
Se envía al eliminar un usuario.
Se envía antes de crear un nuevo grupo.
Se envía al crear un nuevo grupo.
Sent before group assignments are saved.
Sent after group assignments are saved.
Se envía antes de modificar un grupo.
Se envía al modificar un grupo.
Se envía antes de eliminar un grupo.
Se envía al eliminar un grupo.
Se envía antes de crear una hoja de estilo.
Se envía al crear una hoja de estilo.
Se envía antes de modificar una hoja de estilo.
Se envía al modificar una hoja de estilo.
Se envía antes de eliminar una hoja de estilo.
Se envía al eliminar una hoja de estilo.
Se envía antes de crear una plantilla.
Se envía al crear una plantilla.
Se envía antes de modificar una plantilla.
Se envía al modificar una plantilla.
Se envía antes de eliminar una plantilla.
Se envía al eliminar una plantilla.
Se envía antes de que smarty procese una plantilla.
Se envía cuando smarty procesa una plantilla.
Se envía antes crear un bloque.
Se envía al crear un bloque.
Se envía antes modificar un bloque.
Se envía al modificar un bloque.
Se envía antes eliminar un bloque.
Se envía al eliminar un bloque.
Se envía antes de que smarty procese un bloque.
Se envía cuando smarty procesa un bloque.
Se envía antes de modificar contenido.
Se envía al modificar contenido.
Se envía antes de eliminar contenido.
Se envía al eliminar contenido.
Se envía antes de enviar la hoja de estilo al navegador.
Se envía antes de que smarty procese contenido.
Se envía cuando smarty ha procesado contenido.
Se envía antes de enviar HTML combinado al navegador.
Se envía antes de cualquier contenido destinado a smatry se procese.
Se envía al procesar cualquier contenido destinado a smatry.