Issues with Narrated Web site Home page under 5.1.1

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issues with Narrated Web site Home page under 5.1.1

Charlie Dennett
Hi,

I've been using gramps for quite a while and have had my own web server
during this time.  I've always used a Home page note to include my own
HTML code in the middle of the home page.  When I generate the web site,
I use the a home page note that has the content:

        <!--#include virtual="index-include.html"-->

This is standard HTML of including code from one file in another.  I've
been doing this for years with no problem, until gramps 5.1.1.  Now, in
the newer version that page is shifted to the right.

I have set up 2 different web site - 1 generated under 5.0.1 and one
generated under 5.1.1 so you can see the difference.

5.0.1 site - https://www.dennett.org/genealogy/

5.1.1 site - https://www.dennett.org/genealogy-511/

if you view the source of each home page from the above 2 site
(control-u) there are differences is what is generated.  You can also
see the contests of my index-include.html file.  The file has comments
showing the start and end

I'll be glad to supply info.  Just ask.

Thanks for any help

Charles Dennett




--
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: Issues with Narrated Web site Home page under 5.1.1

Patrick Gerlier


Le 22/10/2019 à 18:15, Charles R. Dennett a écrit :
Hi,

I've been using gramps for quite a while and have had my own web server
during this time.  I've always used a Home page note to include my own
HTML code in the middle of the home page.  When I generate the web site,
I use the a home page note that has the content:

	<!--#include virtual="index-include.html"-->

This is standard HTML of including code from one file in another.
No, this is not "standard HTML" but an Apache feature. Other web servers implement it partially or not at all. But the problem is not here.
  I've
been doing this for years with no problem, until gramps 5.1.1.  Now, in
the newer version that page is shifted to the right.

I have set up 2 different web site - 1 generated under 5.0.1 and one
generated under 5.1.1 so you can see the difference.

5.0.1 site - https://www.dennett.org/genealogy/

5.1.1 site - https://www.dennett.org/genealogy-511/

From examination of HTML code transmitted to the web browser, the difference between both version is in the navigation menu. They are both enclosed in a <div id=nav class=wrappernav role=navigation> but the CSS stylesheet content is not the same. In the "correct" version, at line 67 there is a rule:

body > div { clear: both ;}

which will force the next "bounding box" to start below the menu. Without it, your included text is aligned at the right side of the menu.

I don't understand why you suffer this. I use the Basic-Ash stylesheet while you seem to call for a colored variant. Check if this is a bug in the colored variant.


if you view the source of each home page from the above 2 site
(control-u) there are differences is what is generated.  You can also
see the contests of my index-include.html file.  The file has comments
showing the start and end

I'll be glad to supply info.  Just ask.

Thanks for any help

Charles Dennett
Regards,
Patrick


--
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: Issues with Narrated Web site Home page under 5.1.1

Charlie Dennett
I found the issue.  I was using a customized version of the Basic-Lilac
style sheet and it worked under 5.0.1 (and earlier versions).  When I
selected the Basic-Lilac style sheet that comes with gramps 5.1.1 the
problem goes away.  I'll just figure out what changes I made for my
customized version and make a new one based on the 5.1.1 style sheet.  I
think all I did was adjust some spacing and make links underlined.  I
can easily downgrade gramps to 5.0.1 and compare my customized style
sheet to the Basic-Lilac one with 5.0.1 and see what I changed and also
compare 5he 5.0.1 and 5.1.1 versions BTW, I'm using gramps on Fedora 30.

For those who may not be aware, you can put your own style sheets in (on
Linux) ~/.gramps/css and they will show up as a choice on the HTML
Options tab when generating the narrated web site.

Thanks for the help.

Charlie Dennett


On 10/22/19 1:04 PM, Patrick Gerlier wrote:

>
> Le 22/10/2019 à 18:15, Charles R. Dennett a écrit :
>> Hi,
>>
>> I've been using gramps for quite a while and have had my own web server
>> during this time.  I've always used a Home page note to include my own
>> HTML code in the middle of the home page.  When I generate the web site,
>> I use the a home page note that has the content:
>>
>> <!--#include virtual="index-include.html"-->
>>
>> This is standard HTML of including code from one file in another.
> No, this is not "standard HTML" but an Apache feature. Other web servers
> implement it partially or not at all. But the problem is not here.
>>   I've
>> been doing this for years with no problem, until gramps 5.1.1.  Now, in
>> the newer version that page is shifted to the right.
>>
>> I have set up 2 different web site - 1 generated under 5.0.1 and one
>> generated under 5.1.1 so you can see the difference.
>>
>> 5.0.1 site - https://www.dennett.org/genealogy/
>>
>> 5.1.1 site - https://www.dennett.org/genealogy-511/
>
> From examination of HTML code transmitted to the web browser, the
> difference between both version is in the navigation menu. They are both
> enclosed in a <div id=nav class=wrappernav role=navigation> but the CSS
> stylesheet content is not the same. In the "correct" version, at line 67
> there is a rule:
>
>     body > div { clear: both ;}
>
> which will force the next "bounding box" to start below the menu.
> Without it, your included text is aligned at the right side of the menu.
>
> I don't understand why you suffer this. I use the Basic-Ash stylesheet
> while you seem to call for a colored variant. Check if this is a bug in
> the colored variant.
>
>> if you view the source of each home page from the above 2 site
>> (control-u) there are differences is what is generated.  You can also
>> see the contests of my index-include.html file.  The file has comments
>> showing the start and end
>>
>> I'll be glad to supply info.  Just ask.
>>
>> Thanks for any help
>>
>> Charles Dennett
> Regards,
> Patrick


--
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org