Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-11-02 16:48:31

From: Cyprus
Registered: 2004-11-20
Posts: 9,002
Website GitHub Mastodon Twitter

extend authors

Although I am not using it, I lve the new txp:authors tag and I believe that it could be extended so as to replace the rvm_privileged plugin. The new tag could work like:

<txp:if_authors name"john,mary,steve">
<txp:else />

Or even:

<txp:if_authors group="designer">
    <txp:authors wraptag="ul" break="li">
        <txp:author link="1" />
        (<txp:author_email />) 
<txp:else />
    <txp:if_authors group="publisher">
        <txp:author link="1" />

and possibly more relevant to the way I work.

<txp:if_authors group="publisher,designer">
    <txp:css format="link" name="future" />
<txp:else />
    <txp:css format="link" name="default" />

This actually is a general comment to include an if tag to all relevant tags – new and old. Although the examples above might look simplistic, the inventiveness of our users will probably use them in unexpected ways.

NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.


Board footer

Powered by FluxBB