rah_author
Published under current TXP projects
Show author’s username or real name.
Image: rah_author
Intro and description
Choose between an author’s username or real name. Also can link to the author’s infopage in a specific section, or to author’s writen articles. Used inside article forms or individual article pages.
List of features
- Outputs article’s author username or real name.
- Links it, shows it as plain text or only returns url.
Installation and usage
The general behavior stands: paste plugin code to the plugin installer textarea and run the automatic setup. Then just activate the plugin and you are ready to use new tags that plugin includes like others.
Attributes
The tag is <txp:rah_author /> and attributes for it follow.
format
What should tag output: link, plain author name or url. Available values: link, author and url.
Default: format="author" Example: "link"
section
If used, links to selected section. Use section name as attribute, and btw, remember to create the section first. Default is unset.
Default: section="" Example: "mysection"
userealname
If selected uses author’s real name instead of username, same way as <txp:author /> does.
Default: "" Example: userealname="1"
class
CSS-class of the link (a) if link is used as format.
Default: "" Example: class="author-name"
Example
<txp:rah_author format="link" userealname="1" />
Changelog
Version 0.2
- Removed
wraptag-attribute. - Removed
link-attribute. - Added
format-attribute. - Improved help documention.
- Improved and fixed code.
Version 0.1
- First release.