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 -->
New bug for including html files in cms pages
- Huub
- HuMo-genealogy programmer
- Posts: 2693
- Joined: Wed 27 Aug 2008, 11:34
- Location: Heerhugowaard, Netherlands
- Contact:
Re: New bug for including html files in cms pages
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?
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
Make multiple backups with: PHPMyAdmin, gedcom export and database export.
HuMo-genealogy software: http://humo-gen.com
Re: New bug for including html files in cms pages
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
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
Re: New bug for including html files in cms pages
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
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
- Huub
- HuMo-genealogy programmer
- Posts: 2693
- Joined: Wed 27 Aug 2008, 11:34
- Location: Heerhugowaard, Netherlands
- Contact:
Re: New bug for including html files in cms pages
Hi Colin,
It's possible to disable scrollbars in a iframe.
Something like: scrolling="no"
Or add CSS:
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
Make multiple backups with: PHPMyAdmin, gedcom export and database export.
HuMo-genealogy software: http://humo-gen.com
Re: New bug for including html files in cms pages
Yes - know that - but sometimes content is so large that I end up having to have it