New bug for including html files in cms pages

If you've programmed a new HuMo-genealogy feature (that you'd like to see included in the official version), please upload and describe your work here.
Post Reply
colin
Posts: 48
Joined: Sun 24 Dec 2017, 23:13

New bug for including html files in cms pages

Post by colin »

Huub,

The latest update has disabled an ability of jquery in the cms pages.
I setup the content of my cms pages as:
<script>
$(function(){
$("#include_html").load("/cms/preface.shtml");
});
</script>
<div id="include_html"></div>

Up until the latest update, this displayed the content of the file /cms/richard_in_cornwall.shtml (or whichever file appropriate for the cms page) in the 'content' area of the cms page. (And, having this content in a separate file, allowed for a lot more capability in the page, as well as being able to reference it in individual's pages).

With the latest update, the content is no longer shown (but, looking at the page source, the code is still there) - so looks like something has been modified in how jquery (or maybe something else) is being handled on the cms pages now.
Segment of the code generated for the page is:

style="text-align:left;"><script>
$(function(){
$("#include_html").load("/cms/preface.shtml");
});
</script>
<div id="include_html"></div>
</div></div><!-- Script for GLightbox -->
User avatar
Huub
HuMo-genealogy programmer
HuMo-genealogy programmer
Posts: 2692
Joined: Wed 27 Aug 2008, 11:34
Location: Heerhugowaard, Netherlands
Contact:

Re: New bug for including html files in cms pages

Post by Huub »

Hi,

I didn't change anything in the CMS or jquery files. Maybe a wrong <div> somewhere...

Or the Glightbox code that is added in the footer?
HuMo-genealogy update? Backup your database! Editing in HuMo-genealogy? Backup your data!
Make multiple backups with: PHPMyAdmin, gedcom export and database export.

HuMo-genealogy software: http://humo-gen.com
colin
Posts: 48
Joined: Sun 24 Dec 2017, 23:13

Re: New bug for including html files in cms pages

Post by colin »

Possibly the glightbox code - as I never made any changes either :(

I'll see if I can remove the glightbox code & see what that does - and look to see if I can find an alternate way to include the html files, and let you know what I discover.

Colin
colin
Posts: 48
Joined: Sun 24 Dec 2017, 23:13

Re: New bug for including html files in cms pages

Post by colin »

I can't see the root cause - but didn't spend a long time on it.
Found that if I change to an iframe it works (sometimes results in a scroll bar on the iframe - but small price to pay to get it to work).
I'll convert all my pages to the iframe, and not look any deeper, as it works for what I'm after.

Colin
User avatar
Huub
HuMo-genealogy programmer
HuMo-genealogy programmer
Posts: 2692
Joined: Wed 27 Aug 2008, 11:34
Location: Heerhugowaard, Netherlands
Contact:

Re: New bug for including html files in cms pages

Post by Huub »

Hi Colin,

It's possible to disable scrollbars in a iframe.
Something like: scrolling="no"

Or add CSS:

Code: Select all

iframe{
    overflow:hidden;
}
HuMo-genealogy update? Backup your database! Editing in HuMo-genealogy? Backup your data!
Make multiple backups with: PHPMyAdmin, gedcom export and database export.

HuMo-genealogy software: http://humo-gen.com
colin
Posts: 48
Joined: Sun 24 Dec 2017, 23:13

Re: New bug for including html files in cms pages

Post by colin »

Yes - know that - but sometimes content is so large that I end up having to have it
Post Reply