How To Hide Content / Comments


There are four methods.
  • Method 1 and 2 hide the content on the page, but not in automatically generated metadata (title tag) and search engine. Of course the content remains in the publicly accessible source code of the page.

  • Method 3 hides the content on the page and also in automatically generated metadata (title tag) and also in the search engine. Of course the content remains in the publicly accessible source code of the page.

  • Method 4 is only available if you activate PHP in the config.php of your u5CMS installation (there, look for "Where PHP code shall be executed"). It hides the content totally, it is not publicly accessible by any means.

1. Veiled zone

Write your hidden content between [v] and [/].

Example:
[v]
This is your hidden content.
It may contain u5CMS-syntax: formats, links, images etc. e. g.
[b]bold[/] [cartoon].
[/]

Note: Such veiled content does appear in the search engine and in automatically generated title tag content. Of course the content remains in the publicly accessible source code of the page.


2. HTML comments

Write your hidden content between <!-- and --> within a HTML area [h:] ... [:h].

Example:
[h:]
<!--
This is your hidden content.
It may contain HTML tags etc. e. g.
<strong>bold</strong> <img src="r/cartoon/cartoon_en.jpg" />.
-->
[:h]

Note: Since u5CMS 8.2.1, such commented content does no longer appear in the search engine nor in automatically generated title tag content. Of course the content remains in the publicly accessible source code of the page.


3. u5CMS enhanced HTML comments

Write your hidden content between <!--<: and :>--> within a HTML area [h:] ... [:h].

Example:
[h:]
<!--<:
This is your hidden content.
It may contain HTML tags etc. e. g.
<strong>bold</strong> <img src="r/cartoon/cartoon_en.jpg" />.
It may also contain u5CMS-syntax: formats, links, images etc. e. g.
[b]bold[/] [cartoon].
:>-->
[:h]

Note: Such commented content does NOT appear in the search engine and in automatically generated title tag content. Of course the content remains in the publicly accessible source code of the page.


4. PHP comments

Write your hidden content between <?php /* and */ ?> within a HTML area [h:] ... [:h].

Example:
[h:]
<?php /*
This is your hidden content.
It may contain HTML tags etc. e. g.
<strong>bold</strong> <img src="r/cartoon/cartoon_en.jpg" />.
It may also contain u5CMS-syntax: formats, links, images etc. e. g.
[b]bold[/] [cartoon].
*/ ?>
[:h]

Note: This method is only available if you activate PHP in the config.php of your u5CMS installation (there, look for "Where PHP code shall be executed"). It hides the content totally, it is not publicly accessible by any means.

Download

Content Management System u5CMS

Service

English⇄German Translation Service

Flowers

blumen-bern-maarsen.ch