Use 2. <h1> tag as first site.
Use 2. <h1> tag as first site.
Hi
Normaly the 1. site you se when you browse a url is the 1. <H1> tag in the content.htm file. Is it possible to make so it shows the 2. <h1> tag as 1. site without to hide the 1. <h1> from the menu???
Have a nice day
Jens
Normaly the 1. site you se when you browse a url is the 1. <H1> tag in the content.htm file. Is it possible to make so it shows the 2. <h1> tag as 1. site without to hide the 1. <h1> from the menu???
Have a nice day
Jens
Re: Use 2. <h1> tag as first site.
Hi Maeg,
do you mean something like this:
anywhere in the userfuncs.php (if not exists, create in ./cmsimple/)
Gert
do you mean something like this:
anywhere in the userfuncs.php (if not exists, create in ./cmsimple/)
Code: Select all
if($s < 0) $s = 1;
Re: Use 2. <h1> tag as first site.
This is quite likely to give strange results in the back-end for "special pages" (Files, Settings, Plugins etc.). It's worth a try, however.Gert wrote:do you mean something like this:
[...]
Another possibility is to use mod_rewrite (on Apache). A single rewrite rule would suffice (I can't give the exact rule off the top of my head; would have to look it up and try it out).
Yet another possibility is to add a hidden page in front of the first, and to redirect this with page_params to the "second" (actually third) page.
Christoph
Christoph M. Becker – Plugins for CMSimple_XH
Re: Use 2. <h1> tag as first site.
Code: Select all
if($s < 0 && !$adm) $s = 1;
Re: Use 2. <h1> tag as first site.
Still, that doesn't work as expected for sitemap and mailform (and maybe others).Gert wrote:Code: Select all
if($s < 0 && !$adm) $s = 1;
Christoph M. Becker – Plugins for CMSimple_XH
Re: Use 2. <h1> tag as first site.
Code: Select all
if($_SERVER['QUERY_STRING'] == '' && !$adm) $s = 1;
Re: Use 2. <h1> tag as first site.
Hi
Thx
Jens
It seems to work without problems, also with the file browser in adminGert wrote:Hi Maeg,
do you mean something like this:
anywhere in the userfuncs.php (if not exists, create in ./cmsimple/)GertCode: Select all
if($s < 0) $s = 1;
Thx
Jens
Re: Use 2. <h1> tag as first site.
Hi Maeg,
there is the second page below the sitemap and the mailform. Better use the latest code:
Gert
there is the second page below the sitemap and the mailform. Better use the latest code:
Code: Select all
if($_SERVER['QUERY_STRING'] == '' && !$adm) $s = 1;