Joomla - "paragraph resolution" in article
I have several articles on Joomla site (1.5). These articles are publicly available - you do not need to register to see their content.
I would like to add a paragraph (i.e. custom HTML) to some of these articles (the paragraph will be different for each article), and I would like this paragraph to be visible only to registered users. Unregistered users just see the article without a paragraph (or, perhaps, with teaser text instead of a paragraph, for example, "Register to see more information"). What's the best way to achieve this?
I guess one way to do this is to add a custom HTML module that will only be available to registered users. But since I want to display different HTML for each article, I think I will need to create a different module for each article where I want to display a paragraph. Is this unfounded?
My preferred way, conceptually (I'm only doing this to illustrate what I'm looking for), was to simply write a paragraph in the article editor, select it with the mouse, right-click and select "Make selected text visible to registered users only" ... But that doesn't exist (unless someone knows about a plug-in that achieves something like this?).
Is access to one module suitable for each article?
Thank!
I thought it was a very useful plugin, so I created it.
http://www.fijiwebdesign.com/products/article-access-plugin.html
Project page: http://code.google.com/p/joomla-article-access/
The plugin allows you to add access control to articles by defining parts of the article that can be viewed by specific user groups.
Various available groups are available:
- the guest
- registered
- Author
- editor
- publisher
- manager
- Administrator
- super administrator
To make part of an article visible to a specific group, edit the article as such:
{access view=registered}
Only registered users can view this portion of the article.
{/access}
To exclude a group from viewing an article, use an exclamation mark (!) In front of the group name.
{access view=!registered}
Any group other then registered can view this portion of the article.
{/access}
To add multiple groups, separate them with a comma (,).
{access view=registered,author,editor}
Only registered,author and editor usertypes can view this portion of the article.
{/access}
To add any group between two groups (inclusive), use a hyphen (-).
{access view=registered-editor}
Only registered,author and editor usertypes can view this portion of the article.
{/access}
To add any group above or below the group (inclusive), simply leave the group to the right or left empty to match the lowest or tallest group.
{access view=-registered}
Only guests and registered users can view this portion of the article.
{/access}
{access view=author-}
Only authors and above can view this portion of the article.
{/access}
You can also mix different group filters / selections together.