Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt
The UrlShortener URL Shortener plugin provides an overview of all defined short URLs for articles and allows for editing or deleting them.

...

Code Block
languagephp
linenumberstrue
$coll = new cApiShortUrlCollection();

/** @var cApiShortUrl */ 
$item = $coll->create($uri, $idart, $idlang, $idclient);

...

  • cApiShortUrlCollection::ERR_IS_CLIENT_FOLDER
  • cApiShortUrlCollection::ERR_TOO_SHORT
  • cApiShortUrlCollection::ERR_INVALID_CHARS
  • cApiShortUrlCollection::ERR_IS_ARTICLE_ALIAS

Chains

NameDescription
Contenido.Backend.ConMetaEditFormAdditionalRowspiUsEditFormAdditionalRows, allows to add additional rows to the end of article form
Contenido.Action.con_meta_saveart.AfterCallpiUsConSaveArtAfter, this function is called after saving of article
Contenido.Frontend.AfterLoadPluginspiUsAfterLoadPlugins, this function is called after plugings have been loaded

Tables

NameDescription
con_pi_shorturldata table for the client article language shorturls

Settings

Area/TypeNameDescriptionDefault

Scope

url_shortenerdomain n/aSCGU