Recent Topics

Using "Content Block" for different content views according to user level

Started by on Sep 20, 2018 – Contents updated: Sep 20, 2018

Sep 20, 2018 12:36    

Hello,

I want to hide some content paragraphs within one webpage for public viewers but want to reveal them for the the community.
Content Blocks seems to be the solution. And technically it works.
But I want to customize the message, shown, if some has not sufficient rights.

Now in this case this text is printed:
The visibility level of the content block "#number title" is not sufficient.

The class of this message is:
<p class="red">The visibility level of the content block "#number title" is not sufficient.</p>

My questions:

  • How do I add another class to that?
  • How do I share a german translation?

Tips are welcome!
Regards, Will

Sep 20, 2018 23:18

Oh I just had an idea: how about if we implement this:?

[include:normal-slug/fallback-slug]

If the normal-slug cannot be displayed (because permission, or maybe because doesn't exit), then we try to display fallback-slug (which in your case would be a german error message formatted to the colors you want)


Form is loading...

open source blog – This forum is powered by b2evolution CMS, a complete engine for your website.